/*
  Shared articles styles — fonts, variables, page shell, header, footer.
  Linked from all /articles/*.html pages.
*/

@font-face {
    font-family: 'Inter';
    src: url('/assets/shared/font/Inter18pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/shared/font/Inter18pt-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --article-navy: #063773;
    --article-badge: #155dfc;
    --article-border: #0000001a;
    --article-link: #155dfc;
    --article-text: #1a1a1a;
    --article-max-width: 1120px;
    --article-band-height: 616px;
    --article-block-gap: 90px;
    --article-h2-gap: 30px;
    --article-small-gap: 15px;
    --article-h2-size: 20px;
    --article-font-size: 14px;
    --article-eeat-font-size: 12px;
}

/* -------------------------------------------------------------------------- */
/* Page shell                                                                 */
/* -------------------------------------------------------------------------- */

html {
    height: 100%;
}

.articles-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    color: var(--article-text);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background: #fff;
}

.articles-page > main {
    flex: 1 0 auto;
}

.articles-page *,
.articles-page *::before,
.articles-page *::after {
    box-sizing: border-box;
}

.articles-page > main a {
    color: var(--article-link);
}

/* Shared content width — listing + article detail */
.articles-container {
    width: 100%;
    max-width: var(--article-max-width);
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* Category badge (article detail + listing)                                    */
/* -------------------------------------------------------------------------- */

.article__category-badge,
.articles-featured__category,
.articles-card__category {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--article-badge);
    color: #fff;
    font-size: var(--article-font-size);
    font-weight: 700;
    line-height: 1.2;
    width: fit-content;
}

/* -------------------------------------------------------------------------- */
/* Site header (static duplicate)                                             */
/* -------------------------------------------------------------------------- */

.responsive-header-wrapper {
    width: 100%;
}

.articles-container > .responsive-header-wrapper .responsive-header {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    min-width: unset;
}

.articles-container > .responsive-header-wrapper .responsive-header__container {
    max-width: none;
}

.responsive-header {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    padding: 10px 20px;
    background: var(--article-navy);
}

.responsive-header__container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1120px;
}

.responsive-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.responsive-header__logo img {
    display: block;
    height: 42px;
    width: auto;
}

.responsive-header__logo:hover {
    text-decoration: none;
}

.responsive-header__icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.responsive-header__help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 25px;
    padding: 6px;
    border-radius: 5px;
}

.responsive-header__help:hover {
    background-color: rgba(208, 208, 208, 0.125);
    text-decoration: none;
}

.responsive-header__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.responsive-header__button {
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--article-navy);
    background-color: #fff;
    font-size: 16px;
    text-decoration: none;
}

.responsive-header__button:hover {
    color: var(--article-navy);
    background-color: #eee;
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Site footer                                                                */
/* -------------------------------------------------------------------------- */

.articles-site-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
    margin-top: 48px;
    padding: 40px 24px;
    color: #555;
    font-size: var(--article-font-size);
    text-align: center;
}

.articles-site-footer__logo {
    display: inline-block;
    text-decoration: none;
}

.articles-site-footer__logo img {
    display: block;
}

.articles-site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 40px;
}

.articles-site-footer__link {
    color: #666666;
    font-size: var(--article-font-size);
    text-decoration: none;
    white-space: nowrap;
}

.articles-site-footer__link:hover {
    color: #c05702;
    text-decoration: underline;
}

.articles-site-footer__copyright {
    margin: 0;
    color: #666666;
    font-size: var(--article-font-size);
}

.articles-site-footer__divider {
    visibility: hidden;
}

/* -------------------------------------------------------------------------- */
/* Mobile                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --article-max-width: none;
    }

    .articles-container {
        max-width: none;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 767px) {
    .responsive-header {
        height: 48px;
        min-width: unset;
        padding: 0 16px;
    }

    .responsive-header__logo img {
        height: 28px;
    }

    .articles-site-footer {
        padding: 0 24px 40px;
    }

    .articles-site-footer__links {
        gap: 0;
    }

    .articles-site-footer__link {
        font-size: 12px;
    }

    .articles-site-footer__link::after {
        content: " •";
    }

    .articles-site-footer__link:last-child::after {
        content: "";
    }

    .articles-site-footer__divider {
        visibility: visible;
        border: 0;
        border-bottom: 1px solid #dcdcdc;
        margin: 7px 45px;
    }

    .articles-site-footer__copyright {
        font-size: 12px;
    }
}
