:root {
    color-scheme: light;
}

.article-page {
    margin: 0;
    background: #f7f7f5;
    color: #20221f;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.article-module {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 72px) 0;
}

.article-module__status {
    padding: 36px 0;
    color: #60645e;
}

.article__category {
    display: inline-block;
    margin-bottom: 14px;
    color: #39734f;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article__meta {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #72766f;
    font-size: .92rem;
}

.article__title {
    max-width: 780px;
    margin: 14px 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 6vw, 4.1rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.article__cover-wrap {
    margin: 0 0 36px;
}

.article__cover-credit {
    margin-top: 9px;
    color: #72766f;
    font: 0.82rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: right;
}

.article__cover {
    display: block;
    width: 100%;
    max-height: 540px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

.article__body {
    color: #343832;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

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

.article__body img,
.article__body video {
    max-width: 100%;
    height: auto;
}

.article__body blockquote {
    margin: 1.6em 0;
    padding-left: 1.1em;
    border-left: 3px solid #83a48b;
    color: #536257;
}

.article__body a {
    color: #27633f;
}

.article__pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid #dedfd9;
}

.article__pagination a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    color: #60645e;
    text-decoration: none;
}

.article__pagination a:last-child {
    text-align: right;
}

.article__pagination strong {
    color: #242722;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.article__pagination a:hover strong,
.article__related-card:hover strong {
    color: #27633f;
}

.article__related {
    margin-top: 54px;
}

.article__related h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 500;
}

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

.article__related-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.article__related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.article__related-card span {
    color: #39734f;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article__related-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.3;
}

[hidden] {
    display: none !important;
}

@media (max-width: 620px) {
    .article-module {
        width: min(100% - 32px, 850px);
    }

    .article__related-list {
        grid-template-columns: 1fr;
    }

    .article__related-card {
        display: grid;
        grid-template-columns: 110px 1fr;
        column-gap: 12px;
    }

    .article__related-card img {
        grid-row: span 2;
        height: 80px;
    }
}


/* =========================================================
   ARTICLE CODE BLOCK / PRE + COPY BUTTON
   ========================================================= */

.article__body .article__pre-wrap {
    position: relative;
    margin: 1.5em 0;
    min-width: 0;
}

.article__body .article__pre-wrap pre {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 48px 20px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #d9dddf;
    border-radius: 8px;
    background: #f1f3f5;
    color: #24292f;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .9rem;
    line-height: 1.65;
    white-space: pre;
    overflow-wrap: normal;
    tab-size: 4;
}

.article__body .article__pre-wrap pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    white-space: inherit;
}

.article__body .article__pre-copy {
    position: absolute;
    top: 9px;
    right: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid #c8ced3;
    border-radius: 5px;
    background: #fff;
    color: #3d454d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.article__body .article__pre-copy:hover {
    border-color: #087f45;
    background: #087f45;
    color: #fff;
}

.article__body .article__pre-copy.is-copied {
    border-color: #087f45;
    background: #087f45;
    color: #fff;
}

.article__body .article__pre-copy:focus-visible {
    outline: 2px solid #087f45;
    outline-offset: 2px;
}

@media (max-width: 620px) {
    .article__body .article__pre-wrap pre {
        padding: 44px 14px 16px;
        font-size: .82rem;
        border-radius: 6px;
    }

    .article__body .article__pre-copy {
        top: 7px;
        right: 7px;
        min-height: 28px;
        padding: 4px 10px;
    }
}

/* =========================================================
   ARTICLE TABLE + COPY TABLE BUTTON
   ========================================================= */

.article__body .article__table-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1.6em 0;
    overflow-x: auto;
    border: 1px solid #dce5df;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(20, 50, 30, 0.05);
    display: flex;
    flex-direction: column;
}

/* Tabel */

.article__body .article__table-wrap table {
    width: 100%;
    min-width: 480px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Header */

.article__body .article__table-wrap thead th,
.article__body .article__table-wrap tr:first-child th {
    padding: 13px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid #087f45;
    background: #087f45;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    vertical-align: middle;
}

/* Cell */

.article__body .article__table-wrap td,
.article__body .article__table-wrap tbody th,
.article__body .article__table-wrap tfoot td {
    padding: 12px 16px;
    border-right: 1px solid #e7ece8;
    border-bottom: 1px solid #e7ece8;
    color: #35443a;
    text-align: left;
    vertical-align: top;
}

/* Alternating row */

.article__body .article__table-wrap tbody tr:nth-child(even) {
    background: #f2f7f3;
}

.article__body .article__table-wrap tbody tr:nth-child(odd) {
    background: #ffffff;
}

/* Hover row */

.article__body .article__table-wrap tbody tr:hover {
    background: #e8f2eb;
}

/* Hilangkan border terakhir */

.article__body .article__table-wrap tr:last-child td,
.article__body .article__table-wrap tr:last-child th {
    border-bottom: 0;
}

.article__body .article__table-wrap th:last-child,
.article__body .article__table-wrap td:last-child {
    border-right: 0;
}

/* Caption */

.article__body .article__table-wrap caption {
    padding: 12px 16px;
    color: #64736a;
    font-size: 0.85rem;
    font-style: italic;
    text-align: left;
}

/* Copy Table Button - Top Right */

.article__body .article__table-copy {
    position: relative;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 92px;
    min-height: 30px;

    margin: 8px 9px 8px 0;
    padding: 5px 12px;

    border: 1px solid #c8d8cd;
    border-radius: 5px;

    background: #ffffff;
    color: #315b43;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;

    cursor: pointer;
    transition: background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.article__body .article__table-copy:hover {
    border-color: #087f45;
    background: #087f45;
    color: #ffffff;
}

.article__body .article__table-copy.is-copied {
    border-color: #087f45;
    background: #087f45;
    color: #ffffff;
}

.article__body .article__table-copy:focus-visible {
    outline: 2px solid #087f45;
    outline-offset: 2px;
}

/* Mobile */

@media (max-width: 620px) {

    .article__body .article__table-wrap {
        border-radius: 6px;
    }

    .article__body .article__table-wrap table {
        min-width: 460px;
        font-size: 0.82rem;
    }

    .article__body .article__table-wrap th,
    .article__body .article__table-wrap td {
        padding: 10px 12px;
    }

    .article__body .article__table-copy {
        min-height: 28px;
        font-size: 0.7rem;
    }

}