/* ==========================================================
   BOXXHEAD GAMING
   ARTICLE PUBLICATION DESIGN
========================================================== */

:root {
    --bxa-red: #e31616;
    --bxa-red-hot: #ff2929;
    --bxa-bg: #080808;
    --bxa-panel: #111;
    --bxa-line: rgba(255,255,255,.11);
    --bxa-muted: rgba(255,255,255,.62);
    --bxa-dim: rgba(255,255,255,.42);
}


/* ==========================================================
   PAGE FOUNDATION
========================================================== */

body.bx-article-publication {
    background:
        radial-gradient(
            circle at 50% -5%,
            rgba(190,0,0,.08),
            transparent 32%
        ),
        #080808;
    color: #fff;
}

.bx-article-page {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 38px 0 80px;
}

.bx-article {
    width: 100%;
}


/* ==========================================================
   ARTICLE TOP / BREADCRUMBS
========================================================== */

.bx-article-top {
    max-width: 920px;
    margin: 0 auto 23px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bx-article-back,
.bx-article-category {
    display: inline-flex;
    min-height: 28px;
    align-items: center;

    padding: 0 9px;

    border-radius: 4px;

    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bx-article-back {
    background: var(--bxa-red);
    color: #fff;
    text-decoration: none;
}

.bx-article-category {
    border: 1px solid var(--bxa-line);
    color: rgba(255,255,255,.62);
}


/* ==========================================================
   HEADER
========================================================== */

.bx-article-header {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 0 27px;
}

.bx-article-header h1 {
    max-width: 900px;

    margin: 0;

    color: #fff;

    font-size: clamp(42px, 6.4vw, 82px);
    line-height: .95;
    font-weight: 950;
    letter-spacing: -.06em;

    text-wrap: balance;
}

.bx-article-deck {
    max-width: 790px;

    margin: 20px 0 0;

    color: rgba(255,255,255,.69);

    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.48;
    font-weight: 450;
}

.bx-article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 23px;

    color: rgba(255,255,255,.46);

    font-size: 10px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.bx-article-byline > span:first-child {
    color: #fff;
}

.bx-byline-divider {
    color: var(--bxa-red);
}


/* ==========================================================
   SHARE BAR
========================================================== */

.bx-share-block {
    max-width: 920px;

    margin: 0 auto 28px;
    padding: 14px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-top: 1px solid var(--bxa-line);
    border-bottom: 1px solid var(--bxa-line);
}

.bx-share-label {
    flex: 0 0 auto;

    color: rgba(255,255,255,.42);

    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .13em;
}

.bx-share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.bx-share-btn {
    min-height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 11px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;

    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.75);

    font: inherit;
    font-size: 8px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .075em;
    text-decoration: none;

    cursor: pointer;

    transition:
        color .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.bx-share-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
}

.bx-share-main {
    background: var(--bxa-red);
    border-color: var(--bxa-red);
    color: #fff;
}


/* ==========================================================
   HERO IMAGE
========================================================== */

.bx-article-hero {
    width: min(1160px, 100%);

    margin: 18px auto 46px;

    overflow: hidden;

    border-radius: 13px;
    border: 1px solid var(--bxa-line);

    background: #101010;
}

.bx-article-hero img {
    display: block;

    width: 100%;
    max-height: 760px;

    object-fit: cover;
}


/* ==========================================================
   ARTICLE LAYOUT
========================================================== */

.bx-article-layout {
    width: min(1040px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 720px)
        minmax(210px, 260px);

    justify-content: center;

    gap: clamp(42px, 6vw, 74px);
}


/* ==========================================================
   ARTICLE BODY
========================================================== */

.bx-article-body {
    min-width: 0;

    color: rgba(255,255,255,.88);

    font-size: 18px;
    line-height: 1.79;

    letter-spacing: -.005em;
}

.bx-article-body > :first-child {
    margin-top: 0;
}

.bx-article-body p {
    margin: 0 0 25px;
}

.bx-article-body h2 {
    margin:
        50px
        0
        18px;

    color: #fff;

    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -.045em;

    text-wrap: balance;
}

.bx-article-body h2::before {
    content: "";

    display: block;

    width: 42px;
    height: 4px;

    margin-bottom: 13px;

    background: var(--bxa-red);
}

.bx-article-body h3 {
    margin:
        38px
        0
        14px;

    color: #fff;

    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.032em;
}

.bx-article-body strong {
    color: #fff;
}

.bx-article-body a {
    color: #fff;

    text-decoration-color: var(--bxa-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.bx-article-body a:hover {
    color: #ff4242;
}

.bx-article-body ul,
.bx-article-body ol {
    margin: 0 0 27px;
    padding-left: 26px;
}

.bx-article-body li {
    margin-bottom: 8px;
}

.bx-article-body blockquote {
    position: relative;

    margin:
        35px
        0;

    padding:
        7px
        0
        7px
        23px;

    border-left: 4px solid var(--bxa-red);

    color: #fff;

    font-size: clamp(21px, 2.3vw, 28px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.025em;
}

.bx-article-body hr {
    height: 1px;

    margin: 40px 0;

    border: 0;

    background: var(--bxa-line);
}


/* ==========================================================
   INLINE ARTICLE IMAGES
========================================================== */

.bx-article-inline-image {
    width: 100%;

    margin: 38px 0 42px;
}

.bx-article-inline-image img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 780px;

    object-fit: contain;

    border-radius: 10px;
    border: 1px solid var(--bxa-line);

    background: #080808;
}

.bx-article-inline-image figcaption {
    max-width: 92%;

    margin: 10px auto 0;

    color: rgba(255,255,255,.42);

    font-size: 11px;
    line-height: 1.5;
    font-style: normal;
}


/* ==========================================================
   ARTICLE SIDEBAR
========================================================== */

.bx-article-rail {
    min-width: 0;
}

.bx-rail-box {
    position: sticky;
    top: 22px;

    padding: 21px;

    border-top: 3px solid var(--bxa-red);
    border-left: 1px solid var(--bxa-line);
    border-right: 1px solid var(--bxa-line);
    border-bottom: 1px solid var(--bxa-line);

    border-radius: 0 0 8px 8px;

    background: #101010;
}

.bx-rail-label {
    margin-bottom: 8px;

    color: var(--bxa-red-hot);

    font-size: 8px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .14em;
}

.bx-rail-box strong {
    display: block;

    margin-bottom: 9px;

    color: #fff;

    font-size: 18px;
    line-height: 1.08;
    font-weight: 950;
}

.bx-rail-box p {
    margin: 0;

    color: rgba(255,255,255,.54);

    font-size: 12px;
    line-height: 1.55;
}


/* ==========================================================
   ARTICLE END / SOURCE
========================================================== */

.bx-article-end {
    width: min(720px, 100%);

    margin: 46px auto 0;
    padding-top: 23px;

    border-top: 1px solid var(--bxa-line);
}

.bx-article-end a {
    color: rgba(255,255,255,.72);
}

.bx-article-end a:hover {
    color: #fff;
}


/* ==========================================================
   RELATED STORIES INTEGRATION
========================================================== */

.bx-related {
    width: min(1160px, 100%);

    margin:
        72px
        auto
        0;

    padding-top: 30px;

    border-top: 1px solid var(--bxa-line);
}

.bx-related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.bx-related-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--bxa-red-hot);

    font-size: 9px;
    font-weight: 950;
    letter-spacing: .15em;
}

.bx-related-heading h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(27px, 3.7vw, 43px);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -.045em;
}

.bx-related-category-link {
    color: rgba(255,255,255,.56);

    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-decoration: none;
}

.bx-related-category-link:hover {
    color: #fff;
}

.bx-related-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 17px;
}

.bx-related-card {
    display: grid;

    grid-template-columns:
        42%
        minmax(0,1fr);

    overflow: hidden;

    border: 1px solid var(--bxa-line);
    border-radius: 10px;

    background: #101010;
}

.bx-related-image {
    display: block;

    min-height: 205px;

    overflow: hidden;

    background: #111;
}

.bx-related-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.bx-related-placeholder {
    width: 100%;
    height: 100%;
    min-height: 205px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle,
            rgba(227,22,22,.18),
            #0c0c0c 70%
        );

    color: rgba(255,255,255,.14);

    font-size: 34px;
    font-weight: 950;
}

.bx-related-copy {
    align-self: center;

    min-width: 0;

    padding: 18px;
}

.bx-related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 8px;

    color: rgba(255,255,255,.37);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.bx-related-meta span {
    color: var(--bxa-red-hot);
}

.bx-related-copy h3 {
    margin: 0;

    color: #fff;

    font-size: 18px;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -.025em;
}

.bx-related-copy h3 a {
    color: inherit;
    text-decoration: none;
}

.bx-related-copy p {
    margin: 9px 0 0;

    color: rgba(255,255,255,.56);

    font-size: 12px;
    line-height: 1.48;
}

.bx-related-read {
    display: inline-block;

    margin-top: 13px;

    color: rgba(255,255,255,.72);

    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-decoration: none;
}


/* ==========================================================
   READING PROGRESS
========================================================== */

.bx-reading-progress {
    position: fixed;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    z-index: 12000;

    pointer-events: none;

    background: transparent;
}

.bx-reading-progress span {
    display: block;

    width: 0;
    height: 100%;

    background: var(--bxa-red);

    transition: width .08s linear;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .bx-article-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .bx-article-body {
        max-width: 720px;
        margin: 0 auto;
    }

    .bx-article-rail {
        max-width: 720px;
        margin: 0 auto;
    }

    .bx-rail-box {
        position: static;
    }

    .bx-related-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .bx-article-page {
        width: min(100% - 22px, 1280px);

        padding-top: 26px;
        padding-bottom: 55px;
    }

    .bx-article-header h1 {
        font-size: clamp(37px, 12vw, 55px);
    }

    .bx-article-deck {
        margin-top: 15px;

        font-size: 16px;
        line-height: 1.48;
    }

    .bx-article-byline {
        margin-top: 17px;
    }

    .bx-share-block {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .bx-share-buttons {
        justify-content: flex-start;
    }

    .bx-share-btn {
        min-height: 37px;
    }

    .bx-article-hero {
        margin:
            10px
            auto
            31px;

        border-radius: 8px;
    }

    .bx-article-body {
        font-size: 17px;
        line-height: 1.72;
    }

    .bx-article-body p {
        margin-bottom: 22px;
    }

    .bx-article-body h2 {
        margin-top: 40px;
    }

    .bx-article-inline-image {
        margin: 29px 0 32px;
    }

    .bx-related {
        margin-top: 52px;
        padding-top: 25px;
    }

    .bx-related-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .bx-related-card {
        grid-template-columns:
            135px
            minmax(0,1fr);
    }

    .bx-related-image,
    .bx-related-placeholder {
        min-height: 145px;
    }

    .bx-related-copy {
        padding: 13px;
    }

    .bx-related-copy p {
        display: none;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 440px) {

    .bx-related-card {
        grid-template-columns:
            112px
            minmax(0,1fr);
    }

    .bx-related-image,
    .bx-related-placeholder {
        min-height: 125px;
    }

    .bx-related-copy h3 {
        font-size: 15px;
    }

}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.bx-article-page a:focus-visible,
.bx-article-page button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .bx-share-btn,
    .bx-reading-progress span {
        transition: none;
    }

}
