/* ===== ARTICLE PAGES =====
   Loaded after css/styles.css, which supplies the :root tokens and the
   accessibility widget styles. Mobile-first, like the rest of the site. */

.article-topbar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    padding: 14px 16px;
}

.article-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.article-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.article-home-link:hover {
    text-decoration: underline;
}

.article-topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--orange-start), var(--gold));
    color: var(--dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    direction: ltr;
}

.article-topbar-phone svg {
    width: 16px;
    height: 16px;
    fill: var(--dark);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 14px 16px 0;
    max-width: 820px;
    margin: 0 auto;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #636363;
    padding: 0;
}

.breadcrumbs a {
    color: #636363;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text-orange-dark);
    text-decoration: underline;
}

.breadcrumbs li + li::before {
    content: '‹';
    margin-left: 6px;
    color: #bbb;
}

.breadcrumbs [aria-current="page"] {
    color: var(--dark);
    font-weight: 600;
}

/* Article shell */
.article-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.article-header h1 {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.82rem;
    color: #636363;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 26px;
    background: var(--bg-section-alt);
}

.article-lead {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #3a3a3a;
    font-weight: 500;
    margin-bottom: 28px;
    padding-inline-start: 16px;
    border-inline-start: 4px solid var(--orange-start);
}

/* Table of contents */
.article-toc {
    background: var(--bg-section-alt);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 32px;
}

.article-toc h2 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.article-toc ol {
    padding-inline-start: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.article-toc a {
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-toc a:hover {
    color: var(--text-orange-dark);
    text-decoration: underline;
}

/* Body copy */
.article-body h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.4;
    margin: 38px 0 14px;
    scroll-margin-top: 20px;
}

.article-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 26px 0 10px;
}

.article-body p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px;
    padding-inline-start: 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.article-body li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.article-body li::marker {
    color: var(--text-orange-dark);
    font-weight: 700;
}

.article-body strong {
    color: var(--dark);
    font-weight: 700;
}

.article-body a {
    color: var(--text-orange-dark);
    font-weight: 600;
}

.article-body figure {
    margin: 26px 0;
}

.article-body figure img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.article-body figcaption {
    font-size: 0.8rem;
    color: #636363;
    text-align: center;
    margin-top: 8px;
}

/* Tables scroll rather than breaking the layout on phones */
.table-scroll {
    overflow-x: auto;
    margin: 0 0 22px;
    -webkit-overflow-scrolling: touch;
}

.article-body table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 0.87rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.article-body th,
.article-body td {
    padding: 11px 14px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    line-height: 1.6;
}

.article-body th {
    background: var(--dark);
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.article-body tbody tr:nth-child(even) {
    background: #fafafa;
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

/* Callout box */
.article-note {
    background: rgba(247, 147, 30, 0.07);
    border: 1px solid rgba(247, 147, 30, 0.25);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0;
}

.article-note p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.article-note p + p {
    margin-top: 10px;
}

.article-note strong {
    color: var(--text-orange-dark);
}

/* Inline CTA */
.article-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    border-radius: 20px;
    padding: 28px 22px;
    text-align: center;
    margin: 40px 0;
}

.article-cta h2 {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-cta .btn-primary {
    direction: ltr;
}

/* Per-article FAQ */
.article-faq {
    margin-top: 44px;
}

.article-faq > h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

/* Related articles */
.related-articles {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-articles h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

/* Hub page header */
.hub-header {
    text-align: center;
    padding: 34px 16px 8px;
    max-width: 760px;
    margin: 0 auto;
}

.hub-header h1 {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.hub-header p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* Article footer */
.article-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    padding: 26px 16px;
    font-size: 0.82rem;
    line-height: 1.9;
}

.article-footer a {
    color: var(--gold);
    text-decoration: none;
}

.article-footer a:hover {
    text-decoration: underline;
}

@media (min-width: 600px) {
    .article-header h1 {
        font-size: 2.15rem;
    }

    .hub-header h1 {
        font-size: 2.2rem;
    }

    .article-wrap {
        padding: 32px 20px 72px;
    }

    .article-lead {
        font-size: 1.1rem;
    }

    .article-body p,
    .article-body li {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.55rem;
    }

    .article-body h3 {
        font-size: 1.18rem;
    }

    .article-cta {
        padding: 36px 32px;
    }
}

@media (min-width: 992px) {
    .related-articles .article-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
