.result-hero {
    padding: 52px 20px 26px;
    text-align: center;
}

.result-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.result-eyebrow,
.section-kicker {
    display: block;
    margin-bottom: 8px;
    color: #3157d5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.result-hero h1 {
    margin: 0;
    color: #0e1b36;
    font-size: clamp(28px, 4vw, 42px);
}

.result-hero p {
    margin: 10px 0 0;
    color: #68758f;
}

.result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
    padding-bottom: 70px;
}

.result-main {
    display: grid;
    gap: 18px;
}

.result-card,
.result-score-panel {
    background: #fff;
    border: 1px solid #e1e6ef;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(25,42,70,.045);
}

.result-card {
    padding: 22px;
}

.result-card h2 {
    margin: 0;
    color: #101b32;
    font-size: 20px;
}

.result-card-heading,
.element-result-heading,
.answer-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.evaluation-code {
    padding: 7px 10px;
    border-radius: 7px;
    background: #eef2ff;
    color: #304bc7;
    font-size: 11px;
    font-weight: 700;
}

.identity-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0;
    margin-top: 18px;
}

.identity-result-grid > div {
    display: grid;
    gap: 5px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f5;
}

.identity-result-grid > div:nth-child(odd) {
    padding-right: 20px;
}

.identity-result-grid span,
.evidence-box span {
    color: #7a879a;
    font-size: 11px;
}

.identity-result-grid strong,
.identity-result-grid a {
    color: #27344c;
    font-size: 13px;
    word-break: break-word;
}

.identity-full {
    grid-column: 1 / -1;
}

.gate-status {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.gate-status.passed {
    background: #edf9f1;
    color: #257541;
}

.gate-status.failed {
    background: #fff2f2;
    color: #b33333;
}

.gate-result-list {
    margin-top: 16px;
}

.gate-result-row {
    display: flex;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid #edf0f5;
    color: #3d4a61;
    font-size: 13px;
}

.gate-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.gate-icon.yes {
    background: #eaf8ef;
    color: #208143;
}

.gate-icon.no {
    background: #fff0f0;
    color: #bf3636;
}

.element-result-heading {
    padding-bottom: 15px;
    border-bottom: 1px solid #edf0f5;
}

.element-result-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.element-code,
.item-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #eef2ff;
    color: #304bc7;
    font-weight: 800;
}

.element-code {
    width: 32px;
    height: 32px;
}

.item-code {
    padding: 4px 7px;
    margin-right: 6px;
    font-size: 11px;
}

.answer-result {
    padding: 17px 0;
    border-bottom: 1px solid #edf0f5;
}

.answer-result:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.answer-heading strong {
    color: #27344c;
    font-size: 13px;
}

.answer-score {
    white-space: nowrap;
    color: #17233c;
    font-size: 13px;
    font-weight: 800;
}

.selected-indicator {
    margin-top: 10px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f7f8fb;
    color: #46536a;
    font-size: 12px;
    line-height: 1.55;
}

.evidence-box {
    display: grid;
    gap: 5px;
    margin-top: 9px;
    padding: 10px 13px;
    border-left: 3px solid #dce3f4;
    background: #fbfcfe;
}

.evidence-box p {
    margin: 0;
    color: #46536a;
    font-size: 12px;
    line-height: 1.55;
}

.evidence-box a {
    color: #3157d5;
    font-size: 12px;
    word-break: break-all;
}

.result-sidebar {
    position: sticky;
    top: 92px;
}

.result-score-panel {
    padding: 22px;
}

.score-label {
    color: #78859b;
    font-size: 11px;
}

.final-score {
    display: flex;
    align-items: baseline;
    margin-top: 8px;
}

.final-score strong {
    color: #12213d;
    font-size: 48px;
    line-height: 1;
}

.final-score span {
    color: #12213d;
    font-size: 18px;
    font-weight: 800;
}

.score-divider {
    height: 1px;
    margin: 20px 0 8px;
    background: #edf0f5;
}

.score-summary > div,
.score-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f5;
    font-size: 12px;
}

.score-summary .penalty {
    color: #b85c00;
}

.score-breakdown {
    margin-top: 16px;
}

.gate-summary {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.gate-summary > div {
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
}

.gate-summary .ok {
    background: #f1faf4;
    color: #257541;
}

.gate-summary .not-ok {
    background: #fff5f5;
    color: #b33333;
}

.result-note {
    margin: 17px 0 0;
    color: #7a879a;
    font-size: 11px;
    line-height: 1.55;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.primary-button {
    border: 0;
    background: #23198f;
    color: #fff;
}

.secondary-button {
    border: 1px solid #d8deea;
    background: #fff;
    color: #27344c;
}

@media (max-width: 960px) {
    .result-layout {
        grid-template-columns: 1fr;
    }

    .result-sidebar {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 640px) {
    .result-shell {
        width: min(100% - 20px, 1180px);
    }

    .identity-result-grid {
        grid-template-columns: 1fr;
    }

    .identity-result-grid > div:nth-child(odd) {
        padding-right: 0;
    }

    .identity-full {
        grid-column: auto;
    }

    .result-card {
        padding: 17px;
    }

    .answer-heading {
        display: grid;
    }

    .result-actions {
        flex-direction: column;
    }
}

/* =========================================================
   PRINT / PDF
   ========================================================= */

@media print {

    .site-header,
    .site-footer,
    .result-actions {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .site-main {
        padding: 0 !important;
    }

    .result-hero {
        padding: 20px 0;
    }

    .result-layout {
        display: block;
        width: 100%;
        padding: 0;
    }

    .result-sidebar {
        position: static;
        margin-bottom: 18px;
    }

    .result-score-panel,
    .result-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .result-main {
        display: block;
    }

    .result-card {
        margin-bottom: 14px;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}

/* =========================================================
   PREDIKSI HASIL
   ========================================================= */

.prediction-score {
    padding: 9px 13px;
    border-radius: 8px;

    background: #eef2ff;
    color: #263fc4;

    font-size: 16px;
    font-weight: 900;
}

.prediction-result {
    display: grid;
    gap: 6px;

    margin-top: 20px;
    padding: 18px;

    border: 1px solid #dce4f7;
    border-radius: 10px;

    background: #f7f9ff;
}

.prediction-result > span {
    color: #78859b;
    font-size: 11px;
}

.prediction-result > strong {
    color: #14213d;

    font-size: 22px;
    line-height: 1.3;
}

.prediction-result > small {
    color: #64728a;
    font-size: 11px;
}

.prediction-warning {
    margin-top: 20px;
    padding: 16px;

    border: 1px solid #f1d5a9;
    border-radius: 10px;

    background: #fff9ef;
}

.prediction-warning > strong {
    color: #9a5b08;
    font-size: 13px;
}

.prediction-warning p {
    margin: 7px 0 0;

    color: #6e5a3e;

    font-size: 12px;
    line-height: 1.6;
}

.next-rank-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 14px;

    border: 1px solid #e3e7ef;
    border-radius: 10px;

    overflow: hidden;
}

.next-rank-box > div {
    display: grid;
    gap: 5px;

    padding: 14px;

    border-right: 1px solid #e3e7ef;
}

.next-rank-box > div:last-child {
    border-right: 0;
}

.next-rank-box span {
    color: #8490a3;
    font-size: 10px;
}

.next-rank-box strong {
    color: #27344c;
    font-size: 13px;
}

.highest-rank-box {
    margin-top: 14px;
    padding: 13px 15px;

    border-radius: 9px;

    background: #eff9f2;
    color: #257541;

    font-size: 12px;
    font-weight: 700;
}

.prediction-disclaimer,
.priority-footnote {
    margin: 15px 0 0;

    color: #8994a6;

    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   PRIORITAS PERBAIKAN
   ========================================================= */

.priority-intro {
    margin: 8px 0 18px;

    color: #68758f;

    font-size: 12px;
    line-height: 1.6;
}

.priority-list {
    border-top: 1px solid #edf0f5;
}

.priority-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;

    padding: 15px 0;

    border-bottom: 1px solid #edf0f5;
}

.priority-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #eef2ff;
    color: #304bc7;

    font-size: 11px;
    font-weight: 900;
}

.priority-content {
    min-width: 0;
}

.priority-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
}

.priority-heading strong {
    color: #27344c;

    font-size: 12px;
    line-height: 1.5;
}

.priority-gain {
    flex: 0 0 auto;

    padding: 5px 8px;

    border-radius: 6px;

    background: #eef9f2;
    color: #257541;

    font-size: 10px;
    font-weight: 800;
}

.priority-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 14px;

    margin-top: 8px;

    color: #7d899b;
    font-size: 10px;
}

.priority-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 16px;
    padding: 13px 15px;

    border-radius: 9px;

    background: #f6f8fb;

    color: #526078;
    font-size: 11px;
}

.priority-summary strong {
    color: #257541;
    font-size: 14px;
}

.priority-complete {
    padding: 16px;

    border-radius: 9px;

    background: #eff9f2;
    color: #257541;

    font-size: 12px;
}


/* =========================================================
   DISINSENTIF
   ========================================================= */

.penalty-warning-card {
    border-color: #f0d8b7;
    background: #fffaf3;
}

.penalty-warning-card p {
    margin: 10px 0 0;

    color: #6f5a3f;

    font-size: 12px;
    line-height: 1.6;
}

.penalty-warning-card strong {
    color: #b85c00;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .next-rank-box {
        grid-template-columns: 1fr;
    }

    .next-rank-box > div {
        border-right: 0;
        border-bottom: 1px solid #e3e7ef;
    }

    .next-rank-box > div:last-child {
        border-bottom: 0;
    }

    .priority-heading {
        display: grid;
    }

    .priority-gain {
        width: fit-content;
    }

    .priority-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}