﻿body {
    position: relative;
}

body, main {
    color: var(--cmca-text);
    font-family: 'Poppins', sans-serif;
}

h1 {
    letter-spacing: clamp(-.4rem, -.75rem, 0rem);
}

.unv-footer h2 {
    font-size: 18px;
    font-weight: bold;
}

.unv-footer a {
    color: #fff;
    display: block;
    padding: 0;
    font-weight: 400;
}

.unv-footer__details h2 {
    margin: 1rem 0px;
}

.unv-header {
    background-color: var(--cmca-text);
    align-items: center;
    padding: 0 24px !important;
    border: none !important;
    z-index: 1000 !important;
    height: 56px;
}

@media (max-width: 1200px) {
    .unv-header {
        padding: 12px 24px !important;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    #double-header {
        display: none !important;
    }
}

.unv-header__navigation li {
    position: relative;
}

    .unv-header__navigation li:hover .nav-dropdown {
        display: block;
        min-width: 100%;
    }

.unv-header__hamburger-menu.js-header-hamburger {
    min-height: 100vh !important;
    padding: 24px 0;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none; 
}

.unv-header__hamburger-menu.js-header-hamburger::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.unv-header__hamburger-menu .unv-header__navigation li {
    border: none !important;
}

    .unv-header__hamburger-menu .unv-header__navigation li::after {
        display: none !important;
    }

.unv-header__hamburger-menu .unv-header__navigation ul li {
    position: relative;
}

.unv-header__hamburger-menu .unv-header__navigation ul .mobile-nav-button, .unv-header__hamburger-menu .unv-header__navigation ul a {
    padding: 12px 24px !important;
    border: none;
    background: none;
    text-align: start;
    width: 100%;
    position: relative;
    font-weight: normal !important;
    text-decoration: none !important;
    color: white !important;
}

    .unv-header__hamburger-menu .unv-header__navigation ul .mobile-nav-button:not(.active):hover, .unv-header__hamburger-menu .unv-header__navigation ul a:hover {
        color: #F58220 !important;
    }

    .unv-button {
        border-radius: 6px !important;
        white-space: nowrap;
    }

    .unv-button.secondary:not(disabled):hover {
        background-color: #F1F2F4 !important;
    }

.mobile-nav-button:hover::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='2,6 10,14 18,6' fill='%23F58220'/></svg>");
}

.unv-header__hamburger-menu .unv-header__navigation .mobile-nav-dropdown-button.active + .mobile-nav-button  {
    background-color: white;
    color: #172B4D !important;
}

    .unv-header__hamburger-menu .unv-header__navigation .mobile-nav-button.active::after {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='2,6 10,14 18,6' fill='%23172B4D'/></svg>") !important;
    }

.mobile-nav-dropdown-button {
    display: inline-block;
    width: 48px;
    height: 48px;
    position: absolute;
    right: 24px;
    top: 0;
    background: none;
    border: none;
    color: white;
    z-index: 10;
}

    .mobile-nav-dropdown-button.active {
        color: #172B4D !important;
    }

.mobile-nav-dropdown-button .fa-minus {
    display: none;
}

.mobile-nav-dropdown-button.active .fa-minus {
    display: inline-block;
}

    .mobile-nav-dropdown-button.active .fa-plus {
        display: none;
    }

.unv-header .unv-header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    width: 150px;
}

    .unv-header .unv-header-logo img {
        height: 100%;
        width: 100%;
        image-rendering: auto;
    }

    .unv-header .unv-header-logo img:last-child {
        display: none;
    }

    @media (max-width: 1200px) {
        .unv-header .unv-header-logo img:first-child {
            display: none;
        }

            .unv-header .unv-header-logo img:last-child {
                display: block;
            }
    }

.unv-header .unv-header__navigation {
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

    .unv-header .unv-header__navigation ul li > a, .unv-header .unv-header__navigation ul li > button {
        color: white;
        padding: 14px 20px;
        border: none;
        border-bottom: 2px solid var(--cmca-text);
        background: none;
        font-weight: normal;
        height: 100%;
    }

        .unv-header .unv-header__navigation ul li > a:focus, .unv-header .unv-header__navigation ul li > button:focus {
            text-decoration: underline;
            outline: 0;
        }

        .unv-header .unv-header__navigation ul li > a:hover, .unv-header .unv-header__navigation ul li > button:hover {
            text-decoration: none;
            border-bottom: 2px solid #F58220;
        }

    .unv-header .unv-header__navigation ul {
        gap: 0;
        margin: 0;
    }

    @media (max-width: 1200px) {
        .unv-header .unv-header__navigation {
            width: initial;
        }

        .unv-header .unv-header__user-bar .unv-button.primary, .unv-header .unv-header__user-bar .unv-button.secondary {
            display: none;
        }
    }

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    text-align: left;
    box-sizing: border-box;
    border-top: 2px solid #F58220;
    z-index: 1000;
    width: max-content;
}

    .nav-dropdown a {
        display: block !important;
        text-align: start;
        background-color: var(--cmca-text);
        color: white !important;
        text-decoration: none;
        padding: 6px 12px !important;
        font-weight: normal !important;
        font-size: 16px !important;
    }

    .nav-dropdown a:hover {
        text-decoration: none;
        color: #F58220 !important;
    }

.mobile-nav-dropdown {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    width: 100%;
    display: block;
}

    .mobile-nav-dropdown a {
        font-size: 14px !important;
    }

.mobile-nav-dropdown-button.active ~ .mobile-nav-dropdown {
    max-height: 500px;
}

.unv-header__hamburger-menu .unv-header__navigation li {
    flex-direction: column;
}

    .unv-header__hamburger-menu .unv-header__navigation li:hover {
        background-color: transparent !important;
    }

#double-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    background-color: #F1F2F9;
    padding: 8px 24px;
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#double-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: relative;
    width: 100%;
}

    #double-header-container .logo {
        position: absolute;
        left: 0;
    }

    #double-header-container img {
        width: 134px;
    }

    #double-header-container .menu {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
    }

        #double-header-container .menu a {
            text-decoration: none;
            color: #102B45;
        }

    #double-header-container a {
        color: var(--cmca-text);
    }

        #double-header-container a:hover {
            color: #F58220;
            text-decoration: none;
        }

#double-header-more-container {
    position: relative;
}

#double-header-more-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: white;
}

    #double-header-more-button .fa-solid.fa-triangle {
        transform: rotate(180deg);
        transition: 0.2s ease;
        font-size: 6px;
    }

#double-header-more-container.active .fa-solid.fa-triangle {
    transform: rotate(0);
}

#double-header-dropdown {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 32px;
    right: 0;
    width: 200px;
    background: white;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

#double-header-more-container.active #double-header-dropdown {
    display: flex;
}

#double-header-dropdown a {
    color: var(--cmca-text);
    padding: 8px 12px;
}

.unv-content__hero-section.unv-content__hero-image {
    background-image: url('../Assets/img/header_image.png');
    background-size: cover;
    background-position: center;
    min-height: 480px;
    max-height: 480px;
}

#banner > img, #banner > video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.unv-content__hero-section > h1 {
    margin-bottom: 24px !important;
    padding: 0 12px;
}

@media (max-width: 400px) {
    .unv-content__hero-section > h1 {
        font-size: 28px !important;
    }
}

h2.wanderer-section-title {
    color: #102B45;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 32px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid var(--cmca-neutral700);
}

.wanderer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1070px;
    margin: 32px auto;
    padding: 0 24px;
}

    .wanderer-container.compact {
        max-width: 720px;
    }

.wanderer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 20px;
}

.wanderer-main-left {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    grid-column-gap: 20px;
}

    .wanderer-main-left .article.main {
        grid-column: 1 / -1;
    }

    .wanderer-main-left h2.wanderer-section-title, .wanderer-main > h2.wanderer-section-title, .wanderer-main-left .wanderer-article {
        grid-column: 1 / -1;
    }

.wanderer-main-right {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    position: relative;
}

.article {
    padding: 10px 0;
    line-height: 1.2;
}

    .article h3 {
        margin: 0;
    }

    .article img {
        max-width: 100%;
        min-width: 100%;
        object-fit: cover;
    }

        .article img:hover {
            cursor: pointer;
            filter: brightness(70%);
        }

    .article > .premium {
        position: relative;
    }

        .article > .premium::after {
            content: "Members only";
            position: absolute;
            top: 0;
            right: 0;
            background: rgba(245, 130, 32, 0.94);
            color: #fff;
            font-size: 10px;
            padding: 2px 4px;
            border-bottom-left-radius: 4px;
            z-index: 10;
            pointer-events: none;
            white-space: nowrap;
            max-width: 95%;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 12px;
        }

    .article.main {
        min-width: 100%;
        max-width: 100%;
    }
        /* Thanks to FireFox we can't use aspect ratio 4/3, we need to set these manually...*/
        .article.main img {
            min-height: 525px;
            max-height: 525px;
            width: 100%;
        }


    /* Thanks to FireFox we can't use aspect ratio 4/3, we need to set these manually...*/
    .article.featured img {
        min-height: 255px;
        max-height: 255px;
    }

    .article .meta {
        display: flex;
        color: var(--cmca-text-subtle);

        font-size: 16px;
        margin-top: 8px;
        margin-bottom: 4px;
    }

        .article .meta > *::after {
            content: "•";
            margin: 0 0.5em;
            color: var(--cmca-neutral700) !important;
        }

        .article .meta > *:last-child::after {
            content: "";
        }

    .article .sponsored {
        font-weight: bold;
    }

    .article .category {
        color: #4876BA;
    }

        .article .category:hover {
            text-decoration: underline;
        }

    .article .title {
        font-size: 24px;
        font-weight: 500;
        color: var(--cmca-brand-dark) !important;
    }

        .article .title:visited {
            color: var(--cmca-neutral700) !important;
        }

    .article .description {
        margin: 4px 0;
        color: var(--cmca-text-subtle);
        font-size: 16px;
    }

    .article.horizontal {
        display: flex;
        gap: 8px;
        border-bottom: 0.5px solid rgb(228 237 247);
    }

        .article.horizontal:last-of-type {
            border-bottom: none;
        }

        .article.horizontal img {
            min-width: 128px;
            max-width: 128px;
            min-height: 96px;
            max-height: 96px;
        }

        .article.horizontal .meta {
            font-size: 12px;
            margin-top: 0;
        }

        .article.horizontal .title {
            font-size: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .article.horizontal .description {
            display: none;
        }

.wanderer-banner-content {
    display: flex;
    gap: 20px;
}

    .wanderer-banner-content .article {
        flex: 1;
    }

@media (max-width: 1118px) {
    .wanderer-container {
        max-width: 720px !important;
    }

    .wanderer-main-left {
        grid-column: 1 / 4 !important;
    }

    .wanderer-main-right {
        grid-column: 1 / 4 !important;
    }

    .wanderer-banner-content {
        flex-direction: column;
    }

    .article.featured {
        grid-column: 1 / -1;
    }

    .article.horizontal, .article.result, .wanderer-main .ad-container > * {
        flex-direction: column;
        border-bottom: 0.5px solid rgb(228 237 247);
    }

        .article.result .title-meta-container {
            display: flex;
            flex-direction: column-reverse;
        }

        .article img {
            min-height: calc(((100vw - 40px) / 16) * 9) !important;
            max-height: calc(((100vw - 40px) / 16) * 9) !important;
            max-width: 100% !important;
            min-width: 100% !important;
            object-fit: cover !important;
        }

        .article.horizontal .meta {
            font-size: 16px;
            margin-top: 8px;
        }

        .article.horizontal .title {
            font-size: 24px;
        }

        .article.horizontal .description {
            display: block;
        }
}

/* #region Article View */

.breadcrumbs {
    font-size: 16px;
    margin-bottom: 4px;
}

    .breadcrumbs a {
        color: #4876BA !important;
    }

.wanderer-article-sponsored {
    background: var(--cmca-brand-dark) !important;
    color: white;
    padding: 0 2px;
}

.wanderer-article hr {
    margin: 8px 0;
}

.wanderer-article-title {
    font-weight: 800;
    letter-spacing: normal;
    font-family: "lulo-one";
}

.wanderer-article-subtitle {
    font-size: 24px;
}

.wanderer-article-meta {
    color: var(--cmca-text);
    font-weight: 300;
}

.wanderer-article-author {
    color: #4876BA;
    font-weight: 500;
}

.wanderer-article-content {
    margin: 20px 0 0 !important;
    padding: 0 !important;
}

    .wanderer-article-content img {
        max-width: 100%;
    }

.wanderer-article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wanderer-article-tag {
    border: 1px solid var(--cmca-neutral700);
    color: var(--cmca-neutral700);
    padding: 4px 8px;
}

    .wanderer-article-tag:hover {
        border: 1px solid #4876BA;
        color: #4876BA;
        text-decoration: none;
    }

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

@media (max-width: 720px) {
    .share-buttons {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

.share-button {
    border: 2px solid white;
    color: white;
    padding: 8px;
    text-align: center;
    text-wrap: nowrap;
}

    .share-button:hover {
        text-decoration: none;
    }

    .share-button.facebook {
        background-color: #4267B2;
    }

        .share-button.facebook:hover {
            color: #4267B2;
            border: 2px solid #4267B2;
            background-color: white;
        }

    .share-button.twitter {
        background-color: #000000;
    }

        .share-button.twitter:hover {
            color: #000000;
            border: 2px solid #000000;
            background-color: white;
        }

    .share-button.email {
        background-color: #102B45;
    }

        .share-button.email:hover {
            color: #102B45;
            border: 2px solid #102B45;
            background-color: white;
        }

    .share-button.copy {
        background-color: var(--cmca-neutral700);
    }

        .share-button.copy:hover {
            color: var(--cmca-neutral700);
            border: 2px solid var(--cmca-neutral700);
            background-color: white;
        }

#paywall {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.paywall-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--cmca-text);
    z-index: 999;
    padding: 48px 24px;
    text-align: center;
    color: white;
}

.paywall-cta {
    font-size: 48px;
    line-height: 48px;
}

.paywall-button {
    display: inline-block;
    background: #F58220;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 16px 0;
}

    .paywall-button:not(:disabled):hover {
        color: white;
        background-color: #F58220BF;
    }

.paywall-signin-link {
    color: white;
    text-decoration: underline;
}

    .paywall-signin-link:hover {
        color: #F58220;
    }

.no-scroll {
    overflow: hidden;
}

/* #endregion */

/* #region Search results */

.wanderer-results {
    grid-column: 1 / -1;
}

.article.result {
    width: 100%;
    display: flex;
    gap: 8px;
}

    .article.result img {
        max-width: 210px;
        min-width: 210px;
        max-height: 158px;
        min-height: 158px;
    }

#load-more {
    display: block;
    margin: 24px auto;
    padding: 8px;
    border: 1px solid var(--cmca-brand-dark) !important;
    color: var(--cmca-brand-dark) !important;
    background: none;
}

    #load-more:hover {
        text-decoration: underline;
    }

    #load-more:disabled {
        opacity: 0.4;
        cursor: default;
    }

.wanderer-search {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .wanderer-search h1 {
        font-weight: bold;
        letter-spacing: initial;
    }

.wanderer-searchbar {
    width: 100%;
    height: 42px;
    border: 1px solid var(--cmca-neutral700);
    display: flex;
}

@media (max-width: 1118px) {
    .wanderer-searchbar {
        height: 56px;
    }
}

#wanderer-searchbar-input {
    width: 100%;
    height: 100%;
    background: none;
}

    #wanderer-searchbar-input,
    #wanderer-searchbar-input:hover,
    #wanderer-searchbar-input:focus,
    #wanderer-searchbar-input:active,
    #wanderer-searchbar-input:disabled,
    #wanderer-searchbar-input:visited {
        border: none !important;
        outline: none !important;
    }

#wanderer-searchbar-submit, #wanderer-searchbar-advanced-button {
    background: none;
    border: none;
    height: 100%;
    padding: 0 8px;
}

    #wanderer-searchbar-advanced-button.active .icon-filter {
        display: none;
    }

    #wanderer-searchbar-advanced-button .icon-back {
        display: none;
    }

    #wanderer-searchbar-advanced-button.active .icon-back {
        display: block;
    }

#advanced-search-dropdown h3 {
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    border-bottom: 0.5px solid var(--cmca-neutral700);
    padding-bottom: 8px;
    margin: 0;
    grid-column: 1 / -1;
}

.input-container > * {
    width: 100%;
}

.input-container input {
    border: 1px solid var(--cmca-neutral700);
}

.input-container label {
    width: 100%;
    margin: 0;
    font-weight: 300;
}

.wanderer-search-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 0.5px solid var(--cmca-neutral700);
}

.wanderer-sort label {
    font-weight: 300;
}

.wanderer-sort select {
    font-weight: bold;
    background: none;
    border: none;
    outline: none;
    padding-right: 8px;
}

.wanderer-sort option {
    background: none;
    border: none;
    outline: none;
}

.wanderer-search-results {
    grid-column: 1 / -1;
}

    .wanderer-search-results > span {
        display: block;
        width: 65%;
        margin: 48px auto;
        text-align: center;
    }

.wanderer-container.compact .wanderer-banner-content {
    flex-direction: column;
    gap: 0;
    margin: 10px 0;
}

.wanderer-searchbar-container {
    display: flex;
    gap: 8px;
}

.new-input {
    border: 1px solid #F58220;
    background: none;
    font-size: 12px;
    padding: 4px;
    width: 16.5em;
}

#authors-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-button {
    border: 1px solid black;
    background: none;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px;
}

    .tag-button i {
        font-size: 9px;
        height: 9px;
        font-weight: 300;
    }

/* #endregion */

/* #region Magazine View */

.magazine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 0.5px solid var(--cmca-neutral700);
}

    .magazine-header a {
        color: #4876BA;
    }

        .magazine-header a.disabled {
            opacity: 0.5;
            pointer-events: none;
            cursor: pointer;
        }

.wanderer-container h1 {
    letter-spacing: initial !important;
    color: #102B45;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 32px;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1118px) {
    .magazine-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .magazine img {
        min-height: 280px !important;
        max-height: 280px !important;
    }
}

@media (max-width: 720px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .magazine img {
        min-height: 60vw !important;
        max-height: 60vw !important;
    }
}

@media (max-width: 500px) {
    .magazine-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .magazine img {
        min-height: 100vw !important;
        max-height: 100vw !important;
    }
}

.magazine img {
    max-width: 100%;
    min-width: 100%;
    min-height: 320px;
    max-height: 320px;
}

.magazine h2, .magazine a {
    width: 100%;
    display: block;
    text-align: center;
}

.magazine a {
    color: #4876BA;
}

.magazine-view-header {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 0.5px solid var(--cmca-neutral700);
}

/* #endregion */

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    align-items: center;
}

.ad-container > * {
    min-height: 50px;
}

    .ad-container:has(#div-gpt-ad-sidebar-sticky) {
        position: sticky;
        top: 50px;
        margin: 10px 0;
    }