.explorer-brand {
    color: inherit;
    text-decoration: none;
}

.explorer-main {
    padding-top: 30px;
}

.explorer-hero {
    min-height: 210px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: 38px 42px;

    border: 1px solid var(--line);
    border-radius: 24px;

    background:
        linear-gradient(
            120deg,
            rgba(153,25,0,.23),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.01)
        );
}

.explorer-hero h1 {
    margin: 6px 0 7px;

    font-size: clamp(38px, 4vw, 62px);
    line-height: 1;
    letter-spacing: -.055em;
}

.explorer-hero p {
    max-width: 650px;
    margin: 0;

    color: var(--muted);
    font-size: 13px;
}

.explorer-summary {
    display: flex;
    gap: 14px;
}

.explorer-summary > div {
    min-width: 190px;
    padding: 20px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: rgba(0,0,0,.15);
}

.explorer-summary span,
.explorer-summary small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.explorer-summary strong {
    display: block;
    margin: 5px 0 2px;

    font-size: 24px;
    letter-spacing: -.04em;
}

.filter-panel,
.result-panel {
    margin-top: 16px;
    padding: 26px;

    border: 1px solid var(--line);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.01)
        ),
        var(--surface);
}

.filter-form {
    display: grid;

    grid-template-columns:
        minmax(250px, 1.6fr)
        repeat(4, minmax(145px, 1fr));

    gap: 14px;
}

.search-field,
.field {
    min-width: 0;
}

.field-wide {
    grid-column: span 2;
}

.filter-form label {
    display: block;
    margin: 0 0 7px;

    color: #8e97a3;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.filter-form input,
.filter-form select {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    outline: none;

    background: #171b20;
    color: #e8ebef;

    font: inherit;
    font-size: 11px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.filter-form input:focus,
.filter-form select:focus {
    border-color: rgba(255,153,0,.38);

    box-shadow:
        0 0 0 3px rgba(255,153,0,.06);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 9px;
}

.filter-submit,
.filter-reset {
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border-radius: 11px;

    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.filter-submit {
    border: 1px solid rgba(255,153,0,.25);

    background:
        linear-gradient(
            135deg,
            #991900,
            #751500
        );

    color: #fff;
    cursor: pointer;
}

.filter-reset {
    border: 1px solid var(--line);
    color: #9da5af;
}

.result-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.result-head h2 {
    margin: 4px 0 0;

    font-size: 21px;
    letter-spacing: -.03em;
}

.result-range {
    color: var(--muted);
    font-size: 10px;
}

.rup-list {
    border-top: 1px solid var(--line);
}

.rup-row {
    display: grid;
    grid-template-columns: 46px 1fr 175px;
    gap: 16px;

    padding: 20px 4px;

    border-bottom: 1px solid var(--line);

    transition:
        background .18s ease,
        transform .18s ease;
}

.rup-row:hover {
    background: rgba(255,255,255,.016);
}

.type-badge {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: 10px;
    font-weight: 900;
}

.type-badge.penyedia {
    border: 1px solid rgba(255,153,0,.22);
    background: rgba(153,25,0,.18);
    color: #ffc04c;
}

.type-badge.swakelola {
    border: 1px solid rgba(230,181,74,.20);
    background: rgba(230,181,74,.08);
    color: #e6b54a;
}

.rup-info {
    min-width: 0;
}

.rup-code {
    color: #747d88;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rup-code span {
    margin: 0 5px;
    color: #414750;
}

.rup-info h3 {
    max-width: 950px;

    margin: 5px 0;

    color: #eef1f4;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.rup-satker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #969faa;
    font-size: 10px;
}

.rup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 10px;
}

.rup-tags span {
    padding: 4px 7px;

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 999px;

    background: rgba(255,255,255,.018);
    color: #89929d;

    font-size: 8px;
}

.rup-tags span.policy {
    border-color: rgba(255,153,0,.12);
    color: #d8ad59;
}

.rup-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rup-value > span {
    color: var(--muted);
    font-size: 9px;
}

.rup-value > strong {
    margin-top: 2px;

    font-size: 17px;
    letter-spacing: -.025em;
}

.rup-detail-link {
    margin-top: auto;

    color: #dcad50;

    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.empty-state {
    padding: 70px 20px;
    text-align: center;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    color: var(--muted);
    font-size: 9px;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.pagination-links a {
    min-width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border: 1px solid var(--line);
    border-radius: 8px;

    color: #a4acb5;
    text-decoration: none;

    font-weight: 700;
}

.pagination-links a:hover,
.pagination-links a.active {
    border-color: rgba(255,153,0,.25);

    background: rgba(153,25,0,.20);
    color: #fff;
}

@media (max-width: 1250px) {
    .filter-form {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .search-field,
    .field-wide {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .explorer-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .explorer-summary {
        width: 100%;
    }

    .explorer-summary > div {
        flex: 1;
    }

    .filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .search-field,
    .field-wide {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .explorer-main {
        padding-top: 18px;
    }

    .explorer-hero {
        padding: 27px 22px;
    }

    .explorer-summary {
        flex-direction: column;
    }

    .filter-panel,
    .result-panel {
        padding: 18px;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .search-field,
    .field-wide {
        grid-column: auto;
    }

    .rup-row {
        grid-template-columns: 38px 1fr;
    }

    .rup-value {
        grid-column: 2;
        align-items: flex-start;
    }

    .rup-detail-link {
        margin-top: 10px;
    }

    .result-head,
    .pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-links {
        max-width: 100%;
        flex-wrap: wrap;
    }
}


/* =========================================================
   RUP PACKAGE TITLE LINK
   ========================================================= */

.rup-package-title-link {
    color: inherit;
    text-decoration: none;

    transition:
        color .18s ease,
        text-shadow .18s ease;
}

.rup-package-title-link:hover,
.rup-package-title-link:focus-visible {
    color: #ffb329;
    text-decoration: none;
}

.rup-package-title-link:focus-visible {
    outline: 1px solid rgba(255, 179, 41, .55);
    outline-offset: 4px;
    border-radius: 3px;
}

@media (hover: hover) {
    .rup-package-title-link:hover {
        text-shadow: 0 0 18px rgba(255, 153, 0, .12);
    }
}
