/* variables */
:root {
    --swiper-navigation-color: var(--brand-colour);
    --swiper-theme-color: var(--brand-colour);
}

/* utils */
.header {
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 0.9px;
    border-bottom: 1px solid var(--brand-colour);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

/* main */
#page-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

#article_content {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 16px;
    width: 100%;
}

/* deepl */
#deepl-message {
    border: 1px solid white;
    padding: 32px;
}

/* bottom products */
#bottom_article_products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.bottom_article_product {
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: column;
    height: auto;
    background: #222;
}

.bottom_article_product_image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(50% 50% at 50% 50%, #505460 0%, #100F0F 100%);
}

.bottom_article_product_image img {
    width: 75%;
    margin: 0px auto;
    display: block;
}

.bottom_article_product_text {
    width: 100%;
    background: #222;
    display: flex;
    gap: 16px;
    flex-direction: column;
    padding: 24px 16px;
}

.bottom_article_product_text a {
    color: var(--brand-colour);
    text-decoration: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.32px;
    display: flex;
    align-items: center;
}

.bottom_article_product_text a svg {
    fill: var(--brand-colour);
}

/* article info */
#article_info {
    display: flex;
    gap: 8px;
    flex-direction: column;

}

#article_info h3 {
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 1.2px;
}

#article_title {
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px;
    /* 100% */
}

#share_text {
    display: flex;
    gap: 8px;
    align-items: center;
}

#share_text svg {
    fill: white;
}

/* article content */
.streamfield {
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* streamfield paragraphs */
.block-paragraph p, 
.block-paragraph ol, 
.block-paragraph ul {
    margin-bottom: 1em;
}

.streamfield p a,
.block-paragraph a {
    color: var(--brand-colour);
}

.streamfield ul,
.streamfield ol {
    padding-inline-start: 40px;
}
.streamfield ol.image-callout {
    list-style: revert-layer;
}

/* streamfield text callout */
.block-coloured_callout {
    > div {
        padding: 30px;
        color: black;

        a {
            color: black;
            text-decoration: underline;
        }
    }

    .red {
        background-color: rgb(248, 202, 198)
    }

    .yellow {
        background-color: rgb(231, 226, 54)
    }

    .green {
        background-color: rgb(191, 237, 210)
    }

    .elgato {
        background: #EAF2FF;
        border: 1px solid #BED8FF;
        border-left: 6px solid #1D4ED8;
        padding: 12px;
        border-radius: 8px;
        color: #0F2862;
    }
}

/* streamfield callout */
.image-callout {
    -moz-column-count: 1;
    -moz-column-gap: 20px;
    -webkit-column-count: 1;
    -webkit-column-gap: 20px;
    column-count: 1;
    column-gap: 20px;
}
@media screen and (min-width: 790px) {
    .image-callout {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}
@media screen and (min-width: 790px) {
    .image-callout {
        margin-left: 1.5rem;
    }
    html[lang="ar"] .image-callout {
        margin-left: unset;
        margin-right: 1.5rem;
    }
}


/* streamfield youtube-embed */
lite-youtube {
    width: 100%;
    max-width: 720px;
    margin: 0px auto;
}

lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    max-width: 720px;
}

/* gradient */
lite-youtube::before {
    content: attr(data-title);
    display: block;
    position: absolute;
    top: 0;
    /* Pixel-perfect port of YT's gradient PNG, using https://github.com/bluesmoon/pngtocss plus optimizations */
    background-image: linear-gradient(180deg, rgb(0 0 0 / 67%) 0%, rgb(0 0 0 / 54%) 14%, rgb(0 0 0 / 15%) 54%, rgb(0 0 0 / 5%) 72%, rgb(0 0 0 / 0%) 94%);
    height: 99px;
    width: 100%;
    font-family: "YouTube Noto", Roboto, Arial, Helvetica, sans-serif;
    color: hsl(0deg 0% 93.33%);
    text-shadow: 0 0 2px rgba(0, 0, 0, .5);
    font-size: 18px;
    padding: 25px 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

lite-youtube:hover::before {
    color: white;
}

/* responsive iframe with a 16:9 aspect ratio
    thanks https://css-tricks.com/responsive-iframes/
*/
lite-youtube::after {
    content: "";
    display: block;
    padding-bottom: calc(100% / (16 / 9));
}

lite-youtube>iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}

/* play button */
lite-youtube>.lty-playbtn {
    display: block;
    /* Make the button element cover the whole area for a large hover/click target… */
    width: 100%;
    height: 100%;
    /* …but visually it's still the same size */
    background: no-repeat center/68px 48px;
    /* YT's actual play button svg */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
    position: absolute;
    cursor: pointer;
    z-index: 1;
    filter: grayscale(100%);
    transition: filter .1s cubic-bezier(0, 0, 0.2, 1);
    border: 0;
}

lite-youtube:hover>.lty-playbtn,
lite-youtube .lty-playbtn:focus {
    filter: none;
}

/* Post-click styles */
lite-youtube.lyt-activated {
    cursor: unset;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated>.lty-playbtn {
    opacity: 0;
    pointer-events: none;
}

.lyt-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* streamfield faq */
.wrapper-faq {
    width: 100%;
}

.faq-title h5 {
    margin-bottom: 20px;
}

.faq-container {
    background-color: white;
    color: black;
    border: 1px solid black;
    margin: 20px 0;
}

.question {
    padding: 20px 80px 20px 20px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #fafafa;
}

.question::after {
    content: "\002B";
    font-size: 2.2rem;
    position: absolute;
    right: 20px;
    transition: 0.2s;
    padding: 9px;
    font-weight: 700;
}

.question.active::after {
    transform: rotate(45deg);
}


.answercont {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    background-color: #fafafa;
}

.answer {
    padding: 0 20px 20px;
    background-color: #fafafa;
}

.faq-container a,
.faq-container p a {
    color: black;
}

/* streamfield side by side */
.two-side-by-side-container {
    display: flex;
    gap: 24px;
}

.side-by-side-wrap {
    flex: 0 50%;
    margin: 0px auto;
}

.two-by-side-text-container {
    display: flex;
    gap: 50px;
}

.two-caption-text {
    flex: 0 50%;
}

/* streamfield 3 wide */
.three-side-by-side-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 25px;
}

.three-by-side-wrap {
    flex-direction: column;
    align-items: center;
}

.three-block-img {
    max-width: 420px;
    max-height: 420px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.three-by-side-text-container {
    width: 100%;
}

.three-caption-text {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* streamfield tables */
.streamfield .block-table {
    overflow-x: auto;
}

.streamfield table {
    width: 100% !important;
    border-collapse: collapse;
    border: 1px solid var(--dark-grey);
    border-left: none;
    border-right: none;
}

.streamfield table td,
.streamfield table th {
    padding: 8px;
    border-collapse: collapse;
    border-bottom: 1px solid var(--dark-grey);
    border-left: none;
    border-right: none;
}

.block-table img {
    width: revert-layer;
    vertical-align: middle;
}

/* streamfield iframe */
.streamfield iframe {
    display: block;
    margin: 0px auto;
    ;
}

/* streamfield comparison */
img-comparison-slider {
    visibility: hidden;
    --divider-color: var(--brand-colour);
    --default-handle-color: var(--brand-colour);
    --divider-width: 2px;
}

img-comparison-slider [slot='second'] {
    display: none;
}

img-comparison-slider.rendered {
    visibility: inherit;
    display: block;
    max-width: 702px;
    width: 100%;
    margin: 0px auto;
}

img-comparison-slider.rendered [slot='second'] {
    display: unset;
}

/* small image caption */
.small-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 19px;
    margin-bottom: 36px;
    align-items: center;
}

.small-card img {
    object-fit: none;
    max-width: 200px;
    margin: 0px auto;
    display: block;
}

div.small-description {
    font-family: aktiv-grotesk, sans-serif;
    font-size: .875rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    width: 100%;
    text-align: inherit;
}

div.medium-description {
    font-family: aktiv-grotesk, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05rem;
    line-height: 1.75rem;
}

div.large-description {
    font-family: aktiv-grotesk, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

/* media block */
.block-media video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* media queries */
@media only screen and (max-width: 550px) {
    .small-card {
        grid-template-columns: 1fr;
    }

    div.small-description {
        margin-top: 15px;
    }
}

@media only screen and (max-width: 400px) {
    div.small-description {
        font-size: .75rem;
        line-height: 1.2rem;
    }

    div.medium-description {
        font-size: 1rem;
    }
}

/* sreamfield logos */
.logo-block-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.logo-blick-allign-left {
    justify-content: flex-start;
}

.logo-blick-allign-center {
    justify-content: center;
}

.logo-block-img-small {
    max-width: 150px;
    width: 100%;
    object-fit: contain;
    height: auto;
}

.logo-block-img-medium {
    max-width: 200px;
    width: 100%;
    object-fit: contain;
    height: auto;
}

.logo-block-img-large {
    max-width: 450px;
    width: 100%;
    object-fit: contain;
    height: auto;
}

@media only screen and (max-width: 540px) {
    .logo-blick-allign-center {
        margin-top: -20px;
        margin-bottom: -20px;
    }
}

/* streamfield tabs */
.worko-tabs {
    margin: 20px;
    width: 100%;
    margin: 0px auto;
}

.worko-tabs .state {
    position: absolute;
    left: -10000px;
}

.worko-tabs .flex-tabs .tab {
    flex-grow: 1;
    max-height: 40px;
    max-height: 670px;
    width: 100%;
}

.worko-tabs .flex-tabs .panel {
    background-color: #fff;
    padding: 20px;
    min-height: 300px;
    display: none;
    width: 100%;
    flex-basis: auto;
    color: black;
    box-sizing: border-box;
}

#tab-content-container section.block-paragraph p,
#tab-content-container section.block-paragraph ul li,
#tab-content-container section.block-paragraph ol li {
    color: #000;
}

.worko-tabs .tab {
    display: inline-block;
    padding: 10px;
    vertical-align: top;
    background-color: #eee;
    cursor: hand;
    cursor: pointer;
    border-left: 10px solid #ccc;
}

.worko-tabs .tab:hover {
    background-color: #fff;
}

.worko-tabs .tab-image {
    display: block;
    margin: 0px auto;
    max-width: 100%;
    height: auto;
}

#tab-text-container {
    display: flex;
}

/* Full Width */
.block-full_width {
    display: block;
    margin: 0px auto;
    max-width: 1000px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Medium Width */
.block-medium_width {
    display: block;
    margin: 0px auto;
    max-width: 702px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Small Width */
.block-small_width {
    display: block;
    margin: 0px auto;
    max-width: 540px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

#tab-content-container>.panel>div {
    margin: 15px auto;
}

/* media queries */
@media (max-width: 650px) {
    #tab-text-container {
        flex-direction: column;
        align-items: center;
        max-width: 650px;
        width: 100%;
        margin: auto;
    }
}

@media (max-width: 600px) {
    .flex-tabs .tab {
        background: #fff;
        border-bottom: 1px solid #ccc;
    }

    .flex-tabs #tab-1-label {
        order: 1;
    }

    .flex-tabs #tab-2-label {
        order: 3;
    }

    .flex-tabs #tab-3-label {
        order: 5;
    }

    .flex-tabs #tab-4-label {
        order: 7;
    }

    .flex-tabs #tab-1-panel {
        order: 2;
    }

    .flex-tabs #tab-2-panel {
        order: 4;
    }

    .flex-tabs #tab-3-panel {
        order: 6;
    }

    .flex-tabs #tab-4-panel {
        order: 8;
    }

    #tab-1:checked~.tabs #tab-1-panel,
    #tab-2:checked~.tabs #tab-2-panel,
    #tab-3:checked~.tabs #tab-3-panel,
    #tab-4:checked~.tabs #tab-4-panel {
        border-bottom: 1px solid #ccc;
    }
}

/* streamfield images */
figcaption p {
    text-align: center;
}

/* related articles */
.related_articles_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related_article {
    background-color: #0C0D0D;
}

.related_article img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related_article_text {
    padding: 28px
}

.related_article_article_type {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.12px;
}

.related_article_article_title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    /* 140% */
    letter-spacing: 0.4px;
}

.related_article_article_title a {
    text-decoration: none;
}


/* 1280, 1920, 2560 */
/* 640, 960, */
@media only screen and (min-width: 620px) {
    /* streamfield three wide */
    .three-side-by-side-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 722px) {
    #article_content {
        max-width: 700px;
        margin: 0 auto;
        padding: 0;
        margin-top: 32px;
        gap: 64px;
    }

    .streamfield,
    .streamfield p {
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .streamfield .side_by_side_wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* related articles */
    .related_articles_list {
        gap: 16px;
        display: grid;
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        ;
    }

    /* products bottom */
    #bottom_article_products {
        gap: 24px;
        display: grid;
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        ;
    }

    .card-title {
        height: 60px;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        /* 125% */
        letter-spacing: 0.32px;
    }
}

@media (min-width: 1260px) {

    /* main */
    #article_content {
        max-width: 996px;
    }

    /* article info */
    #article_title {
        font-size: 40px;
        font-style: normal;
        font-weight: 600;
        line-height: 40px;
    }

    /* streamfield */
    .streamfield,
    .streamfield p {
        font-size: 20px;
    }

    /* streamfield three wide */
    .three-side-by-side-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* related articles */
    .related_articles_list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        ;
    }

    /* products bottom */
    #bottom_article_products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        ;
    }

    #bottom_article_products_container {
        padding: 0;
    }
}

@media (min-width: 1900px) {

    /* main */
    .streamfield,
    .streamfield p {
        font-size: 21px;
    }

    /* products bottom */
    #bottom_article_products {
        gap: 24px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        ;
    }

    /* related articles */
    .related_articles_list {
        gap: 24px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        ;
    }
}

@media (min-width: 2500px) {

    /* main */
    .streamfield,
    .streamfield p {
        font-size: 22px;
    }
}