/* Masjid An Nahl: tambahan gaya untuk elemen dinamis yang tidak ada pada paket statis.
   Menggunakan variabel warna yang sudah didefinisikan di styles.css. */

/* --- Pesan kilat di bawah header --------------------------------------- */
.flash {
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .87rem;
  line-height: 1.6;
  border: 1px solid var(--line);
}
.flash-success { color: var(--forest); background: var(--soft); border-color: #cfe3d6; }
.flash-error { color: #87392e; background: #fdf0ed; border-color: #f1d3cc; }

.form-status.is-error { color: #87392e; background: #fdf0ed; }
.form-status.is-success { color: var(--forest); background: var(--soft); }

/* --- Pilihan cara berdonasi -------------------------------------------- */
.channel-options { display: grid; gap: 10px; margin-top: 6px; }
.channel-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.channel-option:hover { border-color: var(--green); }
.channel-option input { margin-top: 3px; flex: none; }
.channel-option span { display: block; }
.channel-option strong { display: block; font-size: .92rem; color: var(--ink); }
.channel-option small { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.channel-option:has(input:checked) { border-color: var(--green); background: var(--soft); }

/* --- Daftar rincian (halaman konfirmasi donasi) ------------------------- */
.detail-list { margin: 16px 0 0; display: grid; gap: 2px; }
.detail-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { font-size: .79rem; color: var(--muted); margin: 0; }
.detail-list dd { margin: 0; font-size: .9rem; color: var(--ink); text-align: right; }
.detail-list dd .account-number { font-size: 1.02rem; }

/* --- Badge status ------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.badge-ok { color: #12614c; background: #dcf0e5; }
.badge-wait { color: #8a6318; background: var(--gold-soft); }
.badge-info { color: #1d4f79; background: #dfecf8; }
.badge-danger { color: #87392e; background: #fdf0ed; }
.badge-muted { color: var(--muted); background: var(--soft); }

/* --- Paginasi berita ---------------------------------------------------- */
.news-list nav[aria-label="Page navigation"] ul,
.pagination-list { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; }
.news-list nav[aria-label="Page navigation"] a,
.news-list nav[aria-label="Page navigation"] span {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: .83rem;
  color: var(--body);
  text-decoration: none;
  background: var(--paper);
}
.news-list nav[aria-label="Page navigation"] .active a,
.news-list nav[aria-label="Page navigation"] .active span { background: var(--forest); border-color: var(--forest); color: #fff; }
.news-list nav[aria-label="Page navigation"] .disabled span { opacity: .45; }

@media (max-width: 767px) {
  .detail-list > div { flex-direction: column; align-items: flex-start; }
  .detail-list dd { text-align: left; }
}

/* --- Kartu peta lokasi --------------------------------------------------- */
/* Gambar peta ikut dapat diklik, jadi tautannya dibuat setinggi gambarnya. */
.map-card > a { display: block; line-height: 0; }
.map-card figcaption .text-link { font-size: .78rem; line-height: 1.5; }
.map-card figcaption .text-link .icon { width: 15px; height: 15px; }
