/* ===== Article detail page (landing/contents/show) ===== */

.article-shell {
    background: var(--soft);
}

/* --- Hero --- */
.article-hero {
    position: relative;
    padding: 46px 0 120px;
    color: #fff;
    background:
        radial-gradient(circle at 14% 10%, rgba(226, 177, 95, .18), transparent 34%),
        radial-gradient(circle at 88% 90%, rgba(201, 137, 47, .14), transparent 40%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 62%, #123258 100%);
    overflow: hidden;
}

.article-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 64px;
    background: var(--soft);
    clip-path: ellipse(72% 100% at 50% 100%);
}

.article-hero .section-container {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.article-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .62);
}

.article-breadcrumbs li:not(:last-child)::after {
    content: "‹";
    margin-inline-start: 6px;
    color: rgba(255, 255, 255, .4);
}

.article-breadcrumbs a {
    color: rgba(255, 255, 255, .82);
    transition: color .2s;
}

.article-breadcrumbs a:hover {
    color: var(--gold-2);
}

.article-breadcrumbs li[aria-current="page"] {
    color: var(--gold-2);
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.article-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(226, 177, 95, .16);
    border: 1px solid rgba(226, 177, 95, .45);
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 900;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    font-weight: 700;
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--gold-2);
}

.article-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.55;
    color: #fff;
}

.article-lead {
    margin: 0;
    max-width: 700px;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 2;
    color: rgba(255, 255, 255, .78);
}

/* --- Layout --- */
.article-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: -78px;
    padding-bottom: 64px;
}

.article-main {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(20px, 3.4vw, 40px);
    box-shadow: var(--shadow);
}

/* --- Featured image --- */
.article-featured-image {
    margin: 0 0 30px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(7, 26, 52, .08);
    box-shadow: 0 18px 44px rgba(7, 26, 52, .1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* --- Body typography --- */
.article-body {
    font-size: 16.5px;
    line-height: 2.15;
    color: var(--ink);
}

.article-body p {
    margin: 0 0 20px;
    color: #33465f;
    font-weight: 600;
}

.article-body > p:first-child {
    font-size: 17.5px;
    color: var(--ink);
    font-weight: 700;
}

.article-body h2 {
    position: relative;
    margin: 38px 0 16px;
    padding-inline-start: 16px;
    font-size: clamp(20px, 2.6vw, 25px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.6;
    scroll-margin-top: 100px;
}

.article-body h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 8px;
    bottom: 8px;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

/* --- Note & sources boxes --- */
.article-note {
    display: flex;
    gap: 14px;
    margin: 30px 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff8ec;
    border: 1px solid rgba(201, 137, 47, .3);
}

.article-note svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 4px;
    color: var(--gold);
}

.article-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.article-note p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.95;
    color: #6b5638;
}

.article-sources {
    margin: 26px 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.article-sources strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 900;
}

.article-sources strong svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.article-sources p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--muted);
}

/* --- Empty state --- */
.article-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--muted);
}

.article-empty svg {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    color: var(--gold);
}

.article-empty h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 20px;
}

/* --- Tags --- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.article-tags svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.article-tags span {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 800;
}

/* --- Share --- */
.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.article-share > span {
    font-size: 14px;
    font-weight: 900;
    color: var(--navy);
}

.article-share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-share-links a,
.article-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    transition: all .2s;
}

.article-share-links a:hover,
.article-copy-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.article-share-links svg {
    width: 17px;
    height: 17px;
}

.article-copy-link em {
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

/* --- Inline CTA --- */
.article-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding: 28px 30px;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(226, 177, 95, .22), transparent 42%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
}

.article-cta span {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 900;
}

.article-cta h2 {
    margin: 0;
    max-width: 480px;
    font-size: clamp(17px, 2.2vw, 21px);
    line-height: 1.7;
    color: #fff;
}

.article-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--gold-2), var(--gold));
    color: var(--navy);
    font-weight: 900;
    font-size: 14.5px;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}

.article-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(201, 137, 47, .35);
}

.article-cta a svg {
    width: 17px;
    height: 17px;
}

/* --- Sidebar --- */
.article-aside {
    display: grid;
    gap: 18px;
    align-content: start;
}

.aside-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 14px 36px rgba(7, 26, 52, .06);
}

.article-toc {
    position: sticky;
    top: 96px;
}

.article-toc strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.article-toc strong svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.article-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: 2px;
}

.article-toc li {
    counter-increment: toc;
}

.article-toc a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #41536d;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.7;
    transition: all .2s;
}

.article-toc a::before {
    content: counter(toc, arabic-indic);
    flex-shrink: 0;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.article-toc a:hover {
    background: var(--soft);
    color: var(--navy);
}

.aside-cta-card {
    color: #fff;
    border: none;
    background:
        radial-gradient(circle at 80% 12%, rgba(226, 177, 95, .24), transparent 44%),
        linear-gradient(150deg, var(--navy), var(--navy-2));
}

.aside-cta-card > span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-2);
    font-size: 12.5px;
    font-weight: 900;
}

.aside-cta-card p {
    margin: 0 0 16px;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.8;
    color: #fff;
}

.aside-cta-card a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 11px;
    background: linear-gradient(120deg, var(--gold-2), var(--gold));
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 900;
    transition: transform .2s;
}

.aside-cta-card a:hover {
    transform: translateY(-2px);
}

.aside-cta-card a svg {
    width: 16px;
    height: 16px;
}

.aside-document {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .2s;
}

.aside-document:hover {
    border-color: var(--gold);
}

.aside-document > svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.aside-document span {
    display: grid;
    gap: 2px;
    font-size: 14px;
    font-weight: 900;
    color: var(--navy);
}

.aside-document small {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
}

.aside-document b {
    margin-inline-start: auto;
    color: var(--gold);
    font-size: 12.5px;
}

.aside-gold-link strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.aside-gold-link strong svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.aside-gold-link p {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
    font-weight: 600;
}

.aside-gold-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 13.5px;
    font-weight: 900;
}

.aside-gold-link a svg {
    width: 15px;
    height: 15px;
}

/* --- Related --- */
.article-related {
    padding: 10px 0 70px;
}

.related-head {
    margin-bottom: 26px;
}

.related-head span {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.related-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(21px, 2.8vw, 27px);
    font-weight: 900;
}

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

.related-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(7, 26, 52, .06);
    transition: transform .25s, box-shadow .25s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(7, 26, 52, .12);
}

.related-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 9px;
    padding: 20px;
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.related-card-meta span {
    color: var(--gold);
}

.related-card strong {
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.7;
}

.related-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 600;
}

.related-card em {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--navy);
    font-style: normal;
    font-size: 13.5px;
    font-weight: 900;
}

.related-card em svg {
    width: 15px;
    height: 15px;
    color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-toc {
        position: static;
    }

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

@media (max-width: 640px) {
    .article-hero {
        padding: 30px 0 104px;
    }

    .article-layout {
        margin-top: -70px;
    }

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

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-cta {
        padding: 24px 22px;
    }
}
