/*
 * IPC GLOBAL NEWS — ARTICLE PAGE
 * Restrained institutional newsroom presentation.
 */

:root {
    --article-ink: #102033;
    --article-muted: #65717d;
    --article-line: #dce2e7;
    --article-gold: #806019;
    --article-paper: #ffffff;
    --article-soft: #f5f7f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--article-paper);
    color: var(--article-ink);
}

.article-shell {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}


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

.article-site-header {
    border-bottom: 1px solid var(--article-line);
    background: #fff;
}

.article-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.article-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--article-ink);
    text-decoration: none;
}

.article-brand img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.article-brand span {
    display: flex;
    flex-direction: column;
}

.article-brand strong {
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.article-brand small {
    margin-top: 3px;
    color: var(--article-muted);
    font-size: 11px;
}

.article-site-header__inner > a:last-child {
    color: var(--article-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.article-site-header__inner > a:last-child:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


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

.article-page {
    padding: 0 0 72px;
}

.article-hero {
    max-width: 900px;
    padding-top: 58px;
    text-align: left;
}

.article-kicker {
    display: block;
    margin: 0 0 12px;
    color: var(--article-gold);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-hero h1 {
    max-width: 880px;
    margin: 0;
    color: var(--article-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.article-subtitle {
    max-width: 800px;
    margin: 18px 0 0;
    color: #56616d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.48;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--article-line);
    color: var(--article-muted);
    font-size: 12px;
    line-height: 1.5;
}

.article-meta strong {
    color: var(--article-ink);
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.article-featured-image {
    width: min(860px, calc(100% - 40px));
    margin: 34px auto 0;
}

.article-featured-image img {
    display: block;
    width: 100%;
    height: clamp(260px, 42vw, 420px);
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.article-featured-image figcaption {
    margin-top: 9px;
    color: var(--article-muted);
    font-size: 11px;
    line-height: 1.5;
}


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

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 250px;
    justify-content: center;
    gap: 62px;
    margin-top: 42px;
}

.article-content {
    min-width: 0;
}

.article-body {
    color: #222b34;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.78;
}

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

.article-body p {
    margin: 0 0 1.45em;
}

.article-body h2 {
    margin: 2.1em 0 0.65em;
    color: var(--article-ink);
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-body h3 {
    margin: 1.8em 0 0.6em;
    color: var(--article-ink);
    font-size: 23px;
    line-height: 1.25;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5em;
    padding-left: 1.35em;
}

.article-body li {
    margin-bottom: 0.55em;
}

.article-body blockquote {
    margin: 2em 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid var(--article-gold);
    color: #46515d;
    font-size: 21px;
    line-height: 1.55;
}

.article-body img {
    display: block;
    width: 100%;
    height: auto;
    margin: 28px 0;
    border-radius: 3px;
}

.article-body a {
    color: #705313;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


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

.article-sidebar {
    align-self: start;
}

.article-sidebar__box {
    padding: 22px;
    border-top: 3px solid var(--article-gold);
    background: var(--article-soft);
}

.article-sidebar__box h2 {
    margin: 0;
    color: var(--article-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.3;
}

.article-sidebar__box p {
    margin: 12px 0 0;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   TAGS
   ========================================================= */

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--article-line);
}

.article-tags span {
    padding: 6px 9px;
    border: 1px solid var(--article-line);
    color: #59646e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.article-related {
    padding: 46px 0 64px;
    border-top: 1px solid var(--article-line);
    background: var(--article-soft);
}

.article-related h2 {
    margin: 0 0 24px;
    color: var(--article-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-related__grid article {
    min-width: 0;
}

.article-related__grid img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
}

.article-related__grid article > span {
    display: block;
    margin-top: 12px;
    color: var(--article-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.article-related__grid h3 {
    margin: 6px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.3;
}

.article-related__grid h3 a {
    color: var(--article-ink);
    text-decoration: none;
}

.article-related__grid h3 a:hover {
    color: var(--article-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   NOT FOUND
   ========================================================= */

.article-not-found {
    padding: 80px 0;
}


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

@media (max-width: 920px) {
    .article-layout {
        grid-template-columns: minmax(0, 760px);
        gap: 36px;
    }

    .article-sidebar {
        max-width: 760px;
    }

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


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

@media (max-width: 600px) {
    .article-shell {
        width: min(100% - 28px, 1180px);
    }

    .article-site-header__inner {
        min-height: 66px;
    }

    .article-brand img {
        width: 38px;
        height: 38px;
    }

    .article-brand small {
        display: none;
    }

    .article-site-header__inner > a:last-child {
        font-size: 9px;
    }

    .article-hero {
        padding-top: 36px;
    }

    .article-hero h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .article-subtitle {
        margin-top: 14px;
        font-size: 17px;
    }

    .article-meta {
        gap: 5px 11px;
        margin-top: 18px;
        font-size: 10px;
    }

    .article-featured-image {
        width: calc(100% - 28px);
        margin-top: 26px;
    }

    .article-featured-image img {
        height: 220px;
        max-height: 220px;
    }

    .article-layout {
        width: calc(100% - 28px);
        margin-top: 30px;
    }

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

    .article-body h2 {
        font-size: 25px;
    }

    .article-body h3 {
        font-size: 21px;
    }

    .article-sidebar {
        display: none;
    }

    .article-related {
        padding: 36px 0 48px;
    }

    .article-related__grid {
        grid-template-columns: 1fr;
    }

    .article-related__grid img {
        height: 180px;
    }
}

/* =========================================================
   ARTICLE SHARING
   ========================================================= */

.article-share {
    margin: 28px 0 0;
    padding: 18px 0;
    border-top: 1px solid #e2e6ea;
    border-bottom: 1px solid #e2e6ea;
}

.article-content > .article-share {
    margin-top: 38px;
}

.article-share__label {
    display: block;
    margin-bottom: 12px;
    color: #5f6873;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #ccd3da;
    border-radius: 999px;
    background: #ffffff;
    color: #18212b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
    border-color: #18212b;
    background: #18212b;
    color: #ffffff;
    transform: translateY(-1px);
}

.share-btn:focus-visible {
    outline: 3px solid rgba(24, 33, 43, 0.18);
    outline-offset: 2px;
}

.share-btn.is-copied {
    border-color: #2b6b4d;
    background: #2b6b4d;
    color: #ffffff;
}

@media (max-width: 600px) {
    .article-share {
        margin-top: 22px;
        padding: 15px 0;
    }

    .article-content > .article-share {
        margin-top: 30px;
    }

    .article-share__buttons {
        gap: 8px;
    }

    .share-btn {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* =========================================================
   ARTICLE SHARING
   ========================================================= */

.article-share {
    margin: 28px 0 0;
    padding: 18px 0;
    border-top: 1px solid #e2e6ea;
    border-bottom: 1px solid #e2e6ea;
}

.article-content > .article-share {
    margin-top: 38px;
}

.article-share__label {
    display: block;
    margin-bottom: 12px;
    color: #5f6873;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #ccd3da;
    border-radius: 999px;
    background: #ffffff;
    color: #18212b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
    border-color: #18212b;
    background: #18212b;
    color: #ffffff;
    transform: translateY(-1px);
}

.share-btn:focus-visible {
    outline: 3px solid rgba(24, 33, 43, 0.18);
    outline-offset: 2px;
}

.share-btn.is-copied {
    border-color: #2b6b4d;
    background: #2b6b4d;
    color: #ffffff;
}

@media (max-width: 600px) {
    .article-share {
        margin-top: 22px;
        padding: 15px 0;
    }

    .article-content > .article-share {
        margin-top: 30px;
    }

    .article-share__buttons {
        gap: 8px;
    }

    .share-btn {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 12px;
    }
}
