:root {
    --red: #d71920;
    --red-dark: #9f1117;
    --ink: #33353a;
    --muted: #6e7078;
    --line: #e8e8ed
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    margin: 0;
    background: #f7f7f8;
    color: var(--ink);
    font: 14px/1.6 "Plus Jakarta Sans", sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

button,
a,
summary,
input,
select {
    -webkit-tap-highlight-color: transparent
}

:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px
}

[hidden] {
    display: none !important
}

.wrap {
    width: min(1180px, calc(100% - 48px));
    margin: auto
}

.site-header {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 0px
}

.city-logo {
    width: 60px;
    height: 60px;
    object-fit: contain
}

.app-logo {
    width: 200px;
    height: 80px;
    object-fit: contain
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 700
}

.button {
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 23px;
    background: var(--red);
    color: white;
    font-weight: 700;
    cursor: pointer
}

.button:hover {
    background: var(--red-dark)
}

.hero {
    position: relative;
    color: white;
    background: linear-gradient(110deg, rgba(159, 17, 23, .98), rgba(215, 25, 32, .86)), url('../img/lawang-sewu-login.png') center/cover
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 90px;
    padding-top: 65px;
    padding-bottom: 85px
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--red);
    margin: 0 0 12px
}

.hero .eyebrow {
    color: #ffdadb
}

h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.25;
    letter-spacing: -1.5px;
    margin: 0 0 20px
}

.hero-description {
    max-width: 490px;
    color: #ffe5e5;
    margin: 0 0 28px;
    font-size: 15px
}

.button-light {
    color: var(--red-dark);
    background: white
}

.button-light:hover {
    background: #ffe5e5
}

.score-card {
    background: white;
    color: var(--ink);
    border-radius: 20px;
    padding: 30px 34px;
    box-shadow: 0 20px 50px #6d00002b
}

.score-card>p:first-child {
    margin: 0;
    font-weight: 700
}

.score {
    font-size: 64px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -3px;
    line-height: 1.5
}

.score span {
    font-size: 16px;
    color: #92949c;
    font-weight: 500;
    letter-spacing: 0;
    margin-left: 12px
}

.badge {
    display: inline-block;
    border-radius: 6px;
    background: #fff0f0;
    color: var(--red-dark);
    padding: 5px 13px;
    font-weight: 700
}

.score-period {
    font-size: 12px;
    color: var(--muted)
}

.score-footer {
    border-top: 1px solid var(--line);
    padding-top: 15px;
    color: var(--muted)
}

.score-footer strong {
    color: var(--ink);
    font-size: 18px;
    margin-right: 5px
}

.filter-bar {
    position: relative;
    margin-top: -30px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 6px 24px #25253305
}

.filter-bar p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px
}

.year-control {
    display: flex;
    align-items: center;
    gap: 12px
}

input,
select {
    border: 1px solid #d6d8dc;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: 11px 14px
}

.year-control label {
    font-weight: 600
}

.section {
    margin-top: 54px
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px
}

h2 {
    font-size: 25px;
    letter-spacing: -.7px;
    line-height: 1.35;
    margin: 0 0 8px
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    margin: 0;
    font-size: 13px
}

.search label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px
}

.search input {
    width: 270px
}

.results {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

.opd-row+.opd-row {
    border-top: 1px solid var(--line)
}

summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 21px 25px;
    cursor: pointer;
    list-style: none
}

summary::-webkit-details-marker {
    display: none
}

summary:hover {
    background: #fffafa
}

.opd-name {
    font-weight: 700;
    flex: 1
}

.opd-name small,
.row-score small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px
}

.row-score {
    text-align: right;
    min-width: 100px
}

.row-score strong {
    font-size: 21px;
    color: var(--red)
}

.expand {
    font-size: 24px;
    color: var(--red)
}

details[open] .expand {
    transform: rotate(45deg)
}

.unit-list {
    padding: 0 25px 20px
}

.table-scroll {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left
}

th {
    background: #f7f7f8;
    color: var(--muted);
    font-weight: 600
}

th,
td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line)
}

th:not(:first-child),
td:not(:first-child) {
    white-space: nowrap
}

.data-note {
    color: var(--muted);
    font-size: 11px;
    margin-top: 14px
}

.empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--muted)
}

.empty-card {
    background: white;
    border: 1px dashed #d6d8dc;
    border-radius: 14px
}

.count {
    white-space: nowrap;
    border-radius: 30px;
    background: #fce8e9;
    color: var(--red-dark);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.report-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px
}

.pdf-icon {
    background: #fff0f0;
    border-radius: 10px;
    padding: 14px 10px;
    color: var(--red);
    font-weight: 800;
    font-size: 12px
}

.report-year {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    margin: 0 0 8px
}

h3 {
    font-size: 15px;
    margin: 0 0 18px;
    line-height: 1.5
}

.report-link {
    color: var(--red);
    font-weight: 700;
    font-size: 12px
}

.report-link:hover {
    text-decoration: underline
}

.content {
    padding-bottom: 64px
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    padding-bottom: 24px;
    color: var(--muted);
    font-size: 12px
}

.site-footer strong {
    color: var(--red)
}

.site-footer span {
    color: var(--muted);
    font-weight: 400
}

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap
}

.skip-link:focus {
    position: fixed;
    z-index: 10;
    background: white;
    padding: 12px
}

@media(max-width:800px) {
    .hero-grid {
        gap: 30px;
        grid-template-columns: 1.2fr 1fr
    }

    .score-card {
        padding: 24px
    }

    .score {
        font-size: 48px
    }

    .filter-bar {
        align-items: flex-start;
        flex-direction: column
    }

    .section-heading {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .report-grid {
        grid-template-columns: 1fr
    }

    nav {
        gap: 18px
    }
}

@media(max-width:560px) {
    .wrap {
        width: calc(100% - 32px)
    }

    .site-header {
        min-height: 82px;
        gap: 12px
    }

    .brand {
        gap: 3px
    }

    .city-logo {
        width: 42px;
        height: 42px
    }

    .app-logo {
        width: 150px;
        height: 50px
    }

    nav>a:not(.button) {
        display: none
    }

    .button {
        padding: 11px 17px;
        gap: 12px
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 36px;
        padding-bottom: 60px;
        gap: 28px
    }

    .score-card {
        padding: 23px
    }

    .score {
        font-size: 56px
    }

    .filter-bar {
        padding: 20px
    }

    .year-control {
        width: 100%;
        gap: 8px
    }

    .year-control select {
        flex: 1;
        min-width: 0
    }

    .section {
        margin-top: 38px
    }

    .search,
    .search input {
        width: 100%
    }

    h2 {
        font-size: 22px
    }

    summary {
        padding: 18px 16px;
        gap: 12px
    }

    .opd-name {
        font-size: 12px
    }

    .row-score {
        min-width: 72px
    }

    .row-score strong {
        font-size: 18px
    }

    .unit-list {
        padding: 0 12px 14px
    }

    .report-card {
        padding: 20px
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px
    }

    .site-footer p {
        margin: 0
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

.primary-metric {
    margin-top: 10px
}

.primary-metric h3 {
    margin: 0
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line)
}

.metric-grid h3 {
    margin: 0
}

.metric-grid .score {
    font-size: 24px;
    letter-spacing: -1px;
    color: var(--ink)
}

.metric-grid .score span {
    display: inline-block;
    font-size: 12px;
    margin-left: 5px;
    letter-spacing: 0
}

.row-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px
}

.metric-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted)
}

.unit-score {
    font-size: 18px;
    color: var(--red)
}

.row-metrics .row-score {
    min-width: 60px
}

.survey-description {
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--muted)
}

@media(max-width:800px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }
}

@media(max-width:560px) {
    summary {
        flex-wrap: wrap
    }

    .opd-name {
        flex-basis: 80%
    }

    .row-metrics {
        order: 3;
        width: 100%;
        align-items: flex-start
    }

    .row-metrics .row-score {
        text-align: left
    }
}
.survey-rating { display: grid; gap: 8px; margin-top: 16px; }
.rating-stars { position: relative; display: inline-block; width: max-content; color: #dfe3e8; font-size: 26px; line-height: 1; white-space: nowrap; }
.rating-stars > span { position: absolute; left: 0; top: 0; overflow: hidden; color: #b57900; white-space: nowrap; }
