/* ── ARTICLE HERO (branded band) ── */
.article-hero {
    background: linear-gradient(135deg, var(--navy2), var(--navy));
    padding: 54px 5% 50px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.article-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(239, 128, 25, .18) 0%, transparent 70%);
    pointer-events: none;
}

.article-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-hero .crumbs {
    position: static;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: 0 0 0 transparent;
    height: auto;
    z-index: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 20px;
}

.crumbs a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}

.crumbs a:hover {
    color: var(--orange);
}

.crumbs .sep {
    opacity: .4;
}

.ah-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
}

.ah-title {
    font-family: var(--h);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.16;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}

.ah-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 30px;
}

.ah-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ah-av {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange), var(--orange-d));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 128, 25, .45);
}

.ah-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ah-author-name {
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
}

.ah-author-meta {
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
}

.ah-stats {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
}

.ah-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── ARTICLE LAYOUT (wide) ── */
.article-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 5% 0;
}

/* ── BANNER IMAGE (top, below hero — never overlaps header) ── */
.post-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/7;
    background: linear-gradient(135deg, var(--navy2), var(--navy3));
    box-shadow: 0 20px 60px rgba(6, 13, 31, .18);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.post-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* graceful placeholder when image missing */
.post-banner .ph,
.fig .ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, .5);
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.post-banner .ph .ph-ic,
.fig .ph .ph-ic {
    font-size: 2.6rem;
    opacity: .85;
}

.post-banner .ph span,
.fig .ph span {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

/* date / share strip under banner */
.post-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 4px 0 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--orange-d);
    background: var(--orange-l);
    padding: 6px 14px;
    border-radius: 100px;
}

.post-strip .ps-share {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-share .lbl {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
}

.ps-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.ps-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-ll);
    transform: translateY(-2px);
}

/* ── EDITOR BODY ── */
.post-body {
    max-width: 840px;
    margin: 0 auto;
    font-size: 1.075rem;
    color: var(--text2);
    line-height: 1.85;
}

.post-body>p {
    margin-bottom: 22px;
}

.post-body>p:first-of-type {
    font-size: 1.16rem;
    line-height: 1.8;
    color: var(--text2);
}

.post-body h2 {
    font-family: var(--h);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 46px 0 16px;
}

.post-body h3 {
    font-family: var(--h);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
    margin: 34px 0 14px;
}

.post-body h4 {
    font-family: var(--h);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin: 26px 0 12px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.post-body ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text2);
    line-height: 1.7;
}

.post-body ul li::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--orange);
}

.post-body ol {
    counter-reset: olc;
}

.post-body ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 14px;
    counter-increment: olc;
    line-height: 1.7;
}

.post-body ol li::before {
    content: counter(olc);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--orange-l);
    color: var(--orange-d);
    font-family: var(--h);
    font-size: .82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-body strong {
    color: var(--text);
    font-weight: 700;
}

.post-body a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(239, 128, 25, .35);
    transition: border-color .2s;
}

.post-body a:hover {
    border-bottom-color: var(--orange);
}

.post-body blockquote {
    margin: 30px 0;
    padding: 18px 26px;
    border-left: 4px solid var(--orange);
    background: var(--orange-ll);
    border-radius: 0 12px 12px 0;
    font-family: var(--h);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    letter-spacing: -.01em;
}

/* ── IN-FLOW FIGURES ── */
.fig {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--navy2), var(--navy3));
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(6, 13, 31, .12);
}

.fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fig.single {
    aspect-ratio: 16/8;
    margin: 38px 0;
}

.fig.wide {
    aspect-ratio: 16/7;
    margin: 42px 0;
}

.figcap {
    display: block;
    text-align: center;
    font-size: .82rem;
    color: var(--muted2);
    margin-top: 10px;
    line-height: 1.5;
}

/* two side-by-side */
.fig-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.fig-duo .fig {
    aspect-ratio: 4/3;
    margin: 0;
}

/* let the two big images breathe wider than the prose column */
.post-body .fig.wide,
.post-body .fig-duo {
    width: min(1080px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
}

/* ── AUTHOR + TAGS ── */
.post-foot {
    max-width: 840px;
    margin: 8px auto 0;
}

.author-card {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 48px 0 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
}

.ac-av {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange), var(--orange-d));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 18px rgba(239, 128, 25, .4);
}

.ac-info h4 {
    font-family: var(--h);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3px;
}

.ac-info .ac-role {
    font-size: .8rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 8px;
}

.ac-info p {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.6;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.post-tag {
    font-size: .74rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 5px 13px;
    border-radius: 100px;
}

/* prev / next */
.post-nav {
    max-width: 840px;
    margin: 32px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    flex-wrap: wrap;
}

.post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text2);
    text-decoration: none;
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    transition: all .2s;
}

.post-nav a:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-ll);
}

/* ── RELATED ── */
.related-sec {
    background: var(--bg2);
    margin-top: 72px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, transform .25s;
}

.rp-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, .09);
    transform: translateY(-3px);
}

.rp-thumb {
    background: linear-gradient(135deg, var(--navy2), var(--navy3));
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    position: relative;
    flex-shrink: 0;
}

.rp-cat {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: var(--orange);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.rp-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rp-title {
    font-family: var(--h);
    font-size: .98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-meta {
    margin-top: auto;
    font-size: .74rem;
    color: var(--muted2);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── RESPONSIVE ── */
@media(max-width:980px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-body .fig.wide,
    .post-body .fig-duo {
        width: 100%;
        margin-left: 0;
        transform: none;
    }
}

@media(max-width:768px) {
    .article-hero {
        padding: 44px 5% 40px;
    }

    .ah-stats {
        margin-left: 0;
        width: 100%;
    }

    .article-wrap {
        padding-top: 32px;
    }

    .post-banner {
        aspect-ratio: 16/9;
    }

    .post-body {
        font-size: 1rem;
    }

    .fig-duo {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .post-strip .ps-share {
        margin-left: 0;
        width: 100%;
    }
}

@media(max-width:480px) {
    .post-body blockquote {
        font-size: 1.05rem;
        padding: 14px 18px;
    }

    .post-nav {
        flex-direction: column;
    }

    .post-nav a {
        justify-content: center;
    }
}