/* Etusivun hoitaja-osion pätevyyslista ja todistusikkuna (resources/views/home.antlers.html) */
.patevyydet { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(0, 47, 108, .12); }
.patevyydet li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0, 47, 108, .12); }
.patevyys-teksti { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.patevyys-teksti strong { font-weight: 600; }
.patevyys-vuosi { color: var(--teksti-3, #6b7785); }
.patevyys-lisa { font-size: .92em; color: var(--teksti-2, #4a5866); }
.patevyys-tarkistus { font-size: .92em; }
.patevyys-nappi { flex: 0 0 auto; font: inherit; font-size: .9em; line-height: 1.2; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sininen, #002F6C); background: transparent; color: var(--sininen, #002F6C); cursor: pointer; white-space: nowrap; }
.patevyys-nappi:hover, .patevyys-nappi:focus-visible { background: var(--sininen, #002F6C); color: #fff; }
.patevyys-profiili { margin-top: 16px; }
@media (max-width: 520px) {
    .patevyydet li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.todistus-ikkuna { padding: 0; border: 0; border-radius: 14px; width: auto; max-width: min(94vw, 900px); background: #fff; }
.todistus-ikkuna::backdrop { background: rgba(0, 20, 45, .72); }
.todistus-sisus { padding: 14px; }
.todistus-yla { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; }
.todistus-yla button, .todistus-ala button { font: inherit; border: 1px solid rgba(0, 47, 108, .25); background: #fff; color: var(--sininen, #002F6C); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.todistus-ikkuna img { display: block; max-width: 100%; max-height: 78vh; height: auto; margin: 0 auto; border-radius: 6px; }
.todistus-ala { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 0; }
.todistus-ala[hidden] { display: none; }
