/* =========================================================
   hade Accordion — Otomatis dari Heading H2
   ========================================================= */

.hade {
    margin: 1em 0;
    --hade-bg: #f7f7f7;
    --hade-bg-open: #ffffff;
    --hade-border: #e0e0e0;
    --hade-text: #1a1a1a;
    --hade-accent: #2271b1;
    --hade-radius: 8px;
    --hade-pad: 14px 18px;

    border: 1px solid var(--hade-border);
    border-radius: var(--hade-radius);
    background: var(--hade-bg);
    overflow: hidden;
    transition: background .2s ease, box-shadow .2s ease;
}

.hade.is-open {
    background: var(--hade-bg-open);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hade__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: var(--hade-pad);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hade-text);
    text-align: left;
    line-height: 1.4;
    transition: color .15s ease;
}
.hade__trigger:hover {
    color: var(--hade-accent);
}
.hade__trigger:focus-visible {
    outline: 2px solid var(--hade-accent);
    outline-offset: 2px;
}

.hade__title {
    flex: 1;
}

.hade__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    position: relative;
}
.hade__icon::before,
.hade__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.hade__icon::before {
    top: 50%; left: 0;
    width: 100%; height: 2px;
    transform: translateY(-50%);
}
.hade__icon::after {
    left: 50%; top: 0;
    width: 2px; height: 100%;
    transform: translateX(-50%);
}
.hade.is-open .hade__icon::after {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
}

.hade__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.hade__panel > .hade__content {
    overflow: hidden;
}
.hade.is-open .hade__panel {
    grid-template-rows: 1fr;
}

.hade__content {
    padding: 0 18px 16px;
    color: var(--hade-text);
    line-height: 1.7;
}
.hade__content > *:first-child { margin-top: 0; }
.hade__content > *:last-child  { margin-bottom: 0; }

@media print {
    .hade__panel {
        grid-template-rows: 1fr !important;
        display: block !important;
    }
    .hade__panel > .hade__content {
        overflow: visible !important;
    }
    .hade__icon {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hade__panel,
    .hade__icon,
    .hade__icon::before,
    .hade__icon::after {
        transition: none !important;
    }
}