/*
 * Tampilan detail berita UNKA.
 * Scope hanya body.single-post.unka-news-detail-active.
 */

body.single-post.unka-news-detail-active {
    --unka-news-navy: #061425;
    --unka-news-navy-soft: #17304d;
    --unka-news-yellow: #ffb400;
    --unka-news-text: #142239;
    --unka-news-muted: #64748b;
    --unka-news-line: #dfe5ec;
    --unka-news-surface: #ffffff;
    --unka-news-page: #f7f9fc;
}

body.single-post.unka-news-detail-active
.site-main {
    background: var(--unka-news-page);
}

body.single-post.unka-news-detail-active
.unka-news-detail {
    padding: clamp(38px, 5vw, 72px) 24px;
    color: var(--unka-news-text);
    background: var(--unka-news-page);
}

body.single-post.unka-news-detail-active
.unka-news-detail__article {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 4.5vw, 56px);
    background: var(--unka-news-surface);
    box-shadow: 0 18px 60px rgba(15, 32, 55, 0.06);
}

body.single-post.unka-news-detail-active
.unka-news-detail__header {
    margin-bottom: 34px;
}

body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    min-width: 0;
    margin: 0 0 30px;
    color: var(--unka-news-muted);
    font-size: 12px;
    line-height: 1.5;
}

body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb-home {
    display: inline-flex;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    color: var(--unka-news-muted);
}

body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb-home svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    stroke: none;
}

body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb a {
    color: #faa604;
    text-decoration: none;
}

body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb a:hover,
body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb a:focus-visible {
    color: var(--unka-news-text);
}

body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb-separator {
    color: var(--unka-news-muted);
}

body.single-post.unka-news-detail-active
.unka-news-detail__breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    color: var(--unka-news-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.single-post.unka-news-detail-active
.unka-news-detail__label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 13px;
    color: #071322;
    background: var(--unka-news-yellow);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
}

body.single-post.unka-news-detail-active
.unka-news-detail__title {
    max-width: 980px;
    margin: 0 0 28px;
    color: var(--unka-news-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: 0;
}

body.single-post.unka-news-detail-active
.unka-news-detail__utility {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

body.single-post.unka-news-detail-active
.unka-news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
}

body.single-post.unka-news-detail-active
.unka-news-detail__meta-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--unka-news-navy-soft);
    font-size: 14px;
    font-weight: 650;
}

body.single-post.unka-news-detail-active
.unka-news-detail__meta-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 0 0 auto;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-label {
    color: var(--unka-news-muted);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-buttons {
    display: flex;
    gap: 9px;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-2px);
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button.is-facebook {
    background: #4267b2;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button.is-facebook svg {
    fill: currentColor;
    stroke: none;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button.is-x {
    background: #050505;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button.is-linkedin {
    background: #0a78b5;
}

body.single-post.unka-news-detail-active
.unka-news-detail__share-button.is-whatsapp {
    background: #43c765;
}

body.single-post.unka-news-detail-active
.unka-news-detail__featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 36px;
    overflow: hidden;
    border-radius: 0;
    background: #e9edf3;
}

body.single-post.unka-news-detail-active
.unka-news-detail__featured-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

body.single-post.unka-news-detail-active
.unka-news-detail__content {
    color: #263a54;
    font-size: 17px;
    line-height: 1.78;
}

body.single-post.unka-news-detail-active
.unka-news-detail__content > * {
    margin-top: 0;
    margin-bottom: 1.45em;
}

body.single-post.unka-news-detail-active
.unka-news-detail__content h2,
body.single-post.unka-news-detail-active
.unka-news-detail__content h3,
body.single-post.unka-news-detail-active
.unka-news-detail__content h4 {
    color: var(--unka-news-text);
    line-height: 1.3;
}

body.single-post.unka-news-detail-active
.unka-news-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

body.single-post.unka-news-detail-active
.unka-news-detail__content
.alignleft {
    float: left;
    width: min(42%, 460px);
    margin: 6px 36px 20px 0;
}

body.single-post.unka-news-detail-active
.unka-news-detail__content
.alignright {
    float: right;
    width: min(42%, 460px);
    margin: 6px 0 20px 36px;
}

body.single-post.unka-news-detail-active
.unka-news-detail__content::after {
    display: table;
    clear: both;
    content: "";
}

body.single-post.unka-news-detail-active
.unka-news-detail__manager {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    margin-top: 50px;
    padding: 24px 28px;
    border: 1px solid var(--unka-news-line);
    border-radius: 10px;
    background: #fff;
}

body.single-post.unka-news-detail-active
.unka-news-detail__manager-media {
    display: flex;
}

body.single-post.unka-news-detail-active
.unka-news-detail__manager-avatar {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 50%;
}

body.single-post.unka-news-detail-active
.unka-news-detail__manager-name {
    margin: 0;
    color: var(--unka-news-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

body.single-post.unka-news-detail-active
.unka-news-detail__manager-role {
    display: block;
    margin-top: 4px;
    color: var(--unka-news-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.single-post.unka-news-detail-active
.unka-news-detail__manager-description {
    margin: 7px 0 0;
    color: var(--unka-news-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.single-post.unka-news-detail-active
.unka-news-detail__navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
    border: 1px solid var(--unka-news-line);
    border-radius: 10px;
    overflow: hidden;
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-item {
    display: flex;
    gap: 15px;
    min-width: 0;
    min-height: 108px;
    align-items: center;
    padding: 20px 22px;
    color: var(--unka-news-text);
    text-decoration: none;
    background: #fff;
    transition: background 180ms ease;
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-item:hover {
    color: var(--unka-news-text);
    background: #f8fafc;
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-item.is-next {
    justify-content: flex-end;
    text-align: right;
    border-left: 1px solid var(--unka-news-line);
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--unka-news-navy);
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-label {
    color: var(--unka-news-muted);
    font-size: 12px;
    font-weight: 800;
}

body.single-post.unka-news-detail-active
.unka-news-detail__nav-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
    body.single-post.unka-news-detail-active
    .unka-news-detail__utility {
        align-items: flex-start;
        flex-direction: column;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__share {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 680px) {
    body.single-post.unka-news-detail-active
    .unka-news-detail__breadcrumb-current {
        width: 100%;
        white-space: normal;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail {
        padding: 24px 14px;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__article {
        padding: 24px 18px;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__title {
        margin-bottom: 22px;
        font-size: clamp(30px, 10vw, 42px);
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__meta {
        display: grid;
        gap: 10px;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__share {
        align-items: flex-start;
        flex-direction: column;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__featured {
        margin-bottom: 28px;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__content {
        font-size: 16px;
        line-height: 1.72;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__content
    .alignleft,
    body.single-post.unka-news-detail-active
    .unka-news-detail__content
    .alignright {
        float: none;
        width: 100%;
        margin: 0 0 22px;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__manager {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__manager-media {
        justify-content: center;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__navigation {
        grid-template-columns: 1fr;
    }

    body.single-post.unka-news-detail-active
    .unka-news-detail__nav-item.is-next {
        border-top: 1px solid var(--unka-news-line);
        border-left: 0;
    }
}
