.article-page {
    padding: 2rem 0 4rem;
}

.article-shell {
    max-width: 1180px;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.72;
}

.article-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.waterfront-article {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(3, 14, 27, 0.12);
}

.article-header {
    max-width: 920px;
    padding: 3rem 3rem 2rem;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #e9f1ff;
    color: #145caa;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-header h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.article-deck {
    max-width: 800px;
    margin: 1.35rem 0 0;
    font-size: 1.25rem;
    line-height: 1.58;
    opacity: 0.78;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
    font-size: 0.9rem;
    opacity: 0.68;
}

.article-featured-image {
    margin: 0;
}

.article-featured-image img {
    display: block;
    width: 100%;
    max-height: 720px;
    object-fit: cover;
}

.article-featured-image figcaption {
    padding: 0.8rem 3rem;
    font-size: 0.82rem;
    opacity: 0.68;
}

.article-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(240px, 320px);
    gap: 4rem;
    padding: 3rem;
}

.article-content {
    min-width: 0;
    font-size: 1.08rem;
    line-height: 1.78;
}

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

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content figure {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2.25rem;
    margin-bottom: 0.9rem;
    line-height: 1.18;
}

.article-content h2 {
    font-size: 1.9rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content a {
    overflow-wrap: anywhere;
}

.article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1.75rem auto;
    border-radius: 12px;
}

.article-content iframe,
.article-content video {
    max-width: 100%;
}

.article-content blockquote {
    padding: 1.1rem 1.4rem;
    border-left: 4px solid #477dff;
    background: #f5f8ff;
}

.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 0.65rem;
    border: 1px solid #d9e0e8;
}

.article-sidebar {
    align-self: start;
    position: sticky;
    top: 2rem;
}

.article-side-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: #071c2c;
    color: #ffffff;
}

.article-side-card h2 {
    margin: 0.65rem 0;
    line-height: 1.18;
}

.article-side-card p {
    opacity: 0.78;
    line-height: 1.55;
}

.article-side-link {
    display: inline-block;
    margin-top: 0.6rem;
    color: #ffffff;
    font-weight: 700;
}

.article-source {
    margin: 0 3rem 3rem;
    padding-top: 1.3rem;
    border-top: 1px solid #e2e7ed;
    font-size: 0.9rem;
}

.related-news {
    margin-top: 4rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.related-card {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(3, 14, 27, 0.09);
}

.related-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-copy {
    padding: 1.15rem;
}

.related-copy h3 {
    margin: 0.65rem 0;
    line-height: 1.25;
}

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

.related-copy time {
    font-size: 0.82rem;
    opacity: 0.65;
}

.article-footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.72;
}

.article-footer p {
    margin: 0.25rem 0;
}

@media (max-width: 850px) {
    .article-header {
        padding: 2rem 1.35rem 1.5rem;
    }

    .article-featured-image figcaption {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.35rem;
    }

    .article-sidebar {
        position: static;
    }

    .article-source {
        margin:
            0
            1.35rem
            2rem;
    }

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


/* WATERFRONT INLINE FEATURED IMAGE START */

.article-inline-featured-image {
    margin:
        1.75rem
        0;

    padding: 0;
}


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

    width: auto;
    max-width: 100%;

    max-height: 720px;

    margin:
        0
        auto;

    object-fit: contain;

    border-radius: 14px;
}


.article-inline-featured-image figcaption {
    margin-top: 0.65rem;

    font-size: 0.82rem;
    line-height: 1.4;

    opacity: 0.68;
}


@media (max-width: 700px) {

    .article-inline-featured-image {
        margin:
            1.25rem
            0;
    }


    .article-inline-featured-image img {
        width: 100%;
        max-height: none;

        border-radius: 10px;
    }
}

/* WATERFRONT INLINE FEATURED IMAGE END */


/* ==========================================================
   WATERFRONT ARTICLE DARK MODE FIX
========================================================== */

html[data-theme="dark"] .article-page {
    background: #07111c;
    color: #edf4fa;
}


html[data-theme="dark"] .waterfront-article {
    background: #0e1b28 !important;
    color: #edf4fa !important;

    border:
        1px
        solid
        #283b4c;
}


html[data-theme="dark"] .article-header {
    background: #0e1b28 !important;
    color: #edf4fa !important;
}


html[data-theme="dark"] .article-layout {
    background: #0e1b28 !important;
    color: #edf4fa !important;
}


html[data-theme="dark"] .article-content {
    background: #0e1b28 !important;
    color: #edf4fa !important;
}


/*
 * Imported article HTML should inherit readable
 * dark-mode text unless it is an actual link.
 */

html[data-theme="dark"] .article-content p,
html[data-theme="dark"] .article-content li,
html[data-theme="dark"] .article-content strong,
html[data-theme="dark"] .article-content em,
html[data-theme="dark"] .article-content span,
html[data-theme="dark"] .article-content h1,
html[data-theme="dark"] .article-content h2,
html[data-theme="dark"] .article-content h3,
html[data-theme="dark"] .article-content h4 {
    color: #edf4fa !important;
}


html[data-theme="dark"] .article-content a {
    color: #87baff !important;
}


html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-deck,
html[data-theme="dark"] .article-breadcrumb,
html[data-theme="dark"] .article-source,
html[data-theme="dark"] .article-featured-image figcaption,
html[data-theme="dark"] .article-inline-featured-image figcaption {
    color: #aab8c5 !important;
}


html[data-theme="dark"] .article-breadcrumb a {
    color: #d7e8f7 !important;
}


html[data-theme="dark"] .article-source {
    border-top-color: #283b4c !important;
}


html[data-theme="dark"] .article-source a {
    color: #87baff !important;
}


/* Quotes and tables */

html[data-theme="dark"] .article-content blockquote {
    background: #142433 !important;
    color: #edf4fa !important;

    border-left-color: #568cff !important;
}


html[data-theme="dark"] .article-content th,
html[data-theme="dark"] .article-content td {
    border-color: #283b4c !important;
    color: #edf4fa !important;
}


/*
 * Text selection should also remain obvious.
 */

html[data-theme="dark"] .article-content ::selection {
    background: #2d68e8;
    color: #ffffff;
}


/*
 * Related stories should match the article theme.
 */

html[data-theme="dark"] .related-card {
    background: #0e1b28 !important;
    color: #edf4fa !important;

    border:
        1px
        solid
        #283b4c;
}


html[data-theme="dark"] .related-copy h3 a {
    color: #edf4fa !important;
}


html[data-theme="dark"] .related-copy time {
    color: #aab8c5 !important;
}


/* ==========================================================
   END ARTICLE DARK MODE FIX
========================================================== */


/* ==========================================================
   WATERFRONT FINAL DARK MODE
   ARTICLE PAGE
========================================================== */

html[data-theme="dark"] .article-page {
    background: #07111c !important;
    color: #edf4fa !important;
}


html[data-theme="dark"] .waterfront-article,
html[data-theme="dark"] .article-header,
html[data-theme="dark"] .article-layout,
html[data-theme="dark"] .article-main,
html[data-theme="dark"] .article-content {
    background: #0e1b28 !important;
    color: #edf4fa !important;
}


html[data-theme="dark"] .article-content p,
html[data-theme="dark"] .article-content li,
html[data-theme="dark"] .article-content span,
html[data-theme="dark"] .article-content strong,
html[data-theme="dark"] .article-content em {
    color: #edf4fa !important;
}


html[data-theme="dark"] .article-content h1,
html[data-theme="dark"] .article-content h2,
html[data-theme="dark"] .article-content h3,
html[data-theme="dark"] .article-content h4 {
    color: #ffffff !important;
}


html[data-theme="dark"] .article-content a {
    color: #87baff !important;
}


html[data-theme="dark"] .article-deck,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-source,
html[data-theme="dark"] .article-breadcrumb,
html[data-theme="dark"] .article-content figcaption {
    color: #aab8c5 !important;
}


html[data-theme="dark"] .article-sidebar,
html[data-theme="dark"] .article-aside,
html[data-theme="dark"] .related-card {
    background: #142433 !important;
    color: #edf4fa !important;

    border-color: #283b4c !important;
}


html[data-theme="dark"] .related-card h2,
html[data-theme="dark"] .related-card h3,
html[data-theme="dark"] .related-card a {
    color: #edf4fa !important;
}


html[data-theme="dark"] .related-card time,
html[data-theme="dark"] .related-card p {
    color: #aab8c5 !important;
}


html[data-theme="dark"] .article-content blockquote {
    background: #142433 !important;
    color: #edf4fa !important;

    border-left-color: #568cff !important;
}


html[data-theme="dark"] .article-content table,
html[data-theme="dark"] .article-content th,
html[data-theme="dark"] .article-content td {
    background: #0e1b28 !important;
    color: #edf4fa !important;

    border-color: #283b4c !important;
}


/* END ARTICLE DARK MODE FIX */
