.tln-mega {
    --tln-blue: #2155d6;
    --tln-pale: #edf2ff;
    --tln-ink: #222;
    --tln-muted: #555;
    position: relative;
    width: 100%;
    font: inherit;
    color: var(--tln-ink)
}

.tln-mega * {
    box-sizing: border-box
}

.tln-mega [hidden] {
    display: none !important
}

.tln-mega ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.tln-mega button,
.tln-mega a {
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none
}

.tln-mega button {
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    padding: 10px 12px
}

.tln-mega a {
    color: inherit
}

.tln-mega :is(a, button):focus-visible {
    outline: 2px solid var(--tln-blue);
    outline-offset: 3px
}

.tln-mega ::selection {
    background: var(--tln-blue);
    color: white
}

.tln-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px
}

.tln-top-link,
.tln-top-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}

.tln-top-link>.tln-description {
    display: none
}

.tln-top-toggle:hover,
.tln-top-toggle[aria-expanded=true],
.tln-top-link:hover {
    background: var(--tln-pale);
    color: var(--tln-ink);
    border-radius: 8px
}

.tln-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: 0 3px 4px 6px;
    flex-shrink: 0
}

[aria-expanded=true]>.tln-chevron {
    transform: rotate(225deg);
    margin-bottom: 0
}

.tln-dropdown {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    color: var(--tln-ink);
    box-shadow: 0 12px 32px rgba(20, 30, 70, .12)
}

.tln-mega.is-ready .tln-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: max(100%, min(1080px, calc(100vw - 40px)));
    max-width: calc(100vw - 40px);
    z-index: 1000;
    max-height: calc(100dvh - 120px);
    overflow: auto
}

.tln-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    min-height: 300px
}

.tln-categories {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.tln-overview {
    display: block;
    padding: 8px 0 14px;
    font-weight: 600 !important
}

.tln-overview:hover {
    text-decoration: underline
}

.tln-category,
.tln-category-link {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px !important;
    border-radius: 10px;
    background: var(--tln-pale) !important
}

.tln-category .tln-chevron {
    position: absolute;
    right: 12px;
    top: 18px
}

.tln-category {
    padding-right: 32px !important
}

.tln-label {
    display: block;
    font-size: 16px !important;
    line-height: 1;
    font-weight: 400 !important;
    color: #2F2F2F;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.tln-description {
    display: block;
    font-size: .8em;
    line-height: 1.5;
    color: var(--tln-muted);
    margin-top: 3px
}

.tln-category[aria-expanded=true] {
    background: var(--tln-blue) !important;
    color: #fff !important
}

.tln-category[aria-expanded=true] .tln-description {
    color: #fff
}

.tln-category-link:hover,
.tln-sub-link:hover {
    background: var(--tln-blue) !important;
} 

.tln-category-link:hover .tln-item-copy .tln-label,
.tln-category-link:hover .tln-item-copy .tln-description,
.tln-sub-link:hover .tln-label,
.tln-sub-link:hover .tln-description {
    color: #fff !important;

}

.tln-mega.is-ready .tln-subpanel {
    position: absolute;
    left: calc((100% - 48px)/3 + 24px);
    top: 0;
    width: calc((100% - 48px)/3)
}

.tln-links {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.tln-links .tln-links {
    padding-left: 12px
}

.tln-sub-link {
    display: block;
    padding: 12px;
    border-radius: 8px
}

.tln-preview {
    grid-column: 3;
    align-self: start
}

.tln-preview img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px
}

.tln-mobile-toggle {
    display: none !important
}

.tln-mega:not(.is-ready) .tln-layout {
    display: block
}

.tln-subpanel a.tln-overview {
    display: none;
}

@media(max-width:1024px) {
    /* Burger shows straight away, before the script has loaded, so the full list never flashes. */
    .tln-mega .tln-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0
    }

    /* Three bars that fold into a close icon while the menu is open. */
    .tln-burger,
    .tln-burger::before,
    .tln-burger::after {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, background-color .2s ease
    }

    .tln-burger {
        position: relative
    }

    .tln-burger::before,
    .tln-burger::after {
        content: "";
        position: absolute;
        left: 0
    }

    .tln-burger::before {
        transform: translateY(-7px)
    }

    .tln-burger::after {
        transform: translateY(7px)
    }

    .tln-mobile-toggle[aria-expanded=true] .tln-burger {
        background-color: transparent
    }

    .tln-mobile-toggle[aria-expanded=true] .tln-burger::before {
        transform: rotate(45deg)
    }

    .tln-mobile-toggle[aria-expanded=true] .tln-burger::after {
        transform: rotate(-45deg)
    }

    @media (prefers-reduced-motion: reduce) {
        .tln-burger,
        .tln-burger::before,
        .tln-burger::after {
            transition: none
        }
    }

    .tln-mega .tln-top {
        display: none
    }

    .tln-mega.is-ready.is-mobile-open .tln-top {
        display: flex
    }

    .tln-top {
        flex-direction: column;
        align-items: stretch
    }

    .tln-top-toggle,
    .tln-top-link {
        width: 100%;
        justify-content: space-between
    }

    .tln-mega.is-ready .tln-dropdown {
        position: static;
        width: 100%;
        max-width: none;
        max-height: none;
        padding: 12px;
        box-shadow: none
    }

    .tln-layout {
        display: block;
        min-height: 0
    }

    .tln-mega.is-ready .tln-subpanel {
        position: static;
        width: 100%;
        padding: 8px 0 12px 12px
    }

    .tln-preview {
        display: none
    }
}

/* Figma reference: compact cards, quiet section heading and portrait preview. */
.tln-mega .tln-dropdown {
    padding: 28px 30px 32px;
    border-radius: 16px;
    background: #fff
}

.tln-mega .tln-section-heading {
    margin: 0 0 22px
}

.tln-mega a.tln-section-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 400;
    color: #707070 !important
}

.tln-section-link .tln-description {
    display: none
}

.tln-mega .tln-categories {
    gap: 14px
}

.tln-mega .tln-category,
.tln-mega a.tln-category-link {
    min-height: 64px;
    padding: 13px 14px !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    color: #292929 !important;
    white-space: normal
}

.tln-mega .tln-label {
    font-weight: 400;
    line-height: 1.4
}

.tln-mega .tln-description {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    color: #555;
    margin-top: 2px
}

.tln-mega .tln-category[aria-expanded=true] {
    color: #fff !important
}

.tln-mega .tln-category[aria-expanded=true] .tln-description {
    color: #fff
}

.tln-mega .tln-category>.tln-chevron {
    display: none
}

.tln-mega .tln-links {
    gap: 14px
}

.tln-mega a.tln-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 8px;
    border-radius: 12px;
    color: #292929 !important;
    background: transparent
}

.tln-mega a.tln-sub-link:is(:hover, :focus-visible, .is-preview-active) {
    background: var(--tln-pale);
    color: #292929 !important
}

.tln-mega .tln-item-copy {
    min-width: 0;
    display: block
}

.tln-mega .tln-item-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tln-pale);
    border-radius: 8px
}

.tln-mega .tln-item-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain
}

.tln-mega a.tln-overview {
    font-size: 12px !important;
    font-weight: 400 !important;
    padding: 14px 8px 0;
    color: #555 !important;
    text-decoration: underline;
    text-underline-offset: 3px
}

.tln-overview .tln-label {
    font-size: 12px
}

.tln-overview .tln-description {
    display: none
}

.tln-mega .tln-preview img {
    border-radius: 10px
}

.tln-mega a.tln-top-link,
.tln-mega a.tln-top-toggle {
    color: #292929 !important
}

.tln-mega a.tln-top-toggle {
    border-radius: 8px
}

@media(max-width:1024px) {
    .tln-mega .tln-dropdown {
        padding: 16px 0;
        border-radius: 0
    }

    .tln-mega .tln-section-heading {
        margin-bottom: 12px
    }

    .tln-mega .tln-category>.tln-chevron {
        display: block
    }

    .tln-mega .tln-category {
        padding-right: 34px !important
    }

    .tln-mega .tln-layout {
        display: block;
        min-height: 0
    }

    .tln-mega.is-ready .tln-subpanel {
        left: auto;
        width: 100%;
        padding: 10px 0 14px 12px
    }
}

@media(min-width:1025px) {
    .tln-mega .tln-layout {
        grid-template-columns: 30% 30% 27%;
        justify-content: space-between;
        gap: 0
    }

    .tln-mega.is-ready .tln-subpanel {
        left: 33.5%;
        width: 30%
    }
}

.tln-mega .tln-label {
    font-size: 14px !important;
    color: inherit
}

.tln-mega .tln-overview .tln-label {
    font-size: 12px !important
}

.tln-mega .tln-section-link .tln-label {
    font-size: 13px !important
}

.tln-mega .tln-preview img {
    height: auto;
    aspect-ratio: 272/298;
    object-fit: cover
}

/* Default promotion shares the two right-hand columns. */
.tln-mega .tln-promotion {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    align-self: stretch
}

.tln-mega .tln-promotion-art {
    flex: 1 1 62%;
    min-width: 0
}

.tln-mega .tln-promotion-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border: 0;
    border-radius: 0
}

.tln-mega .tln-promotion-copy {
    flex: 1 1 38%;
    min-width: 0;
    margin-left: -80px;
}

.tln-mega .tln-promotion-title {
    margin: 0 0 6px;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #292929
}

.tln-mega .tln-promotion-description {
    margin: 0 0 18px;
    font: inherit;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
    color: #555
}

.tln-mega a.tln-promotion-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: var(--tln-blue);
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none
}

.tln-mega a.tln-promotion-button:hover {
    background: #1744b5
}

.tln-mega .tln-promotion-text-only {
    padding: 20px
}

.tln-mega .tln-top-toggle[aria-expanded=true] {
    color: var(--tln-ink) !important
}

@media(max-width:1024px) {
    .tln-mega .tln-promotion {
        margin-top: 20px;
        gap: 16px;
        flex-wrap: wrap
    }

    .tln-mega .tln-promotion-art {
        flex-basis: 100%
    }

    .tln-mega .tln-promotion-art img {
        max-height: 180px
    }

    .tln-mega .tln-promotion-copy {
        flex-basis: 100%
    }
}

/* Match dropdown triggers and plain links in the top navigation. */
.tln-mega .tln-top>.tln-top-item>.tln-top-toggle,
.tln-mega .tln-top>.tln-top-item>.tln-top-link,
.tln-mega .tln-top>.tln-top-item>.tln-top-link .tln-label {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* Current page or its top-level parent, independent of the hover state. */
.tln-mega .tln-top>.tln-top-item.is-current>.tln-top-link,
.tln-mega .tln-top>.tln-top-item.is-current>.tln-top-toggle {
    background: var(--tln-pale) !important;
    color: var(--tln-ink) !important;
    border-radius: 8px;
}

/* Image-only selections fill the unused submenu column on desktop. */
@media (min-width: 1025px) {
    .tln-mega .tln-preview.is-wide {
        grid-column: 2 / 4;
        width: 100%;
    }

    .tln-mega .tln-preview.is-wide img {
        width: 100%;
        height: 300px;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

/* Every category without children shares the submenu button's active treatment. */
.tln-mega a.tln-category-link:is(:hover, :focus-visible, .is-preview-active) {
    background: var(--tln-blue) !important;
    color: #fff !important;
}

.tln-mega a.tln-category-link:is(:hover, :focus-visible, .is-preview-active) .tln-label,
.tln-mega a.tln-category-link:is(:hover, :focus-visible, .is-preview-active) .tln-description {
    color: #fff !important;
}

/* Post-driven category links and a persistent featured article. */
.tln-mega .tln-post-links{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.tln-mega .tln-post-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tln-mega .tln-post-links .tln-sub-link{min-height:0;padding:10px 8px;overflow-wrap:anywhere}
.tln-mega .tln-posts-empty{font-size:13px;color:var(--tln-muted)}
.tln-mega a.tln-featured-card{grid-column:3;align-self:start;display:flex;flex-direction:column;overflow:hidden;border-radius:12px;background:var(--tln-pale);color:var(--tln-blue)!important;text-decoration:none}
.tln-mega .tln-featured-copy{display:block;padding:16px}
.tln-mega .tln-featured-label{display:block;font-size:11px;line-height:1.4;margin-bottom:4px}
.tln-mega .tln-featured-title{display:block;font-size:14px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.tln-mega .tln-featured-image{display:block;width:100%;height:240px;object-fit:cover}
.tln-mega .tln-featured-action{display:block;align-self:flex-end;font-size:12px;padding:10px 16px;text-decoration:underline;text-underline-offset:3px}
.tln-mega a.tln-featured-card:hover .tln-featured-title{text-decoration:underline;text-underline-offset:3px}
@media(max-width:1024px){
 .tln-mega a.tln-featured-card{margin-top:16px}
 .tln-mega .tln-post-columns-2{grid-template-columns:minmax(0,1fr)}
 .tln-mega .tln-featured-image{height:200px}
}

/* Account buttons sit at the end of the burger menu; Elementor shows its own on desktop. */
.tln-mega .tln-mobile-actions,
.tln-mega .tln-mobile-head {
    display: none
}

@media(max-width:1024px) {
    .tln-mega .tln-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--tln-pale)
    }

    .tln-mega .tln-mobile-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 20px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        color: var(--tln-blue) !important
    }

    .tln-mega .tln-mobile-actions a.tln-mobile-join {
        background: var(--tln-blue);
        color: #fff !important
    }

    .tln-mega .tln-mobile-actions a.tln-mobile-join:hover {
        filter: brightness(1.1)
    }

    .tln-mega .tln-mobile-actions a.tln-mobile-login:hover {
        background: var(--tln-pale)
    }
}

/* Mobile menu opens as a full-screen overlay with the close button pinned top-right. */
@media(max-width:1024px) {
    .tln-mega .tln-mobile-toggle,
    .tln-mega .tln-mobile-toggle:is(:hover, :focus, :active) {
        background: transparent !important;
        color: var(--tln-ink) !important;
        border: 0 !important
    }

    .tln-mega .tln-promotion-copy{
        margin-left: 0 !important;
    }

    .tln-mega.is-ready.is-mobile-open .tln-top {
        position: fixed;
        inset: var(--tln-menu-offset, 0px) 0 0;
        z-index: 100000;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 0 24px calc(32px + env(safe-area-inset-bottom));
        background: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        max-width: 100vw;
    }

    .tln-mega.is-mobile-open .tln-top>.tln-top-item>.tln-top-toggle,
    .tln-mega.is-mobile-open .tln-top>.tln-top-item>.tln-top-link,
    .tln-mega.is-mobile-open .tln-top>.tln-top-item>.tln-top-link .tln-label {
        font-size: 18px !important;
        font-weight: 500 !important
    }

    .tln-mega.is-mobile-open .tln-top>.tln-top-item>.tln-top-toggle,
    .tln-mega.is-mobile-open .tln-top>.tln-top-item>.tln-top-link {
        min-height: 52px
    }

    .tln-mega.is-mobile-open .tln-mobile-actions {
        margin-top: 20px;
        padding-top: 24px
    }

    /* Logo and close button stay pinned at the top while the menu scrolls. */
    .tln-mega.is-mobile-open .tln-mobile-head {
        display: flex;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1;
        min-height: 76px;
        margin-bottom: 16px;
        background: #fff
    }

    .tln-mega .tln-mobile-brand {
        display: block;
        padding: 0
    }

    .tln-mega .tln-mobile-close,
    .tln-mega .tln-mobile-close:is(:hover, :focus, :active) {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0 -10px 0 auto;
        padding: 0;
        background: transparent !important;
        color: var(--tln-ink) !important;
        border: 0 !important
    }

    .tln-close-icon {
        position: relative;
        display: block;
        width: 24px;
        height: 24px
    }

    .tln-close-icon::before,
    .tln-close-icon::after {
        content: "";
        position: absolute;
        top: 11px;
        left: 0;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transform: rotate(45deg)
    }

    .tln-close-icon::after {
        transform: rotate(-45deg)
    }

    .tln-mega .tln-mobile-brand img {
        display: block;
        width: auto !important;
        height: 56px !important;
        max-width: 160px
    }

    html.tln-mobile-menu-open,
    html.tln-mobile-menu-open body {
        overflow: hidden !important
    }

    .tln-mega-untrap {
        transform: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        perspective: none !important;
        will-change: auto !important;
        contain: none !important
    }
}

/* Item hover promotions keep image and copy apart; the default's negative overlap suits only its cutout art. */
.tln-mega .tln-promotion[data-tln-promo-for] .tln-promotion-art {
    flex: 1 1 55%
}

.tln-mega .tln-promotion[data-tln-promo-for] .tln-promotion-art img {
    max-height: 260px
}

.tln-mega .tln-promotion[data-tln-promo-for] .tln-promotion-copy {
    flex: 1 1 45%;
    margin-left: 0
}
