/* =========================================================
   BTAA TARJAMA — ARTICLE DETAIL V1
   Scoped reading experience
========================================================= */

.post-v1-body {
    background: #fbfaf7;
}

.post-page {
    --post-navy: #07111d;
    --post-navy-2: #0b1726;
    --post-ink: #101b2a;
    --post-muted: #66717e;
    --post-gold: #e5a93c;
    --post-gold-deep: #9b691e;
    --post-cream: #f4efe4;
    --post-paper: #fbfaf7;
    --post-line: rgba(16, 27, 42, .11);
    --post-radius-xl: 28px;
    --post-radius-lg: 22px;
    overflow: clip;
    background: var(--post-paper);
    color: var(--post-ink);
}

.post-page .container {
    width: min(1180px, calc(100% - 48px));
}

.post-kicker,
.post-section-label,
.post-aside-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--post-gold);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
}

.post-kicker::before,
.post-section-label::before,
.post-aside-kicker::before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
}

/* ---------- Hero ---------- */

.post-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 84px;
    background:
        radial-gradient(circle at 14% 8%, rgba(229, 169, 60, .12), transparent 30%),
        linear-gradient(135deg, #08121f 0%, #07111d 60%, #0b1726 100%);
    color: #fff;
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to left, #000, transparent 80%);
}

.post-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 320px;
    align-items: center;
    gap: 80px;
}

.post-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.52);
    font-size: 12px;
}

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

.post-hero h1 {
    max-width: 900px;
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(44px, 5.3vw, 76px);
    line-height: 1.12;
    letter-spacing: -.045em;
}

.post-hero-excerpt {
    max-width: 780px;
    margin: 24px 0 0;
    color: #bcc5d0;
    font-size: 17px;
    line-height: 1.95;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.post-meta strong {
    color: #fff;
    font-weight: 650;
}

.post-hero-aside {
    position: relative;
    min-height: 330px;
}

.post-issue-card {
    position: absolute;
    inset: 12px 8px 12px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 26px;
    background: rgba(255,255,255,.04);
    box-shadow: 0 28px 80px rgba(0,0,0,.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: rotate(-2.5deg);
}

.post-issue-card::after {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    top: 49%;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--post-gold), transparent);
}

.post-issue-number {
    color: rgba(255,255,255,.1);
    font-size: 74px;
    font-weight: 800;
    line-height: .85;
}

.post-issue-card > div {
    display: grid;
    gap: 5px;
}

.post-issue-card strong {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    letter-spacing: .08em;
}

.post-issue-card strong:nth-child(2) {
    color: var(--post-gold);
}

.post-issue-card small {
    color: rgba(255,255,255,.4);
    font-size: 10px;
    letter-spacing: .08em;
}

.post-issue-line {
    position: absolute;
    left: -20px;
    bottom: 40px;
    width: 100px;
    height: 2px;
    background: var(--post-gold);
    transform: rotate(18deg);
}

/* ---------- Feature media ---------- */

.post-reading-section {
    padding: 72px 0 100px;
    background: #fff;
}

.post-featured-media {
    position: relative;
    aspect-ratio: 16 / 7.5;
    overflow: hidden;
    margin-top: -126px;
    margin-bottom: 72px;
    border: 8px solid #fff;
    border-radius: 30px;
    background: var(--post-navy);
    box-shadow: 0 34px 90px rgba(8,13,23,.16);
}

.post-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-featured-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: space-between;
    padding: 46px;
    background:
        radial-gradient(circle at 14% 20%, rgba(229,169,60,.18), transparent 27%),
        linear-gradient(145deg, #09131f, #102238);
    color: #fff;
}

.post-featured-placeholder::after {
    content: "";
    position: absolute;
    left: 46px;
    right: 46px;
    top: 50%;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(229,169,60,.9), transparent);
}

.post-featured-placeholder span {
    color: var(--post-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.post-featured-placeholder strong {
    align-self: center;
    color: rgba(255,255,255,.08);
    font-size: clamp(70px, 11vw, 150px);
    line-height: .8;
    letter-spacing: -.08em;
}

.post-featured-placeholder small {
    color: rgba(255,255,255,.48);
    font-size: 12px;
}

/* ---------- Reading layout ---------- */

.post-reading-grid {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(250px, 310px);
    justify-content: center;
    align-items: start;
    gap: 70px;
}

.post-reading-main {
    min-width: 0;
}

.post-lead {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    margin-bottom: 48px;
    padding: 26px 28px;
    border: 1px solid rgba(16,27,42,.09);
    border-radius: 18px;
    background: var(--post-cream);
}

.post-lead > span {
    color: var(--post-gold-deep);
    font-size: 12px;
    font-weight: 750;
}

.post-lead p {
    margin: 0;
    color: var(--post-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.9;
}

.post-content {
    color: #27313c;
    font-size: 18px;
    line-height: 2.08;
}

.post-content > :first-child {
    margin-top: 0;
}

.post-content p {
    margin: 0 0 24px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    scroll-margin-top: 110px;
    color: var(--post-ink);
    letter-spacing: -.035em;
}

.post-content h2 {
    margin: 58px 0 22px;
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.28;
}

.post-content h3 {
    margin: 42px 0 18px;
    font-size: 25px;
    line-height: 1.35;
}

.post-content h4 {
    margin: 34px 0 15px;
    font-size: 20px;
}

.post-content a {
    color: #92631c;
    text-decoration: underline;
    text-decoration-color: rgba(229,169,60,.45);
    text-underline-offset: 4px;
}

.post-content a:hover {
    color: var(--post-gold-deep);
}

.post-content ul,
.post-content ol {
    display: grid;
    gap: 10px;
    margin: 24px 0 30px;
    padding-inline-start: 28px;
}

.post-content li::marker {
    color: var(--post-gold-deep);
    font-weight: 700;
}

.post-content blockquote {
    position: relative;
    margin: 42px 0;
    padding: 32px 34px 30px;
    border: 0;
    border-radius: 20px;
    background: var(--post-navy);
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.8;
}

.post-content blockquote::before {
    content: "“";
    position: absolute;
    top: -8px;
    left: 24px;
    color: var(--post-gold);
    font-family: Georgia, serif;
    font-size: 74px;
    line-height: 1;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content img {
    width: 100%;
    margin: 36px 0;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(16,27,42,.09);
}

.post-content hr {
    height: 1px;
    margin: 48px 0;
    border: 0;
    background: var(--post-line);
}

.post-content pre,
.post-content code {
    direction: ltr;
    text-align: left;
    font-family: Consolas, Monaco, monospace;
}

.post-content code {
    padding: .15em .4em;
    border-radius: 6px;
    background: #f0ece4;
    color: #6e4b18;
    font-size: .9em;
}

.post-content pre {
    overflow: auto;
    margin: 32px 0;
    padding: 24px;
    border-radius: 18px;
    background: #08121f;
    color: #eaf0f6;
    font-size: 14px;
    line-height: 1.8;
}

.post-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.post-content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--post-line);
    border-radius: 16px;
    font-size: 15px;
}

.post-content th,
.post-content td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--post-line);
    text-align: right;
    vertical-align: top;
}

.post-content th {
    background: var(--post-cream);
    color: var(--post-ink);
    font-weight: 700;
}

.post-content .highlight-box,
.post-content .callout {
    margin: 34px 0;
    padding: 24px 26px;
    border: 1px solid rgba(229,169,60,.3);
    border-inline-start: 4px solid var(--post-gold);
    border-radius: 16px;
    background: #fff9ed;
}

/* ---------- Aside ---------- */

.post-sticky-stack {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.post-aside-card {
    padding: 24px;
    border: 1px solid var(--post-line);
    border-radius: 20px;
    background: #fbfaf7;
}

.post-aside-card h2 {
    margin: 12px 0 18px;
    color: var(--post-ink);
    font-size: 22px;
    line-height: 1.3;
}

.post-toc {
    display: grid;
    gap: 4px;
}

.post-toc a,
.post-toc-empty {
    display: block;
    padding: 9px 11px;
    border-radius: 10px;
    color: #66717e;
    font-size: 13px;
    line-height: 1.55;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.post-toc a[data-level="3"] {
    padding-inline-start: 22px;
    font-size: 12px;
}

.post-toc a:hover,
.post-toc a.is-active {
    background: #fff;
    color: var(--post-ink);
    transform: translateX(-2px);
}

.post-next-card {
    background: var(--post-navy);
    color: #fff;
}

.post-next-card h2 {
    color: #fff;
}

.post-next-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.post-next-card > a:hover {
    color: var(--post-gold);
}

.post-next-card .icon {
    width: 15px;
    height: 15px;
}

/* ---------- Share ---------- */

.post-share-block {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 26px;
    margin-top: 64px;
    padding: 30px 0;
    border-top: 1px solid var(--post-line);
    border-bottom: 1px solid var(--post-line);
}

.post-share-block h2 {
    margin: 8px 0 0;
    color: var(--post-ink);
    font-size: 25px;
}

.post-share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.post-share-button {
    appearance: none;
    padding: 10px 14px;
    border: 1px solid var(--post-line);
    border-radius: 999px;
    background: #fff;
    color: var(--post-ink);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.post-share-button:hover {
    transform: translateY(-2px);
    border-color: rgba(229,169,60,.5);
    background: #fffaf0;
}

.post-share-status {
    grid-column: 1 / -1;
    min-height: 18px;
    color: var(--post-gold-deep);
    font-size: 12px;
}

/* ---------- Author ---------- */

.post-author-wide {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 22px;
    margin-top: 42px;
    padding: 28px;
    border-radius: 22px;
    background: var(--post-cream);
}

.post-author-avatar {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: var(--post-navy);
    color: var(--post-gold);
    font-size: 30px;
    font-weight: 800;
}

.post-author-wide h2 {
    margin: 8px 0 8px;
    font-size: 25px;
}

.post-author-wide p {
    max-width: 620px;
    margin: 0;
    color: var(--post-muted);
    font-size: 14px;
    line-height: 1.85;
}

.post-author-wide a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--post-gold-deep);
    font-size: 12px;
    font-weight: 700;
}

.post-author-wide .icon {
    width: 15px;
    height: 15px;
}

/* ---------- Related ---------- */

.post-related-section {
    padding: 92px 0;
    background: var(--post-cream);
}

.post-related-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.post-related-heading h2 {
    margin: 9px 0 0;
    color: var(--post-ink);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.12;
}

.post-related-heading p {
    margin: 10px 0 0;
    color: var(--post-muted);
    font-size: 14px;
}

.post-related-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--post-ink);
    font-size: 13px;
    font-weight: 650;
}

.post-related-heading > a .icon {
    width: 16px;
    height: 16px;
}

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

.post-related-card {
    overflow: hidden;
    border: 1px solid rgba(16,27,42,.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16,27,42,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.post-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(16,27,42,.1);
}

.post-related-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--post-navy);
}

.post-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.post-related-card:hover .post-related-media img {
    transform: scale(1.035);
}

.post-related-placeholder {
    display: flex;
    height: 100%;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px;
    background:
        radial-gradient(circle at 20% 20%, rgba(229,169,60,.16), transparent 28%),
        linear-gradient(145deg, #09131f, #102238);
}

.post-related-placeholder span {
    color: rgba(255,255,255,.12);
    font-size: 58px;
    font-weight: 800;
    line-height: .9;
}

.post-related-placeholder small {
    color: var(--post-gold);
    font-size: 9px;
    letter-spacing: .12em;
}

.post-related-content {
    padding: 22px;
}

.post-related-content > span {
    color: var(--post-gold-deep);
    font-size: 10px;
    font-weight: 750;
}

.post-related-content h3 {
    min-height: 58px;
    margin: 10px 0 14px;
    color: var(--post-ink);
    font-size: 19px;
    line-height: 1.55;
}

.post-related-content small {
    color: var(--post-muted);
    font-size: 11px;
}

/* ---------- End CTA ---------- */

.post-end-cta {
    padding: 82px 0;
    background: var(--post-navy);
    color: #fff;
}

.post-end-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.post-end-cta h2 {
    max-width: 720px;
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.18;
    letter-spacing: -.04em;
}

.post-end-cta p {
    max-width: 680px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 14px;
    line-height: 1.8;
}

.post-end-actions,
.post-not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-primary-button,
.post-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.post-primary-button {
    background: var(--post-gold);
    color: #111722;
    box-shadow: 0 12px 30px rgba(229,169,60,.18);
}

.post-secondary-button {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05);
    color: #fff;
}

.post-primary-button:hover,
.post-secondary-button:hover {
    transform: translateY(-2px);
}

.post-primary-button .icon,
.post-secondary-button .icon {
    width: 16px;
    height: 16px;
}

/* ---------- 404 ---------- */

.post-not-found-section {
    min-height: 62vh;
    display: grid;
    align-items: center;
    padding: 96px 0;
    background: var(--post-paper);
}

.post-not-found-card {
    max-width: 720px;
    margin: auto;
    padding: 52px;
    border-radius: 28px;
    background: var(--post-navy);
    color: #fff;
    text-align: center;
}

.post-not-found-card .post-kicker {
    justify-content: center;
}

.post-not-found-card > strong {
    display: block;
    margin-top: 18px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
}

.post-not-found-card p {
    max-width: 560px;
    margin: 18px auto 28px;
    color: rgba(255,255,255,.62);
    line-height: 1.9;
}

.post-not-found-actions {
    justify-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .post-hero-grid {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 48px;
    }

    .post-hero-aside {
        min-height: 290px;
    }

    .post-reading-grid {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 42px;
    }

    .post-featured-media {
        margin-top: -108px;
    }
}

@media (max-width: 880px) {
    .post-page .container {
        width: min(100% - 36px, 760px);
    }

    .post-hero {
        padding: 72px 0 120px;
    }

    .post-hero-grid {
        grid-template-columns: 1fr;
    }

    .post-hero-aside {
        display: none;
    }

    .post-featured-media {
        aspect-ratio: 16 / 9;
        margin-top: -86px;
        margin-bottom: 54px;
        border-width: 6px;
    }

    .post-reading-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .post-reading-aside {
        order: -1;
    }

    .post-sticky-stack {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

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

    .post-related-card:last-child {
        display: none;
    }

    .post-end-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .post-page .container {
        width: min(100% - 28px, 560px);
    }

    .post-hero {
        padding: 58px 0 102px;
    }

    .post-breadcrumbs {
        margin-bottom: 22px;
        font-size: 11px;
    }

    .post-hero h1 {
        font-size: clamp(36px, 11vw, 50px);
        line-height: 1.18;
    }

    .post-hero-excerpt {
        font-size: 15px;
        line-height: 1.85;
    }

    .post-meta {
        gap: 8px 14px;
        font-size: 11px;
    }

    .post-reading-section {
        padding-bottom: 72px;
    }

    .post-featured-media {
        margin-top: -72px;
        margin-bottom: 42px;
        border-width: 4px;
        border-radius: 20px;
    }

    .post-featured-placeholder {
        padding: 24px;
    }

    .post-featured-placeholder::after {
        left: 24px;
        right: 24px;
    }

    .post-lead {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px;
    }

    .post-lead p {
        font-size: 15px;
    }

    .post-content {
        font-size: 16px;
        line-height: 2;
    }

    .post-content h2 {
        margin-top: 46px;
        font-size: 29px;
    }

    .post-content h3 {
        margin-top: 36px;
        font-size: 22px;
    }

    .post-content blockquote {
        padding: 26px 22px;
        font-size: 18px;
    }

    .post-sticky-stack {
        grid-template-columns: 1fr;
    }

    .post-share-block {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .post-share-actions {
        justify-content: flex-start;
    }

    .post-author-wide {
        grid-template-columns: 56px 1fr;
        padding: 22px;
    }

    .post-author-avatar {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 24px;
    }

    .post-related-section {
        padding: 70px 0;
    }

    .post-related-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .post-related-card:last-child {
        display: block;
    }

    .post-related-content h3 {
        min-height: 0;
    }

    .post-end-cta {
        padding: 64px 0;
    }

    .post-end-actions {
        width: 100%;
    }

    .post-end-actions a {
        flex: 1 1 160px;
    }

    .post-not-found-card {
        padding: 34px 22px;
    }
}

@media (max-width: 430px) {
    .post-page .container {
        width: calc(100% - 24px);
    }

    .post-hero h1 {
        font-size: 36px;
    }

    .post-meta {
        display: grid;
        gap: 7px;
    }

    .post-featured-media {
        aspect-ratio: 4 / 3;
    }

    .post-author-wide {
        grid-template-columns: 1fr;
    }

    .post-share-button {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-page *,
    .post-page *::before,
    .post-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
