html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
[id] {
    scroll-margin-top: 60px;
}
*, *:before, *:after {
    box-sizing: inherit;
}


:root {
    --header-height: 71px;
}

@media all and (min-width: 768px) {
    :root {
        --header-height: 98px;
    }
}

/* Headings */

/*h4.wp-block-heading {
    font-size: 1.25rem;
    position: relative;
    padding-top: .5rem;
}

h4.wp-block-heading::before {
    content: "";
    display: block;
    width: 37px;
    height: 2px;
    background: var(--wp--preset--color--primary);
    position: absolute;
    top: -.5rem;
}

@media all and (min-width: 1024px) {
    h4.wp-block-heading {
        font-size: 1.5625rem;
    }
}*/

.site-container {

}

:root .site-container > * {
    margin-block-start: 0;
}

/* Header */

.site-header {
    height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /*.site-header__top { position: relative; }*/

    .site-header .site-header__container {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
        padding-top: 17px;
        padding-bottom: 18px;
        width: 100%;
        max-width: var(--wp--style--global--content-size);
        margin: 0 auto 0;
        position: relative;
    }

.site-header__strip {
    background: var(--wp--preset--color--secondary);
    height: 15px;
    position: relative;
    margin-top: 2px;
}

.site-header__strip::before {
    content: "";
    display: inline-block;
    background: var(--wp--preset--color--primary);
    height: 2px;
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
}

    .site-header__strip-container {
        max-width: var(--wp--style--global--content-size);
        margin: 0 auto;
        color: #ffffff;
        font-size: 9px;
        text-transform: uppercase;
        font-family: var(--wp--preset--font-family--helvetica-neue);
    }

.site-header__logo {
    display: block;
    width: 60px;
    height: 20px;
    flex-shrink: 0;
}

    .site-header__logo img {
        display: block;
        width: 100%;
        height: auto;
    }

/* Hide webkit marker (Safari fix) */
.top-level-accordion summary,
.mega-menu-accordion summary {
    list-style: none;
}

.top-level-accordion summary::-webkit-details-marker,
.mega-menu-accordion summary::-webkit-details-marker
{
    display: none;
}

@media (max-width: 1023px) {

    .site-nav__mobile-trigger {
        display: inline-block;
        width: 23px;
        height: 19px;
        position: relative;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
    }
    .site-nav__mobile-trigger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #000000;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }


    .site-nav__mobile-trigger span:nth-child(1) {
        top: 0px;
    }

    .site-nav__mobile-trigger span:nth-child(2),
    .site-nav__mobile-trigger span:nth-child(3) {
        top: 8px;
    }

    .site-nav__mobile-trigger span:nth-child(4) {
        top: 16px;
    }

    body.menu-open .site-nav__mobile-trigger span:nth-child(1) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    body.menu-open .site-nav__mobile-trigger span:nth-child(2) {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    body.menu-open .site-nav__mobile-trigger span:nth-child(3) {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    body.menu-open .site-nav__mobile-trigger span:nth-child(4) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    .site-nav {
        background: white;
        position: absolute;
        top: var(--header-height);
        width: 100vw;
        left: 50%;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--header-height));
        padding: 0 1.5625rem;
        overflow-y: scroll;

        /* Hidden State (Off-screen / Collapsed) */
        opacity: 0;
        visibility: hidden;
        transform: translate3d(-50%, -10px, 0);

        /* Smooth panel toggle transition */
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    }

    body.menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translate3d(-50%,0,0);
        z-index: 100;
    }

    .site-nav__list {
        list-style-type: none;
        margin: 0;
        padding: 2.25rem 0;
    }

    .mega-menu-bottom-strip,
    .site-header__extra { display: none; }


    .top-level-accordion,
    .mega-menu-accordion {
        position: relative;
    }

    .top-level-accordion summary::-webkit-details-marker,
    .mega-menu-accordion summary::-webkit-details-marker {
        display: none;
    }

    .mega-menu-dropdown {
        /*padding: .75rem 0 1.25rem;*/
    }

    .mega-menu-trigger + .mega-menu-dropdown,
    .mega-menu-accordion {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    .site-nav__item.open .mega-menu-dropdown,
    .mega-menu-col__title.open + .mega-menu-accordion
    {
        grid-template-rows: 1fr;
    }

    .mega-menu-dropdown .mega-menu-grid,
    .mega-menu-accordion .mega-menu-accordion-inner {
        overflow: hidden;
    }

    .mega-menu-dropdown .mega-menu-grid-inner {
        padding: 1.25rem 0;
    }

    /* 1. Base Summary Layout */
    .mega-menu-trigger,
    .mega-menu-col__title {
        font-family: var(--wp--preset--font-family--helvetica-neue);
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        color: #000;
        list-style: none;
        cursor: pointer;
        padding: 0.25rem 0;
        font-weight: 300;
        letter-spacing: 0.05em;
        position: relative;
    }

    .mega-menu-trigger { text-transform: uppercase; }
    .mega-menu-col__title { padding-left: 1rem; }

    .mega-menu-trigger::before,
    .mega-menu-col__title::before
    {
        content: "";
        position: absolute;
        right: 0;
        width: 18px;
        height: 18px;
        background-color: #e00000;
    }

    /* Arrow Only (Rotates inside the box) */
    .mega-menu-trigger::after,
    .mega-menu-col__title::after
    {
        content: "";
        position: absolute;
        right: 0;
        width: 18px;
        height: 18px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");    background-repeat: no-repeat;
        background-position: center;
        background-size: 10px 10px;
        transition: transform 0.25s ease;
        transform: rotate(-90deg);
    }

    /* ONLY rotate the arrow */
    .site-nav__item.open::after { transform: rotate(0deg); }

    .mega-menu-col__links {
        list-style-type: none;
        margin: 0 0 0 2rem;
        padding: 1rem 0;
    }

    .mega-menu-col__links li { margin-bottom: .25rem; }

    .mega-menu-col__links li a {
        color: #000000;
        text-decoration: none;
    }


    /* Hide promos on mobile */
    .mega-menu-col--promos { display: none; }
}

@media all and (min-width: 768px) and (max-width: 1023px) {

    .site-nav {
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
    }

    .site-nav__list { padding: 2.25rem 0; }
}

@media all and (min-width: 768px) {

    .site-header {
        height: var(--header-height);
    }

    .site-header__logo {
        width: 102px;
        height: 34px;
    }

    .site-header .site-header__top {
        align-items: center;
    }

    .site-header .site-header__container {
        align-items: center;
    }

    .site-header__strip {
        background: var(--wp--preset--color--secondary);
        height: 27px;
    }

    .site-header__strip-container {
        font-size: 14px;
        line-height: 27px;
    }

}

.site-header__extra { display: none; list-style-type: none; margin: 0; padding: 0; }

@media all and (min-width: 1024px) {

    .site-nav__mobile-trigger { display: none; }

    .site-header .site-header__container { padding-top: 0; padding-bottom: 0; align-items: center; }

    .site-header .site-header__top {
        padding-top: 15px;
        padding-bottom: 15px;
        align-items: center;
    }

    /*.site-header .site-header__top { justify-content: space-evenly; }*/

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-header__extra {
        display: flex;
        align-items: center;
        gap: 1.45rem;
    }

    .site-nav,
    .site-nav__list,
    .site-nav__item.has-mega-menu {
        position: static;
    }

    .mega-menu-trigger {
        position: relative;
        padding-right: 1.25rem;
        cursor: pointer;
        text-decoration: none;
        color: black;
        text-transform: uppercase;
        font-size: 0.875rem;
    }

    .mega-menu-dropdown {
        background: white;
        position: absolute;
        top: calc(100% + 48px);
        left: 0;
        width: 100%;
        z-index: 100;

        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    .mega-menu-trigger::after {
        content: "";
        position: absolute;
        top: 100%; /* Starts at the bottom edge of "PRODUCTS" */
        left: 17.5%;
        width: 125%; /* Matches ONLY the width of "PRODUCTS" text! */
        height: 57px; /* Extends down across the blue strip to the mega-menu */
        z-index: 101;
        transform: translateX(-30%);
    }

    .mega-menu-grid { overflow: hidden; }


   /* li.site-nav__item.open::after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        z-index: 10;
    }*/

    li.site-nav__item.open .mega-menu-dropdown {
        grid-template-rows: 1fr;
    }

    .mega-menu-grid-inner {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mega-menu-columns {
        padding: 2rem 1.875rem 1.875rem 3.5625rem;
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .mega-menu-columns > * {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .mega-menu-columns .mega-menu-col:not(:first-of-type):not(:last-of-type) {
        padding-left: 2rem;
    }
    .mega-menu-columns .mega-menu-col:not(:last-of-type) {
        padding-right: 2rem;
    }

    .mega-menu-columns .mega-menu-col:not(:last-of-type) {
        border-right: 1px solid #D5D5D5;
    }

    .mega-menu-col:not(.mega-menu-col--promos) {
        margin-top: 1rem;
    }

    .mega-menu-col--promos { flex-grow: 0; }

    .mega-menu-col.mega-menu-col--links { max-width: 346px; }
    .mega-menu-promo-wrapper { display: flex; gap: 1rem; align-items: stretch; }

    .mega-menu-promo { width: 314px; }

    .mega-menu-bottom-strip {
        flex: 0 0 100%; /* [flex-grow: 0, flex-shrink: 0, flex-basis: 100%] */
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #F2F2F2;
        padding: 1rem 3.75rem .75rem;
        text-transform: uppercase;
        font-size: 0.875rem;
    }

    .mega-menu-strip-tag { display: flex; align-items: center; gap: .5rem; }
    .mega-menu-strip-tag svg { font-size: 150% !important; }

    .mega-menu-col__title {
        text-transform: uppercase;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1;
    }

    .mega-menu-col__links {
        margin: 0;
        padding: 0;
        list-style: none;
        margin-top: 1.25rem;
    }

    .mega-menu-col__links li {
        position: relative;
        font-size: 1rem;
        padding-left: 1.15rem;
    }

    .mega-menu-col__links li::before {
        content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4.801" height="7.28" viewBox="0 0 4.801 7.28"><path id="Path_44935" data-name="Path 44935" d="M.494,0,0,.59,3.611,3.639,0,6.689l.494.591L4.8,3.639Z" transform="translate(0 0)"/></svg>');
        position: absolute;
        left: 0;
        color: #000000;
        top: 0;
    }

    .mega-menu-col__links li a {
        color: #000000;
        font-size: 0.875rem;
        text-decoration: none;
    }

    .mega-menu-promo {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mega-menu-promo__image img {
        display: block;
        border: 0;
        width: 100%;
        object-fit: cover;
        height: 155px;
    }

    .mega-menu-promo__content {
        display: flex;
        flex-direction: column;
        padding: 2rem 1.25rem 1rem;
        background: #282828;
        color: white;
    }

    .mega-menu-promo__content > * {
        margin: 0;
        padding: 0;
    }

    .mega-menu-promo__content p {
        font-size: 0.875rem;
        line-height: 1.3em;
    }

    .mega-menu-promo__link-box {
        display: flex;
        gap: 2rem;
        justify-content: space-between;
        align-items: center;
    }

    .mega-menu-promo h5 {
        text-transform: uppercase;
        position: relative;
        font-size: 1.5625rem;
        letter-spacing: -1px;
    }

    .mega-menu-promo h5::before {
        content: "";
        display: block;
        width: 37px;
        height: 2px;
        background: var(--wp--preset--color--primary);
        position: relative;
        margin-bottom: .5rem;
    }


    .mega-menu-promo__link-box p { flex: 0 1 auto; }

    .mega-menu-promo__link {
        border: 1px solid white;
        border-radius: 999px;
        color: white;
        flex: 1 0 24px;
        height: 24px;
        width: 24px;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        line-height: 12px;
        position: relative;
    }

    .mega-menu-promo__link::before {
        content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="7.049" height="9.86" viewBox="0 0 7.049 9.86"><path id="Path_44927" data-name="Path 44927" d="M.573,0,0,.685,4.19,4.223,0,7.762l.573.685,5-4.224Z" transform="translate(0.702 0.707)" fill="%23fff" stroke="%23fff" stroke-width="1"/></svg>');
        position: absolute;
        left: 50%;
        top: 50%;
        color: #ffffff;
        transform: translate3d(-49%,-45%,0);
    }

    .site-header__extra ul {
        display: flex;
        align-items: center;
    }

    .site-header__extra li { line-height: 100%; }
    .site-header__extra li a { line-height: 100%; display: inline-block; }

    .language-relative { position: relative; }

    .language-container {
        position: absolute;
        top: calc(100% + 28px);
        width: 80px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 120;

        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
        background: white;
    }

    .language-container__inner {
        overflow: hidden;
    }

    .language-trigger { position: relative; }

    .language-trigger.open + .language-container {
        grid-template-rows: 1fr;
    }

    .language-container__list { list-style-type: none; margin: 0; flex-direction: column; padding: .5rem 0; gap: .5rem; }

    .language-container__list li a {
        display: flex;
        align-items: center;
        gap: .5rem;
        text-decoration: none;
        color: #000;
    }

    .search-container {
        position: absolute;
        top: calc(100% + 48px);
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;

        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
        background: white;
    }

    .search-container__drawer {
        overflow: hidden;
    }

    body.search-open .search-container {
        grid-template-rows: 1fr;
    }

    .search-container__inner {
        max-width: var(--wp--style--global--content-size);
        margin: 0 auto;
        padding: 3.5rem 0;
    }

    .search-container__inner label {
        display: block;
        padding-bottom: 1rem;
        border-bottom: 1px solid #707070;
        position: relative;
        margin-bottom: 1rem;
    }

    .search-container__inner input[type="text"],
    .search-container__inner input[type="search"]
    {
        height: 50px;
        border: 0;
        font-family: var(--wp--preset--font-family--helvetica-neue);
        color: var(--wp--preset--color--base-dark);
        font-weight: 600;
        font-size: 2.5rem;
        outline: 0;
        width: 100%;
    }

    .search-container__inner input[type="text"]:focus,
    .search-container__inner input[type="search"]:focus {
        outline: 0;
    }

    .search-container__inner input[type="submit"] {
        visibility: hidden;
        display: none;
        opacity: 0;
        position: absolute;
    }

    .search-container__inner p {
        margin: 0; padding: 0;
        font-size: 0.875rem;
    }

}

/* Hide images inside WooCommerce product categories grid */
.woocommerce ul.products li.product-category a img {
    display: none !important;
}

.iko-button {
    background: var(--wp--preset--color--primary);
    color: white;
    padding: 0.65rem 1.875rem;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--helvetica-neue);
    font-size: 0.875rem;
    cursor: pointer;
    display: block;
}


.iko-button::after {
    content: "";
    display: inline-block;
    width: 0.45rem;   /* Arrow height/width */
    height: 0.45rem;
    margin-left: .55rem;

    /* Draws the top and right borders to make a right-facing chevron */
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;

    /* Rotates the borders 45 degrees to point right */
    transform: rotate(45deg);

    /* Smooth hover animation support */
    transition: transform 0.2s ease;
}


/* footer */

footer {
    background: var(--wp--preset--color--base-dark);
    color: #F5F5F5;
}

footer a { color: #F5F5F5;
    text-decoration: none; }

.footer__container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
}

.footer__logo {
    display: block;
    width: 100%;
    max-width: 89px;
}

.footer__logo svg { width: 100%; object-fit: contain; }

.footer__columns {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
}

.footer__company-name {
    color: #f2f2f2;
    font-family: var(--wp--preset--font-family--helvetica-neue);
    font-weight: 200;
    text-transform: uppercase;
    font-size: 1.125rem;
}

.footer__info-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.footer__info-links a .info-link__icon {
    border: 1px solid var(--wp--preset--color--primary);
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.65rem;
    height: 3.65rem;
}

.footer__info-links a .info-link__icon svg {
    color: #f2f2f2;
    font-size: 1.5rem;
}

.footer__column-top {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
}

.footer__column ul {
    list-style: none;
    margin: 0.875rem 0;
    padding: 0;
}

.footer__column ul li a {
    font-size: 1rem;
}

.footer__strip {
    border-top: 1px solid var(--wp--preset--color--primary);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__small-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer__small-links ul li:not(:last-child)::after {
    content: "|";
    margin-left: 0.75rem;
}

.footer__small-links ul li a {
    text-transform: uppercase;
}


footer a:hover {
   text-decoration: underline;
}

@media all and (min-width: 1024px) {
    .footer__logo {
        max-width: 102px;
    }

    .footer__columns {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 3.125rem;
        margin-bottom: 6.25rem;
    }

    .footer__column:not(:first-of-type) {
        border-left: 1px solid rgba(255,255,255,0.2);
        padding-left: 2rem;
    }



    .footer__strip {
        font-size: 0.875rem;
        flex-direction: row;
        justify-content: space-between;
    }
    .footer__small-links ul { gap: 2rem; }
    .footer__small-links ul li:not(:last-child)::after { display: none; }

}

/* Forms */

.gform_fields {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.gform_fields fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.gform_fields .ginput_container,
.gform_fields .gform-grid-col {
    display: block;
    width: 100%;
}

.gform_fields .gfield_label { display: none; }

.gform_fields .ginput_container input[type="text"],
.gform_fields .ginput_container input[type="email"],
.gform_fields .ginput_container textarea
{
    border: 1px solid rgba(40,40,40,.4);
    font-family: var(--wp--preset--font-family--roboto);
    color: var(--wp--preset--color--base-dark);
    padding: 1.25rem 1.75rem;
    font-size: 1rem;
    width: 100%;
}

.gform_fields .ginput_container input[type="text"]::placeholder,
.gform_fields .ginput_container input[type="email"]::placeholder,
.gform_fields .ginput_container textarea::placeholder {
    color: var(--wp--preset--color--base-dark);
}

.gform-footer {
    margin-top: 0.875rem;
}

.gform_button {
    background: var(--wp--preset--color--primary);
    color: white;
    padding: 0.65rem 1.875rem;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--helvetica-neue);
    font-size: 0.875rem;
    cursor: pointer;
    display: block;
    border: 0;
    position: relative;
}

.gform_button::after {
    content: "";
    display: inline-block;
    width: 0.45rem;   /* Arrow height/width */
    height: 0.45rem;
    margin-left: .55rem;

    /* Draws the top and right borders to make a right-facing chevron */
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;

    /* Rotates the borders 45 degrees to point right */
    transform: rotate(45deg);

    /* Smooth hover animation support */
    transition: transform 0.2s ease;
}

@media all and (min-width: 768px) {

    .gform_fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.35rem 1.875rem;
    }

    .gform_fields .gfield--input-type-textarea {
        grid-column-start: -1;
        grid-column-end: 1;
    }

}

/* Applications */

/* --- MOBILE STYLES (Default) --- */

.applications-layout {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
}

.app-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
    background-color: #ededed;
    border: none;
    border-bottom: 1px solid #dcdcdc;
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    text-align: left;
    cursor: pointer;
}

.app-mobile-nav-toggle .chevron-icon {
    transition: transform 0.25s ease;
}

/* Rotate chevron when dropdown is open */
.app-mobile-nav-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.desktop-only {
    display: none;
}

.app-nav-list {
    display: none; /* Collapsed by default on mobile */
    list-style: none;
    margin: 0;
    background-color: #ededed;
    padding: 12px 18px;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

.app-nav-list.is-open {
    display: block;
}

.app-nav-list li a {
    font-size: 16px;
    text-decoration: none;
    color: inherit;
}
.app-nav-list li.is-active a { font-weight: 600; }

.applications-content {

    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

.applications-content h1.wp-block-heading {
    font-size: 2.1875rem;
    text-transform: uppercase;
}
.applications-content h2.wp-block-heading {
    font-size: 1.875rem;
}

/* --- DESKTOP STYLES (768px and up) --- */

@media (min-width: 1280px) {

    .alignfull-notondesktop {

    }

    .applications-layout {
        display: grid;
        grid-template-columns: 342px auto;
        max-width: var(--wp--style--global--content-size) !important;
        margin: 0 auto !important;
    }

    .applications-sidebar {
        background: #ededed;
        padding-top: 3.625rem;
        position: relative;
    }

    .applications-sidebar > * { position: relative; z-index: 3; }

    .applications-sidebar::before {
        content: "";
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: -100%;
        width: 30vw;
        background: #ededed;
        transform: translateX(-50%);
    }

    .app-mobile-nav-toggle {
        display: none; /* Hide mobile bar */
    }

    .desktop-only {
        display: block; /* Show normal title */
    }

    .sidebar-title {
        margin-left: var(--wp--style--root--padding-left);
        text-transform: uppercase;
        font-size: 0.875rem;
    }

    .app-nav-list {
        display: block !important; /* Always show sidebar links on desktop */
        background-color: transparent;
        padding-right: 0;
        margin-top: 2rem;
    }

    .app-nav-list li {
        padding-left: 1.375rem;
        padding-top: .5rem;
        padding-bottom: .5rem;
        position: relative;
    }

    .app-nav-list li.is-active {
        background: white;
        border-left: 3px solid var(--wp--preset--color--primary);
    }
    .app-nav-list li.is-active::after {
        content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8.184" height="12.406" viewBox="0 0 8.184 12.406"><path d="M0.842 0L0 1.006L6.154 6.203L0 11.4l0.842 1.006L8.184 6.203Z"/></svg>');
        display: inline-block;
        vertical-align: middle;
        position: absolute;
        top: 50%;
        right: 1.25rem;
        transform: translateY(-50%);
    }

    .app-nav-list li.is-active a {
        font-weight: normal;
    }

    .applications-content {
        min-width: 0;
        padding-left: 5rem;
        overflow: visible;
        position: relative;
    }

    .applications-content h1.wp-block-heading {
        font-size: 3.4375rem;
        text-transform: uppercase;
    }

    .applications-content h2.wp-block-heading {
        font-size: 2.8125rem;
    }


}


.sub-nav-scroll {
    margin-top: 2.875rem;
    display: flex;
    flex-wrap: wrap;
    column-gap: 3rem;
    row-gap: 0;
    width: 100%;
    padding-bottom: 12px;
    margin-bottom: 2.5rem;
    background-image: linear-gradient(to bottom, transparent 41px, #e5e5e5 41px);
    background-size: 100% 42px;
}

/* Custom minimal scrollbar */
.sub-nav-scroll::-webkit-scrollbar {
    height: 3px;
}
.sub-nav-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
}

.sub-nav-scroll a {
    text-decoration: none;
    color: #444;
    font-family: var(--wp--preset--font-family--helvetica-neue);
    font-weight: 400;
    font-size: 0.75rem;
    padding-bottom: 4px;
    height: 42px;
    line-height: 42px;
    position: relative;
}

/* Active / Hover red underline indicator */
.sub-nav-scroll a.is-active,
.sub-nav-scroll a:hover {
    color: #111;
}

.sub-nav-scroll a.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--wp--preset--color--primary); /* Highlight bar colour */
}

@media all and (min-width: 1024px) {

    .sub-nav-scroll a {
        font-size: 1.125rem;
    }

}


/* Post Filters */

.iko-filters {
    gap: 0rem 1rem;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 auto 4rem;
    padding: 0;
    width: 100%;
    justify-content: center;
}

.iko-filters li a {
    font-size: 0.625rem;
    color: inherit;
    text-decoration: none;
}

.iko-filters li.iko-filter--active a,
.iko-filters li a:hover {
    text-decoration: underline;
}

@media all and (min-width: 768px) {
    .iko-filters {
        gap: 1rem 2rem;
    }

    .iko-filters li a {
        font-size: 1rem;
    }
}


/* Articles Grid */

.iko-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wp-block-post {
    width: 100%;
}

.wp-block-post .wp-block-post__image {
    background: #F2F2F2;
    width: 100%;
    display: block;
    padding: 1rem;
    aspect-ratio: 1;
    position: relative;
}

.wp-block-post .wp-block-post__image img {
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    bottom: 0;
    height: 80%;
    width: 80%;
    display: block;
    object-fit: contain;
    transform: translate3d(-50%, -50%, 0);
}

.wp-block-post a.wp-block-post__link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    padding-right: 3rem;
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.wp-block-post a.wp-block-post__link h4 {
    font-size: 1rem;
    font-family: var(--wp--preset--font-family--helvetica-neue);
    font-weight: 300;
    margin: 0;
}

.wp-block-post a.wp-block-post__link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #e10600; /* Clean 2px border width */
    border-radius: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
}

.wp-block-post a.wp-block-post__link::after {
    content: '';
    position: absolute;
    right: 8px; /* Centered inside the 20px circle */
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 2px solid #e10600;
    border-right: 2px solid #e10600;
    transform: translateY(-50%) rotate(45deg);
    box-sizing: border-box;
}

.wp-block-post .wp-block-post__excerpt {
    border-top: 1px solid #707070;
    padding-top: 1rem;
    font-size: 0.75rem;
}

@media all and (min-width: 560px) {

    .iko-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        margin-block-end: 4rem !important;
    }

    .wp-block-post a.wp-block-post__link {
        padding-right: 1.5rem;
    }

}

@media all and (min-width: 1024px) {

    .wp-block-post a.wp-block-post__link h4 { font-size: 1.5625rem; font-weight: 500; }
    .wp-block-post .wp-block-post__excerpt { font-size: 1rem; }

    .wp-block-post a.wp-block-post__link::before {
        width: 35px;
        height: 35px;
        border: 1px solid #e10600; /* 1px border width */
    }

    .wp-block-post a.wp-block-post__link::after {
        right: 14px;
        width: 8px;
        height: 8px;
        border-top: 2px solid #e10600;
        border-right: 2px solid #e10600;
    }


}

@media all and (min-width: 1280px) {

    .iko-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2.5rem;
    }
}