/* Shared Article Design System: frontend modal (.wp-content) and admin preview (.content-preview). */
:is(.wp-content, .content-preview) .pd-article-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 0.9rem;
    padding: 0.35rem 0.85rem;
    color: #9a6618;
    border-radius: 999px;
    background: rgba(217, 164, 65, 0.13);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

:is(.wp-content, .content-preview) .pd-article-lead {
    margin: 0 0 1.6rem;
    color: #0f172a;
    font-size: clamp(1.08rem, 2vw, 1.24rem);
    line-height: 1.85;
}

:is(.wp-content, .content-preview) :is(.pd-article-highlight, .pd17-hero, .pd17-highlight) {
    margin: 1.65rem 0;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    color: #24324a;
    border: 1px solid rgba(217, 164, 65, 0.28);
    border-left: 5px solid #d9a441;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(217, 164, 65, 0.13), #ffffff);
    box-shadow: 0 10px 24px rgba(12, 27, 49, 0.07);
}

:is(.wp-content, .content-preview) :is(.pd-article-note, .pd17-note) {
    margin: 1.65rem 0;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    color: #164e63;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-left: 5px solid #38bdf8;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), #ffffff);
    box-shadow: 0 10px 24px rgba(12, 27, 49, 0.07);
}

:is(.wp-content, .content-preview) :is(.pd-article-note, .pd17-note)::before {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.28rem 0.7rem;
    color: #0e7490;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.1);
    content: "Catatan";
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

:is(.wp-content, .content-preview) :is(.pd-article-card, .pd17-card) {
    margin: 1.65rem 0;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    color: #334155;
    border: 1px solid #e3e8ef;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 24px rgba(12, 27, 49, 0.07);
}

:is(.wp-content, .content-preview) :is(.pd-article-closing, .pd17-closing) {
    margin: 1.9rem 0;
    padding: clamp(1.15rem, 2.8vw, 1.8rem);
    color: #24324a;
    text-align: center;
    border: 1px solid rgba(217, 164, 65, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(217, 164, 65, 0.14), transparent 36%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 24px rgba(12, 27, 49, 0.07);
}

:is(.wp-content, .content-preview) :is(.pd-article-highlight, .pd17-hero, .pd17-highlight, .pd-article-note, .pd17-note, .pd-article-card, .pd17-card, .pd-article-closing, .pd17-closing) > :first-child {
    margin-top: 0;
}

:is(.wp-content, .content-preview) :is(.pd-article-highlight, .pd17-hero, .pd17-highlight, .pd-article-note, .pd17-note, .pd-article-card, .pd17-card, .pd-article-closing, .pd17-closing) > :last-child {
    margin-bottom: 0;
}

:is(.wp-content, .content-preview) :is(.pd-article-highlight, .pd17-hero, .pd17-highlight, .pd-article-note, .pd17-note, .pd-article-card, .pd17-card, .pd-article-closing, .pd17-closing) :is(h2, h3, h4) {
    margin-top: 0;
}

:is(.wp-content, .content-preview) .pd-article-quote,
:is(.wp-content, .content-preview) blockquote.pd-article-quote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.5rem 1.4rem 2rem;
    color: #0f172a;
    border-left: 5px solid #0f172a;
    border-radius: 0 18px 18px 0;
    background: #f8fafc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.04rem, 2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.65;
}

:is(.wp-content, .content-preview) .pd-article-list {
    display: grid;
    gap: 0.72rem;
    margin: 1.35rem 0 1.6rem;
    padding-left: 0;
    list-style: none;
}

:is(.wp-content, .content-preview) .pd-article-list li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0.82rem 1rem 0.82rem 2.55rem;
    color: #334155;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(12, 27, 49, 0.04);
    line-height: 1.65;
}

:is(.wp-content, .content-preview) .pd-article-list li::before {
    position: absolute;
    top: 0.9rem;
    left: 0.95rem;
    display: grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: #d9a441;
    content: "✓";
    font-size: 0.72rem;
    font-weight: 900;
}

:is(.wp-content, .content-preview) .pd-article-divider {
    width: min(180px, 45%);
    height: 4px;
    margin: 2.1rem auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #d9a441, transparent);
}

@media (max-width: 640px) {
    :is(.wp-content, .content-preview) :is(
        .pd-article-highlight,
        .pd17-hero,
        .pd17-highlight,
        .pd-article-note,
        .pd17-note,
        .pd-article-card,
        .pd17-card,
        .pd-article-closing,
        .pd17-closing,
        .pd-article-quote
    ) {
        margin: 1.25rem 0;
        border-radius: 14px;
    }

    :is(.wp-content, .content-preview) .pd-article-list li {
        padding-right: 0.9rem;
    }
}
