/* YesStreaming shared shell (inner pages): fonts, pill header, footer, pill buttons. Colours come from tokens.css. */
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/dm-sans/dm-sans-latin-wght.woff2)format("woff2");
    font-weight: 100 1000;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Serif";
    src: url(../fonts/instrument-serif/instrument-serif-italic-latin.woff2)format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

.hx-wrap {
    width: min(1200px,100% - 40px);
    margin-inline: auto;
}

.hx-nav .ico,
.hx-footer .ico,
.hx-btn .ico {
    width: 20px;
    height: 20px;
    flex: none;
}

.hx-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 8px 8px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s,color .2s,box-shadow .2s;
}

.hx-btn .ico {
    width: 38px;
    height: 38px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    transform: rotate(-45deg);
    transition: transform .25s;
}

.hx-btn:hover .ico {
    transform: rotate(0deg);
}

.hx-btn-primary {
    color: #fff;
}

.hx-btn-primary:hover {
    color: #fff;
}

.hx-btn-sm {
    padding: 5px 5px 5px 18px;
    font-size: 14px;
}

.hx-btn-sm .ico {
    width: 32px;
    height: 32px;
    padding: 8px;
}

.hx-nav {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1030;
    color: #fff;
    font-family: var(--font-sans);
}

.hx-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hx-nav a {
    text-decoration: none;
}

.hx-nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1100px,100% - 28px);
    height: 62px;
    padding: 0 8px 0 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(20,21,48,.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 16px 40px -24px rgba(11,11,31,.8);
}

.hx-nav.is-stuck .hx-nav-bar {
    background: rgba(20,21,48,.94);
}

.hx-brand img {
    display: block;
    height: 28px;
    width: auto;
}

.hx-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hx-links {
    display: flex;
    gap: 2px;
    margin-inline: auto!important;
}

.hx-links>li>a,
.hx-sub-toggle {
    display: block;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: 0 0;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

.hx-links>li>a:hover,
.hx-sub-toggle:hover,
.hx-has-sub.is-open .hx-sub-toggle,
.hx-links>li>a[aria-current=page] {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.hx-has-sub {
    position: relative;
}

.hx-sub-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 7px;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.6px 1.6px 0;
    transform: translateY(-3px) rotate(45deg);
    opacity: .6;
}

.hx-sub {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 300px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--color-line-soft);
    border-radius: 14px;
    box-shadow: 0 24px 48px -20px rgba(15,23,42,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .18s;
}

.hx-has-sub.is-open .hx-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hx-sub a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
}

.hx-sub a:hover,
.hx-sub a[aria-current=page] {
    background: var(--color-panel-b);
}

.hx-sub a b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text-strong);
}

.hx-sub a small {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
}

.hx-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hx-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 12px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: 0 0;
    cursor: pointer;
}

.hx-burger span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
}

.hx-footer {
    padding-top: 80px;
    background: var(--color-night);
    color: #9aa1ba;
    font-family: var(--font-sans);
    font-size: 15px;
}

.hx-footer a {
    color: inherit;
    text-decoration: none;
}

.hx-footer a:hover {
    color: #fff !important;
}

.hx-footer p {
    margin: 0 0 22px;
    max-width: 320px;
}

.hx-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.6fr;
    gap: 40px;
    padding-bottom: 56px;
}

.hx-footer-grid>div img {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
}

.hx-footer h4 {
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.hx-footer nav a {
    display: block;
    padding: 5px 0;
    color: #9aa1ba;
    transition: color .2s ease;
}

.hx-footer nav a:hover {
    color: #fff !important;
}

.hx-footer-products {
    columns: 2;
    column-gap: 32px;
}

.hx-footer-products h4 {
    column-span: all;
}

.hx-social {
    display: flex;
    gap: 10px;
}

.hx-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
}

.hx-social a:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

.hx-footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 26px 0 34px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
}

.hx-footer-base+.hx-footer-base {
    border-top: 0;
    padding-top: 0;
}

.hx-footer-base img {
    height: 26px;
    width: auto;
    opacity: .8;
}

@media (min-width:961px) {
    .hx-has-sub:hover .hx-sub {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .hx-has-sub::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
    }
}

@media (min-width:1440px) {
    .hx-wrap {
        width: min(1360px,100% - 80px);
    }
    .hx-nav-bar {
        width: min(1240px,100% - 80px);
    }
}

@media (min-width:1800px) {
    .hx-wrap {
        width: min(1520px,100% - 120px);
    }
    .hx-nav-bar {
        width: min(1360px,100% - 120px);
    }
}

@media (max-width:960px) {
    .hx-burger {
        display: block;
    }
    .hx-nav-bar {
        padding-right: 8px;
    }
    .hx-menu {
        position: absolute;
        top: 70px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 24px;
        border-radius: 24px;
        background: #141530;
        box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
    }
    .hx-nav.is-open .hx-menu {
        display: flex;
    }
    .hx-links {
        flex-direction: column;
    }
    .hx-sub {
        position: static;
        width: auto;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 4px 0 8px;
    }
    .hx-has-sub.is-open .hx-sub {
        display: block;
    }
    .hx-actions {
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .hx-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:640px) {
    .hx-footer-grid {
        grid-template-columns: 1fr;
    }
}

.hx-btn-primary {
    background: var(--grad-brand);
    background-size: 140% 100%;
    background-position: 0 0;
    box-shadow: 0 10px 24px -12px rgba(201,62,143,.75);
    transition: background-position .35s ease,box-shadow .35s ease,transform .2s ease;
}

.hx-btn-primary:hover {
    background: var(--grad-brand);
    background-size: 140% 100%;
    background-position: 100%0;
    box-shadow: 0 14px 28px -12px rgba(111,108,246,.8);
}
