.court-header-module {
    width: 100%;
    padding: 0;
    background: transparent;
    display: block;
}

.court-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.court-header-left,
.court-header-center,
.court-header-right {
    width: 100%;
    margin: 0;
}

.court-header-left,
.court-header-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.court-header-logo-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.court-header-logo {
    display: block;
    width: 90px !important;
    height: auto !important;
    max-width: 90px !important;
    max-height: none !important;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.court-header-center {
    min-width: 0;
}

.court-header-instansi {
    margin: 0 0 4px;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7a2b1f;
    text-wrap: balance;
}

.court-header-nama {
    margin: 0 0 6px;
    font-family: "Oswald", Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    color: #a12212;
    text-transform: uppercase;
    text-wrap: balance;
}

.court-header-nama::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #c58734 0%, rgba(197, 135, 52, 0.34) 72%, rgba(197, 135, 52, 0) 100%);
    box-shadow: 0 6px 14px rgba(197, 135, 52, 0.18);
}

.court-header-alamat {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: #6b2a1c;
}

.court-header-kontak {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin-top: 8px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.35;
    color: #6b2a1c;
    font-weight: 600;
}

.court-header-kontak-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(183, 142, 71, 0.16);
    box-shadow: 0 10px 18px rgba(62, 40, 20, 0.06);
}

.court-header-kontak .court-header-separator,
.court-header-separator {
    display: none;
}

.court-header-kontak-text {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.court-header-icon {
    display: inline-block;
    width: auto;
    text-align: center;
    line-height: 1;
    font-size: 13px;
    opacity: 1;
}

.court-header-icon-phone::before {
    content: "\260E";
}

.court-header-icon-email::before {
    content: "\2709";
}

.emblem-wbk-wbbm-module {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 4px;
}

.emblem-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.emblem-image {
    display: block;
    width: 72px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 10px 18px rgba(43, 27, 15, 0.18));
}

.court-header-right.emblem-count-1 .emblem-image {
    width: 62px;
}

.court-header-right.emblem-count-2 .emblem-image {
    width: 62px;
}

@media (min-width: 960px) {
    #toolbar {
        position: relative;
        display: block;
        padding: 16px 0 12px;
    }

    #toolbar::after {
        display: none;
    }

    #toolbar > .toolbar-masthead {
        position: relative;
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 16px 22px;
        background: linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(255, 244, 225, 0.90) 100%);
        border: 1px solid rgba(154, 107, 34, 0.18);
        border-radius: 32px;
        box-shadow:
            0 18px 42px rgba(74, 42, 18, 0.10),
            inset 0 1px 0 rgba(255, 255, 255, 0.92);
        overflow: hidden;
    }

    #toolbar > .toolbar-masthead::before {
        content: "";
        position: absolute;
        top: -44px;
        left: -34px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(246, 205, 112, 0.24) 0%, rgba(246, 205, 112, 0) 72%);
        pointer-events: none;
    }

    #toolbar > .toolbar-masthead::after {
        content: "";
        position: absolute;
        left: 28px;
        right: 28px;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(194, 135, 52, 0.78), transparent);
        opacity: 0.68;
    }

    #toolbar > .toolbar-masthead > .float-left {
        float: none;
        display: block;
        width: 100%;
        min-width: 0;
        position: relative;
        z-index: 1;
    }

    #toolbar .toolbar-masthead-main > .module,
    #toolbar .toolbar-masthead-main > .module.deepest {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .court-header-module {
        min-height: 0;
    }

    .court-header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: stretch;
        column-gap: 18px;
        min-height: 100px;
        text-align: left;
    }

    .court-header-module.integrity-state-none .court-header-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .court-header-left {
        width: auto;
        min-width: 128px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .court-header-logo-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 0;
        height: 100%;
    }

    .court-header-logo {
        width: auto !important;
        height: calc(100% + 24px) !important;
        max-height: none !important;
        max-width: 128px !important;
        margin-top: -12px;
        margin-bottom: -12px;
        filter: drop-shadow(0 10px 18px rgba(128, 93, 31, 0.18));
    }

    .court-header-center {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        padding-right: 0;
    }

    .court-header-right {
        width: auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        align-self: stretch;
        margin-left: auto;
        padding-left: 12px;
        border-left: 0;
        text-align: right;
    }

    .court-header-right.emblem-count-2 {
        padding-left: 12px;
    }

    .court-header-right.emblem-count-1 {
        min-width: 62px;
        padding-left: 12px;
    }

    .court-header-instansi {
        margin-bottom: 5px;
        font-size: 17px;
        line-height: 1.2;
        letter-spacing: 1.55px;
    }

    .court-header-module.emblem-count-2 .court-header-instansi {
        font-size: 16px;
        letter-spacing: 1.4px;
    }

    .court-header-module.name-length-long .court-header-instansi {
        font-size: 15px;
        letter-spacing: 1.3px;
    }

    .court-header-module.name-length-xlong .court-header-instansi {
        font-size: 14px;
        letter-spacing: 1.18px;
    }

    .court-header-nama {
        margin-bottom: 8px;
        font-size: clamp(33px, calc(1.5vw + 12px), 44px);
        line-height: 0.98;
        letter-spacing: 0.25px;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
    }

    .court-header-module.emblem-count-2 .court-header-nama {
        font-size: clamp(29px, calc(1vw + 12px), 38px);
        line-height: 1.02;
        letter-spacing: 0.18px;
    }

    .court-header-module.name-length-long .court-header-nama {
        font-size: clamp(26px, calc(0.85vw + 11px), 35px);
        line-height: 1.04;
        letter-spacing: 0.12px;
    }

    .court-header-module.name-length-xlong .court-header-nama {
        font-size: clamp(23px, calc(0.72vw + 10px), 31px);
        line-height: 1.06;
        letter-spacing: 0.08px;
    }

    .court-header-nama::after {
        width: 150px;
        margin: 8px 0 0;
    }

    .court-header-module.emblem-count-2 .court-header-nama::after {
        width: 132px;
        margin-top: 8px;
    }

    .court-header-module.name-length-long .court-header-nama::after {
        width: 124px;
    }

    .court-header-module.name-length-xlong .court-header-nama::after {
        width: 110px;
    }

    .court-header-alamat {
        max-width: 780px;
        font-size: 13px;
        line-height: 1.32;
    }

    .court-header-module.integrity-state-none .court-header-alamat {
        max-width: 900px;
    }

    .court-header-module.emblem-count-2 .court-header-alamat {
        max-width: 740px;
    }

    .court-header-module.name-length-long .court-header-alamat {
        max-width: 700px;
    }

    .court-header-module.name-length-xlong .court-header-alamat {
        max-width: 660px;
        font-size: 12px;
    }

    .court-header-kontak {
        justify-content: flex-start;
        gap: 8px 9px;
        margin-top: 7px;
        font-size: 12px;
    }

    .court-header-module.emblem-count-2 .court-header-kontak {
        margin-top: 6px;
    }

    .court-header-module.name-length-xlong .court-header-kontak {
        gap: 8px 9px;
        margin-top: 6px;
    }

    .court-header-kontak-item {
        gap: 7px;
        padding: 7px 13px;
    }

    .court-header-module.name-length-xlong .court-header-kontak-item {
        padding: 7px 12px;
    }

    .emblem-wbk-wbbm-module {
        justify-content: flex-end;
        width: auto;
        margin-top: 0;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .court-header-right.emblem-count-2 .emblem-wbk-wbbm-module {
        gap: 8px;
    }

    .court-header-right.emblem-count-1 .emblem-wbk-wbbm-module {
        width: 62px;
        min-width: 62px;
    }

    .emblem-image {
        width: 70px;
    }

    .court-header-right.emblem-count-1 .emblem-image {
        width: 62px;
    }

    .court-header-right.emblem-count-2 .emblem-image {
        width: 62px;
    }
}
