:root {
    color-scheme: light;
    --ink: #132e29;
    --muted: #49645d;
    --forest: #073b31;
    --forest-deep: #062c25;
    --mint: #d8efe4;
    --gold: #f5d277;
    --surface: #f2f7f4;
    --line: #dce8e2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3, p, dl, dd { margin: 0; }
h2, h3 { line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; }
h3 { font-size: 1.125rem; }

.portal-container {
    width: min(74rem, 100% - clamp(2rem, 8vw, 7rem));
    margin-inline: auto;
}

.portal-header {
    color: white;
    background:
        radial-gradient(ellipse at 90% 115%, #208b68 0, transparent 65%),
        linear-gradient(115deg, var(--forest-deep), #104858 88%);
    border-bottom: 4px solid var(--gold);
}

.portal-top, .portal-brand, .portal-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-top {
    justify-content: space-between;
    padding-block: 1.15rem;
    border-bottom: 1px solid #ffffff33;
}

.portal-brand img { flex: none; }
.portal-brand strong { line-height: 1.35; }

.portal-login {
    flex: none;
    padding: .5rem 1.2rem;
    border-radius: .5rem;
    background: var(--gold);
    color: var(--forest-deep);
    text-decoration: none;
    font-weight: 750;
}

.portal-login:hover { background: #ffe4a0; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.portal-login:focus-visible { outline-color: white; }

.portal-header h1 {
    max-width: 16ch;
    padding-block: clamp(2.25rem, 6vw, 4.75rem);
    font-size: clamp(2.25rem, 6vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.portal-header h1 span:first-child { color: var(--gold); }

.portal-main {
    display: grid;
    gap: clamp(2.5rem, 6vw, 4.25rem);
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

.portal-section-header {
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin-bottom: 1rem;
}

.portal-section-header p, .portal-muted { color: var(--muted); font-size: .9375rem; }

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.portal-card {
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: .8rem;
    background: #fff;
}

.portal-statistics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.portal-stat {
    border-color: var(--stat-border);
    border-top: 4px solid var(--stat-accent);
    background: linear-gradient(145deg, #fff, var(--stat-surface));
}

.portal-stat-unit {
    --stat-border: #bde4d6;
    --stat-accent: #08765a;
    --stat-surface: #d8f5e9;
}

.portal-stat-kirim {
    --stat-border: #c6def8;
    --stat-accent: #165aa0;
    --stat-surface: #e0efff;
}

.portal-stat-nilai {
    --stat-border: #edd7a5;
    --stat-accent: #8a4d0b;
    --stat-surface: #fff0cb;
}

.portal-stat dt, .portal-points dt { font-weight: 700; }

.portal-value {
    margin-block: .45rem;
    color: var(--stat-accent);
    font-size: clamp(2.1rem, 4.5vw, 3.25rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    letter-spacing: -.05em;
}

.portal-steps { list-style: none; margin: 0; padding: 0; }

.portal-step {
    display: inline-grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    margin-bottom: .85rem;
    border-radius: .45rem;
    background: var(--mint);
    color: var(--forest);
    font-size: .9rem;
    font-weight: 800;
}

.portal-steps p { margin-top: .5rem; color: var(--muted); }
.portal-steps li:nth-child(2) .portal-step { background: #e0efff; color: #165aa0; }
.portal-steps li:nth-child(3) .portal-step { background: #fff0cb; color: #8a4d0b; }
.portal-steps li:nth-child(4) .portal-step { background: #eee6fa; color: #61458c; }

.portal-guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.portal-guides h3 { color: var(--forest); }
.portal-guides ol { margin: .85rem 0 0; padding-left: 1.4rem; }
.portal-guides li + li { margin-top: .55rem; }
.portal-guides li::marker { color: #246d57; font-weight: 750; }

.portal-scoring { margin-top: 1rem; }
.portal-points { margin-block: 1rem; }
.portal-points > div, .portal-categories > div { padding: .75rem; border-radius: .4rem; }
.portal-points > div { background: var(--surface); }
.portal-points strong { color: var(--forest); font-size: 1.2rem; }

.portal-scoring table { width: 100%; border-collapse: collapse; }
.portal-scoring th, .portal-scoring td {
    padding: .65rem .75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.portal-scoring thead { background: var(--forest); color: white; }

.portal-categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .5rem;
    margin-top: 1rem;
}

.portal-categories > div { background: var(--mint); font-size: .9rem; }
.portal-categories strong { color: var(--forest); }

.portal-footer {
    padding-block: 2.5rem;
    background: var(--forest-deep);
    color: #e1f0ea;
}

.portal-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.2fr .7fr;
    gap: 1.75rem;
}

.portal-footer h2 {
    margin-bottom: .6rem;
    color: white;
    font-size: 1.125rem;
    letter-spacing: normal;
}

.portal-footer ul { list-style: none; padding: 0; margin: 0; }
.portal-footer li + li { margin-top: .3rem; }
.portal-footer a { color: var(--gold); overflow-wrap: anywhere; }

@media (max-width: 60rem) {
    .portal-steps, .portal-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .portal-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 40rem) {
    .portal-statistics { grid-template-columns: 1fr; }
    .portal-guides, .portal-footer-grid { grid-template-columns: 1fr; }
    .portal-brand { gap: .6rem; font-size: .9375rem; }
    .portal-brand img { width: 38px; height: auto; }
    .portal-login { padding-inline: .85rem; }
    .portal-grid { gap: .65rem; }
    .portal-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
