/* Halaman /jamaah. Memakai variabel & komponen yang sudah ada (style.css / modern.css);
   semua kelas baru berawalan jm- agar tidak menyentuh halaman lain. */

.jm-cari { display: flex; gap: 8px; margin: 6px 0 10px; }
.jm-cari input { flex: 1; min-width: 0; }
.jm-lokasi { margin-top: 2px; }
.jm-catatan { font-size: .8rem; color: var(--muted); margin: 10px 0 14px; line-height: 1.5; }
.jm-catatan a { color: var(--teal); }
.jm-ok { background: #E6F0EC; color: var(--teal-deep); }
.jm-judul { font-size: 1.15rem; margin: 26px 0 10px; }
.jm-judul small { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: 6px; }

.jm-daftar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jm-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.jm-item:hover { border-color: var(--gold); }
.jm-item__nama { min-width: 0; }
.jm-item__nama strong { display: block; font-family: var(--font-display); font-weight: 600; }
.jm-item__nama small, .jm-item__next small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.jm-item__next { text-align: right; flex-shrink: 0; font-size: .82rem; }
.jm-item__next strong { display: block; font-size: 1rem; color: var(--teal-deep); }

.jm-kosong { padding: 22px 16px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; }

.jm-berikut {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px;
  padding: 38px 24px 20px; margin: 4px 0 14px; color: var(--surface);
  background: var(--teal-deep); border-radius: var(--radius-arch);
}
.jm-berikut__label { font-size: .82rem; opacity: .8; }
.jm-berikut__sholat { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.2; }
.jm-berikut__sholat span { color: var(--gold-soft); margin-left: 6px; }
.jm-berikut__hitung { font-size: .95rem; color: var(--gold-soft); }

.jm-aksi { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.jm-aksi .btn { text-decoration: none; display: inline-block; text-align: center; }

.jm-gulir { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jm-tabel { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.jm-tabel th, .jm-tabel td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.jm-tabel th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.jm-tabel tr:last-child td { border-bottom: 0; }
.jm-tabel .jm-next td { background: #F4EBD2; }
.jm-tabel a { color: var(--teal); font-size: .82rem; }
.jm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jm-kiblat a { color: var(--teal); margin-left: 6px; }

.jm-form { display: grid; gap: 14px; }
.jm-form label { display: grid; gap: 5px; font-size: .86rem; font-weight: 600; }
.jm-form input:not([type=checkbox]):not([type=radio]), .jm-form textarea, .jm-form select, .jm-cari input {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.jm-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jm-form legend { font-size: .86rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.jm-chip { display: inline-block !important; }
.jm-chip input { position: absolute; opacity: 0; }
.jm-chip span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; cursor: pointer; }
.jm-chip input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--surface); }
.jm-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.jm-baris { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jm-jebak { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jm-langkah { padding-left: 20px; line-height: 1.7; }
.jm-langkah code, .jm-catatan code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .82rem; word-break: break-all; }

.jm-lap { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.jm-lap small { display: block; color: var(--muted); font-size: .76rem; }
.jm-lap p { margin: 6px 0 0; font-size: .88rem; white-space: pre-wrap; }
.jm-lap--selesai { opacity: .6; }
.jm-lap__aksi { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

@media (max-width: 480px) {
  .jm-baris { grid-template-columns: 1fr; }
  .jm-item { align-items: flex-start; }
}
