/*
  Single article page styles — /articles/<slug>.html
  Requires: articles-base.css
*/

/* -------------------------------------------------------------------------- */
/* Article layout                                                             */
/* -------------------------------------------------------------------------- */

.article {
    position: relative;
    color: var(--article-text);
    background: #fff;
    padding-bottom: 64px;
}

/* Full-bleed navy behind header + hero */
.article__band {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    min-height: var(--article-band-height);
    transform: translateX(-50%);
    background: var(--article-navy);
    pointer-events: none;
}

/* Width/padding from shared .articles-container in articles-base.css */
.article > .articles-container {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Header (title, badge, byline, hero)                                        */
/* -------------------------------------------------------------------------- */

.article__header {
    text-align: center;
    margin: 90px 0 var(--article-block-gap);
    padding-top: 32px;
}

.article__title {
    margin: 0 0 var(--article-h2-gap);
    color: #fff;
    font-size: 60px;
    line-height: 1.2;
    font-weight: 700;
    text-align: start;
}

.article__category {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--article-small-gap);
}

.article__byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 var(--article-small-gap);
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}

.article__author {
    font-weight: 700;
}

.article__author-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    overflow: hidden;
}

.article__author-icon img,
.article__author-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

.article__author-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article__byline-sep {
    opacity: 0.8;
}

.article__hero {
    margin: 0;
}

.article__hero img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

/* -------------------------------------------------------------------------- */
/* Body content                                                               */
/* -------------------------------------------------------------------------- */

.article__body {
    text-align: left;
}

.article__summary {
    margin: 0 0 var(--article-block-gap);
    font-size: var(--article-font-size);
    line-height: 1.6;
    color: #333;
}

.article__toc {
    margin: 0 0 var(--article-block-gap);
}

.article__toc-title {
    margin: 0 0 var(--article-h2-gap);
    font-size: var(--article-h2-size);
}

.article__toc ul {
    margin: 0;
    padding-left: 22px;
}

.article__toc li {
    margin: 8px 0;
}

.article__toc a {
    color: var(--article-link);
    text-decoration: underline;
    font-size: var(--article-font-size);
}

.article__section,
.article__howto,
.article__faq {
    margin: 0 0 var(--article-block-gap);
}

.article__section h2,
.article__howto h2,
.article__faq h2 {
    margin: 0 0 var(--article-h2-gap);
    font-size: var(--article-h2-size);
    line-height: 1.3;
    font-weight: 700;
}

.article__section p,
.article__howto p,
.article__faq p {
    margin: 0 0 14px;
    line-height: 1.6;
    font-size: var(--article-font-size);
}

.article__section ol,
.article__howto ol,
.article__faq ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.article__section ol li,
.article__howto ol li,
.article__faq ul li {
    margin-bottom: 10px;
    line-height: 1.55;
    font-size: var(--article-font-size);
}

.article__section ol li::marker,
.article__howto ol li::marker,
.article__faq ul li::marker {
    font-weight: 700;
}

.article__howto ol {
    margin: 0;
}

.article__howto ol li {
    margin-bottom: 16px;
}

.article__howto ol p {
    margin: 6px 0 0;
}

.article__faq ul {
    margin: 0;
}

.article__faq ul li {
    margin-bottom: 16px;
}

.article__faq ul li strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.article__faq ul li p {
    margin: 0;
    line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* Table                                                                      */
/* -------------------------------------------------------------------------- */

.article__table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.article__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.article__table th,
.article__table td {
    border: 1px solid var(--article-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    font-size: var(--article-font-size);
}

.article__table th {
    background: #eef4fc;
    font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* E-E-A-T                                                                    */
/* -------------------------------------------------------------------------- */

.article__eeat {
    margin: 0 0 var(--article-block-gap);
    padding-top: var(--article-block-gap);
    border-top: 1px solid #868686;
    font-size: var(--article-eeat-font-size);
    line-height: 1.55;
    color: var(--article-text);
}

.article__eeat h2 {
    margin: 0 0 12px;
    font-size: var(--article-h2-size);
    line-height: 1.4;
    font-weight: 700;
}

.article__eeat p {
    margin: 0 0 12px;
}

.article__eeat strong {
    font-weight: 700;
}

.article__eeat .article__sources,
.article__eeat .article__updated {
    margin: 0 0 8px;
    font-size: var(--article-eeat-font-size);
    color: var(--article-text);
}

.article__eeat .article__updated {
    margin-bottom: 0;
}

.article__back {
    margin: 24px 0 0;
}

.article__back a {
    color: var(--article-link);
    font-size: var(--article-font-size);
}

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

@media (max-width: 767px) {
    .article__band {
        min-height: 500px;
    }

    .article__header {
        margin-top: 48px;
        padding-top: 24px;
    }

    .article__title {
        font-size: 28px;
    }

    .article__hero img {
        height: 240px;
    }
}
