/*
 * The applicant portal's own stylesheet.
 *
 * Portal-only rules, and only those. The touch-target and input-size corrections in
 * admin-a11y.css are scoped to `html.fi`, which every Filament panel carries, so the
 * portal already gets them; repeating them here would be a second copy to keep in step.
 * Anything that would change the staff panel belongs in admin-a11y.css instead.
 */

/*
 * "atau buat akun baru" under the login and register headings.
 *
 * admin-a11y.css gives every link action a 44px inline-flex box, which is right for the
 * hit area. Filament pins the label inside it to `align-self: baseline`, which puts the
 * text at the TOP of that box, so the link sat half a line above the plain word "atau"
 * beside it (seen in the harness screenshots at every width). Centring the label in the
 * box and the box on the line puts both words back on one visual line without shrinking
 * the target. Only the portal has this sentence: the staff login has no registration link.
 */
.fi-simple-header-subheading .fi-ac-link-action {
    vertical-align: middle;
}

.fi-simple-header-subheading .fi-ac-link-action > .fi-link-label {
    align-self: center;
}

/*
 * The step list on Beranda: one row per step, the link on the left and its state in words
 * on the right (never colour alone). Stacked on a narrow screen, side by side from `sm` up.
 * Each link is a 44px row so a thumb can hit it.
 */
.spmb-langkah {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spmb-langkah > li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.dark .spmb-langkah > li {
    border-bottom-color: var(--gray-700);
}

.spmb-langkah > li:last-child {
    border-bottom: 0;
}

/*
 * Each step link, here and in the "not yet complete" list on the submit page, is a 44px row.
 * So is a link to an uploaded file ("Lihat berkas", "Lihat bukti") inside a sentence, which the
 * harness measured at 20px on the payment page.
 */
.spmb-langkah a,
.spmb-temuan a,
.spmb-tautan-berkas {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    font-weight: 600;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .spmb-langkah > li {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

/* The "not yet complete" list on the submit page: one step per row, its link then the reason. */
.spmb-temuan {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.spmb-temuan > li {
    padding-block: 0.25rem;
}
