/* Community articles */

.articles-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.articles-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #304a5e;
    border-radius: 9px;
    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(55, 139, 184, .16),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            rgba(29, 48, 65, .98),
            rgba(17, 31, 45, .98)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 5px 18px rgba(0, 0, 0, .14);
}

.articles-heading__eyebrow {
    display: block;
    color: #61b7e3;
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.articles-heading h1 {
    margin: .3rem 0 0;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1;
}

.articles-heading p {
    max-width: 680px;
    margin: .55rem 0 0;
    color: #8298a8;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.55;
}

.articles-heading__count {
    min-width: 145px;
    padding: .75rem 1rem;
    border: 1px solid #3a6178;
    border-radius: 7px;
    background: rgba(7, 25, 39, .45);
    text-align: right;
}

.articles-heading__count strong {
    display: block;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}

.articles-heading__count span {
    display: block;
    margin-top: .2rem;
    color: #6f8798;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

/* Featured story */

.articles-featured {
    min-height: 280px;
    overflow: hidden;
    display: grid;
    grid-template-columns:
        minmax(0, .92fr)
        minmax(420px, 1.08fr);
    border: 1px solid #345166;
    border-radius: 10px;
    background:
        linear-gradient(
            145deg,
            rgba(28, 47, 64, .99),
            rgba(17, 31, 45, .99)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 6px 22px rgba(0, 0, 0, .18);
}

.articles-featured__image {
    position: relative;
    min-height: 280px;
    display: block;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    text-decoration: none;
}

.articles-featured__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 18, 30, .05),
            rgba(5, 18, 30, .28)
        ),
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(5, 18, 30, .42)
        );
    transition: background .2s ease;
}

.articles-featured__image:hover::after {
    background:
        linear-gradient(
            90deg,
            rgba(5, 18, 30, 0),
            rgba(5, 18, 30, .2)
        ),
        linear-gradient(
            180deg,
            transparent 62%,
            rgba(5, 18, 30, .34)
        );
}

.articles-featured__image > span {
    position: absolute;
    z-index: 1;
    top: 1rem;
    left: 1rem;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 .65rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    background: rgba(49, 157, 207, .9);
    color: #fff;
    font-size: .54rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

.articles-featured__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 1.5rem;
}

.articles-featured__meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #6fbbe1;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.articles-featured h2 {
    margin: .55rem 0 0;
    font-size: clamp(1.4rem, 2.8vw, 2.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.articles-featured h2 a {
    color: #fff;
    text-decoration: none;
}

.articles-featured h2 a:hover {
    color: #78c7ec;
}

.articles-featured__content > p {
    margin: .8rem 0 0;
    color: #92a5b3;
    font-size: .73rem;
    font-weight: 700;
    line-height: 1.65;
}

.articles-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.articles-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: inherit;
    text-decoration: none;
}

.articles-author__avatar {
    width: 42px;
    height: 42px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #3d6177;
    border-radius: 7px;
    background: rgba(7, 24, 38, .62);
}

.articles-author__avatar img {
    width: 47px;
    max-width: none;
    margin-top: -1px;
    image-rendering: pixelated;
}
.articles-author__avatar > span {
    align-self: center;
    color: #77c9ee;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.articles-author--fallback,
.articles-card__author--fallback {
    cursor: default;
}

.articles-card__author > span > span {
    align-self: center;
    color: #77c9ee;
    font-size: .5rem;
    font-weight: 900;
}

.articles-author small {
    display: block;
    color: #718898;
    font-size: .49rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.articles-author strong {
    display: block;
    margin-top: .15rem;
    color: #e8f0f5;
    font-size: .65rem;
    font-weight: 900;
}

.articles-read-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 .9rem;
    border: 1px solid #3a7e31;
    border-radius: 5px;
    background: linear-gradient(#66ca52, #409937);
    color: #fff !important;
    font-size: .58rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        filter .15s ease,
        transform .15s ease;
}

.articles-read-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* Article grid */

.articles-section {
    overflow: hidden;
    border: 1px solid #30495c;
    border-radius: 9px;
    background:
        linear-gradient(
            145deg,
            rgba(28, 46, 63, .98),
            rgba(17, 31, 45, .98)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 4px 16px rgba(0, 0, 0, .13);
}

.articles-section__header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid #30495c;
    background: rgba(7, 24, 38, .28);
}

.articles-section__header span:first-child {
    display: block;
    color: #7190a4;
    font-size: .51rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.articles-section__header h2 {
    margin: .16rem 0 0;
    color: #fff;
    font-size: .84rem;
    font-weight: 900;
}

.articles-section__page {
    padding: .3rem .5rem;
    border: 1px solid #3a789a;
    border-radius: 5px;
    background: rgba(47, 145, 193, .11);
    color: #6dc0e9;
    font-size: .53rem;
    font-weight: 900;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    padding: .95rem;
}

.articles-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #395268;
    border-radius: 8px;
    background: rgba(7, 24, 38, .4);
    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.articles-card:hover {
    transform: translateY(-3px);
    border-color: #4b88aa;
    background: rgba(49, 129, 169, .08);
}

.articles-card__image {
    position: relative;
    min-height: 165px;
    display: block;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.articles-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(5, 18, 30, .65)
        );
}

.articles-card__image > span {
    position: absolute;
    z-index: 1;
    top: .65rem;
    right: .65rem;
    min-width: 35px;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .4rem;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 5px;
    background: rgba(5, 23, 37, .82);
    color: #fff;
    font-size: .5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.articles-card__content {
    padding: .85rem;
}

.articles-card__meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #708899;
    font-size: .48rem;
    font-weight: 900;
    text-transform: uppercase;
}

.articles-card h3 {
    margin: .38rem 0 0;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.35;
}

.articles-card h3 a {
    color: #edf4f8;
    text-decoration: none;
}

.articles-card h3 a:hover {
    color: #73c4eb;
}

.articles-card__content > p {
    min-height: 47px;
    margin: .48rem 0 0;
    color: #788d9d;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1.55;
}

.articles-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-top: .75rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.articles-card__author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
}

.articles-card__author > span {
    width: 31px;
    height: 31px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #3b5c71;
    border-radius: 6px;
    background: rgba(5, 21, 34, .55);
}

.articles-card__author img {
    width: 36px;
    max-width: none;
    margin-top: -1px;
    image-rendering: pixelated;
}

.articles-card__author strong {
    overflow: hidden;
    color: #cddae3;
    font-size: .55rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.articles-card__link {
    flex: 0 0 auto;
    color: #66bde8 !important;
    font-size: .52rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

/* Empty state */

.articles-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid #30495c;
    border-radius: 9px;
    background:
        linear-gradient(
            145deg,
            rgba(29, 47, 64, .98),
            rgba(17, 31, 45, .98)
        );
    text-align: center;
}

.articles-empty__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .8rem;
    border: 1px solid #3d7898;
    border-radius: 50%;
    background: rgba(49, 145, 192, .11);
    color: #6ac1eb;
    font-size: 1rem;
}

.articles-empty > span {
    color: #67b9e3;
    font-size: .54rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.articles-empty h2 {
    margin: .45rem 0 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}

.articles-empty p {
    max-width: 480px;
    margin: .55rem 0 0;
    color: #7c92a2;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.55;
}

.articles-empty a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0 .85rem;
    border: 1px solid #397c32;
    border-radius: 5px;
    background: linear-gradient(#65c851, #409837);
    color: #fff;
    font-size: .57rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

/* Pagination */

.articles-pagination {
    display: flex;
    justify-content: center;
    padding: .45rem 0 0;
}

.articles-pagination nav {
    width: 100%;
}

.articles-pagination nav > div:first-child {
    color: #8296a5;
}

.articles-pagination a,
.articles-pagination span[aria-current="page"] > span,
.articles-pagination span[aria-disabled="true"] > span {
    border-color: #334d60 !important;
    background: #152738 !important;
    color: #9eb1bf !important;
}

.articles-pagination a:hover {
    background: #1d3a4f !important;
    color: #fff !important;
}

.articles-pagination span[aria-current="page"] > span {
    border-color: #3b8bb4 !important;
    background: #286e93 !important;
    color: #fff !important;
}

/* Wide desktop */

@media (min-width: 1280px) {
    .articles-page {
        position: relative;
        left: 50%;
        width: calc(100vw - 40px);
        max-width: 1320px;
        transform: translateX(-50%);
    }
}

@media (min-width: 1800px) {
    .articles-page {
        max-width: 1380px;
    }
}

@media (max-width: 1050px) {
    .articles-featured {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, .9fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .articles-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .articles-heading__count {
        width: 100%;
        text-align: left;
    }

    .articles-featured {
        grid-template-columns: 1fr;
    }

    .articles-featured__image {
        min-height: 240px;
    }

    .articles-featured__content {
        padding: 1.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .articles-featured__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .articles-read-button {
        width: 100%;
    }

    .articles-section__header {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (prefers-reduced-motion: reduce) {
    .articles-featured__image::after,
    .articles-read-button,
    .articles-card {
        transition: none;
    }

    .articles-read-button:hover,
    .articles-card:hover {
        transform: none;
    }
}