/* =========================================
   LANDING: OLD COMPOSITION, NEW COLORS
   ========================================= */

body.article-landing-page {
    background: var(--bg);
}

.landing-bar {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.landing-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(920px, calc(100% - 32px));
    margin-inline: auto;
    padding-block: 20px;
}

.landing-brand {
    min-width: 0;
    color: var(--brand);
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.3px;
    overflow-wrap: anywhere;
}

.landing-home {
    flex-shrink: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.landing-shell {
    width: min(920px, calc(100% - 32px));
    margin: 28px auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 8px 30px rgb(37 35 42 / 7%);
}

/* Top banner: no inner decorative panel */
.landing-top-ad {
    padding: 18px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.landing-document {
    padding: 0;
}

.hybrid-landing-hero {
    padding: 32px 28px;
    background: linear-gradient(
        110deg,
        #49345f 0%,
        #352445 65%,
        #241a30 100%
    );
    color: #fff;
    text-align: center;
}

.hybrid-landing-eyebrow {
    margin: 0 0 12px;
    color: #e6d5f3;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.hybrid-landing-hero h1 {
    max-width: 780px;
    margin: 0 auto;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.hybrid-landing-inner {
    padding: 30px;
}

.hybrid-landing-preview {
    margin: 0 0 25px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    background: #f5f1f7;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.85;
    text-align: left;
}

.hybrid-landing-preview p {
    margin: 0;
}

.landing-reading-section {
    max-width: 650px;
    margin: 0 auto 30px;
    text-align: center;
}

.landing-introduction {
    margin: 0 0 20px;
    color: var(--text-soft);
    font-size: 14px;
}

.landing-action {
    text-align: center;
}

.landing-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 58px;
    padding: 17px 36px;

    border: 1px solid var(--brand);
    border-radius: 999px;

    background: var(--brand);
    color: #fff;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;

    box-shadow:
        0 5px 0 rgb(53 36 69 / 12%),
        0 10px 24px rgb(73 52 95 / 20%);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.landing-continue:hover,
.landing-continue:focus-visible {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;

    box-shadow:
        0 7px 0 rgb(53 36 69 / 10%),
        0 16px 30px rgb(73 52 95 / 26%);
}

.landing-continue:focus-visible {
    outline: 3px solid #b9a3d4;
    outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
    .landing-continue:hover {
        transform: translateY(-3px) scale(1.025);
    }
}

.landing-continue:active {
    transform: translateY(0) scale(.99);
}

@media (prefers-reduced-motion: reduce) {
    .landing-continue {
        transition: none;
    }

    .landing-continue:hover,
    .landing-continue:active {
        transform: none;
    }
}

@media (max-width: 560px) {
    .landing-continue {
        width: min(100%, 340px);
        padding-inline: 24px;
        font-size: 16px;
    }
}

.landing-action-note {
    margin: 11px 0 0;
    color: var(--text-soft);
    font-size: 12px;
}

/* Square ads */
.landing-ad-pair {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.landing-square-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 300px;
    min-height: 250px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.landing-ad-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.landing-square-ad .landing-ad-holder {
    width: 300px;
    min-height: 250px;
}

.landing-ad-label {
    display: none;
}

/* More from the collection */
.landing-more {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.landing-more h2 {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: 24px;
}

.landing-more ul {
    max-width: 680px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.landing-more li {
    border-top: 1px solid var(--line);
}

.landing-more li a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    color: var(--brand);
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
}

.landing-bottom-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 90px;
    margin: 0;
    padding: 18px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* =========================================
   FULL ARTICLE: WHITE CONTENT PANEL
   ========================================= */

.post-document {
    margin-top: 26px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 2px 6px rgb(37 35 42 / 4%);
    overflow-wrap: anywhere;
}

.post-document-header {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.post-document-header h1 {
    margin: 0;
    color: var(--text);
    font-family: var(--serif);
    font-size: clamp(28px, 3.5vw, 38px);
    line-height: 1.25;
    letter-spacing: -.025em;
}

.post-main-image {
    margin: 0 0 24px;
}

.post-main-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-prose {
    max-width: 100%;
    color: var(--text);
    font-size: 17px;
    line-height: 1.85;
}

.post-prose p {
    margin: 0 0 18px;
}

.post-prose h2 {
    margin: 34px 0 14px;
    padding: 0 0 8px 12px;
    border-bottom: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.35;
}

.post-prose h3 {
    margin: 26px 0 12px;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.4;
}

.post-prose ul,
.post-prose ol {
    margin: 0 0 20px;
    padding-left: 26px;
}

.post-prose ul {
    list-style: disc;
}

.post-prose ol {
    list-style: decimal;
}

.post-prose li {
    margin-bottom: 7px;
}

.post-prose blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--brand);
    background: var(--surface-muted);
}

.post-prose table {
    display: block;
    width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
}

.post-prose th,
.post-prose td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.post-prose th {
    background: var(--surface-muted);
}

.post-prose pre {
    overflow-x: auto;
    padding: 16px;
    background: var(--surface-muted);
    font-size: 14px;
}

.post-prose img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   INLINE ADS
   Desktop: 728 × 90
   Mobile: 300 × 250
   ========================================= */

.post-inline-ad {
    margin: 26px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.post-inline-ad-content {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 90px;
    overflow-x: auto;
    overflow-y: hidden;
}

.post-inline-ad-content iframe {
    display: block;
    width: 728px;
    height: 90px;
    max-width: none;
    margin-inline: auto;
    border: 0;
}

/* =========================================
   GALLERY AND RELATED ARTICLES
   ========================================= */

.post-gallery-section,
.post-related {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.post-gallery-section h2,
.post-related h2 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: 24px;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.post-gallery img {
    display: block;
    width: 100%;
    height: 110px;
    border-radius: 6px;
    object-fit: cover;
}

.post-related ul {
    padding-left: 20px;
    list-style: disc;
}

.post-related li {
    margin-bottom: 10px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 640px) {
    .post-document {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .landing-bar-inner {
        width: calc(100% - 24px);
        padding-block: 16px;
    }

    .landing-brand {
        font-size: 16px;
    }

    .landing-shell {
        width: calc(100% - 16px);
        margin-block: 16px;
    }

    .hybrid-landing-hero {
        padding: 26px 18px;
    }

    .hybrid-landing-inner {
        padding: 24px 12px;
    }

    .hybrid-landing-preview {
        padding: 15px;
        font-size: 14px;
    }

    .landing-continue {
        width: min(100%, 320px);
    }

    .landing-more h2 {
        font-size: 22px;
    }

    .post-prose {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .landing-bottom-ad {
        min-height: 250px;
    }

    .post-inline-ad-content {
        min-height: 250px;
    }

    .post-inline-ad-content iframe {
        width: 300px;
        height: 250px;
    }

.post-toc[hidden] {
    display: none;
}

.post-toc {
    position: relative;
    overflow: hidden;

    border: 1px solid #e7e0ee;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        #fbf9fd 0%,
        #ffffff 100%
    );

    box-shadow: 0 8px 24px rgb(73 52 95 / 6%);
}

.post-toc::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(
        180deg,
        #7a5aa0,
        #49345f
    );
}

.post-toc-head {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 18px 20px 13px;
    border-bottom: 1px solid #ece5f3;
}

.post-toc-head h2 {
    margin: 0;
    color: #49345f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-toc-icon {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7a5aa0;
    box-shadow: 0 0 0 4px rgb(122 90 160 / 12%);
}

.post-toc-list {
    margin: 0;
    padding: 8px 12px 14px;
    list-style: none;
}

.post-toc-list li {
    position: relative;
}

.post-toc-list li + li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: #ece5f3;
}

.post-toc-list a {
    display: block;
    padding: 11px 10px 11px 24px;

    border-radius: 9px;
    color: #5c5566;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.post-toc-list a::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c9b8dc;

    transform: translateY(-50%);
    transition: background-color 160ms ease;
}

.post-toc-list a:hover,
.post-toc-list a:focus-visible {
    color: #49345f;
    background: #f4eff9;
    text-decoration: none;
}

.post-toc-list a:hover::before,
.post-toc-list a:focus-visible::before {
    background: #7a5aa0;
}

.post-toc-list .post-toc-subitem a {
    padding-left: 34px;
    font-size: 12px;
    font-weight: 500;
}

.post-toc-list .post-toc-subitem a::before {
    left: 26px;
    width: 4px;
    height: 4px;
}

.post-toc-target {
    scroll-margin-top: 24px;
}

@media (max-width: 900px) {
    .post-toc {
        margin-bottom: 20px;
    }
}

/* Pastikan slot yang belum diposisikan tetap tersembunyi. */
.post-inline-ad[hidden] {
    display: none !important;
}

.post-document .post-inline-ad {
    clear: both;
    margin: 34px 0;
}

.post-inline-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-width: 0;
}

@media (max-width: 640px) {
    .post-document .post-inline-ad {
        margin: 28px 0;
    }
}

.landing-continue {
    font-family: inherit;
    cursor: pointer;
}

.landing-continue:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Tombol sudah aktif: tangan */
#landing-continue {
    pointer-events: auto;
    cursor: pointer !important;
}

/* Countdown masih berjalan: larangan */
#landing-continue:disabled {
    cursor: not-allowed !important;
}

/* Isi tombol mengikuti cursor tombol */
#landing-continue * {
    cursor: inherit !important;
}

}