/* PPID Regulasi Dropdown - Frontend */
.ppid-wrap,
.ppid-wrap * {
    box-sizing: border-box;
}

.ppid-wrap {
    --ppid-dark: #343b42;
    --ppid-dark-hover: #252b30;
    --ppid-accent: #e4a12c;
    --ppid-blue: #102cff;
    --ppid-text: #15191d;
    display: grid;
    grid-template-columns: minmax(260px, 382px) minmax(0, 1fr);
    gap: 44px;
    width: 100%;
    max-width: 1570px;
    margin: 0 auto;
    padding: 28px 24px 54px;
    color: var(--ppid-text);
    background: #fff;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.ppid-sidebar {
    align-self: start;
}

.ppid-accordion-item {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
}

.ppid-accordion-button,
.ppid-sidebar-link {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 15px;
    border: 0;
    border-radius: 4px;
    background: var(--ppid-dark);
    color: #fff !important;
    cursor: pointer;
    text-align: left;
    text-decoration: none !important;
    font: inherit;
    font-size: 20px;
    line-height: 1.25;
    transition: background-color .2s ease, border-radius .2s ease;
}

.ppid-sidebar-link {
    margin-bottom: 12px;
}

.ppid-accordion-button:hover,
.ppid-accordion-button:focus-visible,
.ppid-sidebar-link:hover,
.ppid-sidebar-link:focus-visible {
    background: var(--ppid-dark-hover);
}

.ppid-accordion-button:focus-visible,
.ppid-sidebar-link:focus-visible,
.ppid-category-button:focus-visible,
.ppid-share-btn:focus-visible {
    outline: 3px solid rgba(228, 161, 44, .55);
    outline-offset: 2px;
}

.ppid-accordion-item.is-open .ppid-accordion-button {
    border-radius: 4px 4px 0 0;
}

.ppid-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s ease;
}

.ppid-accordion-item.is-open .ppid-accordion-button .ppid-chevron {
    transform: rotate(45deg) translateY(-2px);
}

.ppid-accordion-panel {
    border: 1px solid #d9dde1;
    border-top: 0;
    background: #f4f5f6;
}

.ppid-accordion-panel[hidden] {
    display: none;
}

.ppid-accordion-panel ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.ppid-accordion-panel li {
    margin: 0;
    padding: 0;
}

.ppid-category-button {
    display: block;
    width: 100%;
    padding: 10px 18px 10px 38px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #2c3339;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
}

.ppid-category-button:hover,
.ppid-category-button:focus-visible {
    color: #111;
    background: #fff;
    border-left-color: var(--ppid-accent);
}

.ppid-category-button.is-active {
    color: var(--ppid-blue);
    background: #fff;
    border-left-color: var(--ppid-accent);
    font-weight: 700;
}

.ppid-empty-sidebar {
    margin: 0;
    padding: 14px 18px;
    color: #555;
    font-size: 14px;
}

.ppid-content {
    min-width: 0;
}

.ppid-header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ppid-accent);
}

.ppid-header h1 {
    margin: 0 0 24px;
    color: #15191d;
    font-size: clamp(34px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.5px;
}

.ppid-meta-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ppid-meta {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.ppid-share {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.ppid-share-btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #fff !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    transition: transform .18s ease, filter .18s ease;
}

.ppid-share-btn:hover,
.ppid-share-btn:focus-visible {
    transform: translateY(-2px);
    filter: brightness(.92);
}

.ppid-share-btn.facebook { background: #4667a0; }
.ppid-share-btn.twitter { background: #16b4de; }
.ppid-share-btn.whatsapp { background: #09b73a; }

.ppid-article {
    padding-top: 20px;
}

.ppid-regulation-group[hidden] {
    display: none;
}

.ppid-regulation-group {
    scroll-margin-top: 100px;
}

.ppid-regulation-group h2 {
    margin: 0 0 16px;
    color: #141414;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 2.1vw, 33px);
    font-weight: 700;
    line-height: 1.25;
}

.ppid-regulation-group ol {
    margin: 0;
    padding-left: 74px;
}

.ppid-regulation-group li {
    margin: 0 0 6px;
    padding-left: 2px;
    font-size: clamp(18px, 1.55vw, 25px);
    line-height: 1.12;
}

.ppid-regulation-group li::marker {
    color: #222;
}

.ppid-regulation-group a {
    color: var(--ppid-blue);
    text-decoration: none;
}

.ppid-regulation-group a:hover,
.ppid-regulation-group a:focus-visible {
    text-decoration: underline;
}

.ppid-empty-state {
    padding: 18px 20px;
    border: 1px dashed #c8cdd2;
    border-radius: 5px;
    background: #f8f9fa;
    color: #555;
    font-size: 16px;
}

@media (max-width: 980px) {
    .ppid-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ppid-sidebar {
        width: 100%;
    }

    .ppid-header h1 {
        margin-bottom: 18px;
    }
}

@media (max-width: 620px) {
    .ppid-wrap {
        padding: 18px 14px 36px;
    }

    .ppid-meta-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .ppid-share-btn {
        width: 42px;
        height: 42px;
    }

    .ppid-regulation-group ol {
        padding-left: 30px;
    }

    .ppid-regulation-group li {
        margin-bottom: 10px;
        line-height: 1.28;
    }
}
