/* ============================================================
   PRAYERS PAGE — prayer sheet (left) + prayer request (right)
   ============================================================ */
.pz-page { padding-bottom: 72px; }
.pz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Prayer sheet card ───────────────────────────────────── */
.pz__sheet {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(13, 27, 62, .07);
  padding: 26px 26px 22px;
  min-width: 0;
}
.pz__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pz__title { font-family: 'Cinzel', serif; font-size: 1.4rem; color: var(--navy); margin: 0; display: flex; align-items: center; gap: 10px; }
.pz__title i { color: var(--gold); font-size: 1.15rem; }
.pz__sub { margin: 6px 0 0; font-family: 'Lora', serif; font-style: italic; color: var(--text-muted); font-size: .95rem; }
[data-lang="kn"] .pz__sub { font-family: 'Noto Sans Kannada', sans-serif; font-style: normal; }

/* language switch */
.lang-switch { display: flex; gap: 8px; }
.lang-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--white);
  font-family: 'DM Sans', 'Noto Sans Kannada', sans-serif; font-weight: 600; font-size: .9rem; color: var(--text);
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lang-pill i { color: var(--gold); }
.lang-pill:hover { border-color: var(--gold); }
.lang-pill--active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lang-pill--active i { color: var(--gold-light); }

/* category tabs */
.pz__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pz-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--cream);
  font-family: 'DM Sans', 'Noto Sans Kannada', sans-serif; font-weight: 600; font-size: .85rem; color: var(--text);
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pz-tab i { color: var(--gold); font-size: .85rem; }
.pz-tab:hover { border-color: var(--gold); }
.pz-tab--active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pz-tab--active i { color: var(--gold-light); }

/* search */
.pz__search { position: relative; margin-bottom: 14px; }
.pz__search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; }
.pz__search input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--cream); font-family: inherit; font-size: .92rem; color: var(--text);
}
.pz__search input:focus { outline: none; border-color: var(--gold); background: var(--white); }

/* scrolling list (the page itself no longer needs to scroll) */
.pz__list {
  max-height: min(62vh, 620px);
  min-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.pz__list::-webkit-scrollbar { width: 7px; }
.pz__list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
.pz__intro { font-size: .92rem; line-height: 1.7; color: var(--text-muted); margin: 0 0 14px; }
.pz__state { text-align: center; color: var(--text-muted); padding: 60px 10px; }

.pz-item { border: 1px solid var(--border-light); border-radius: 12px; margin-bottom: 10px; background: var(--white); overflow: hidden; }
.pz-item--open { border-color: var(--gold); box-shadow: 0 4px 14px rgba(13, 27, 62, .06); }
.pz-item__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: 'Cinzel', 'Noto Sans Kannada', serif; font-size: 1.02rem; color: var(--navy); font-weight: 600;
}
.pz-item__head i { color: var(--gold); font-size: .8rem; transition: transform .25s ease; flex: 0 0 auto; }
.pz-item--open .pz-item__head i { transform: rotate(180deg); }
.pz-item__body {
  display: none; padding: 2px 18px 18px; white-space: pre-line;
  font-family: 'Lora', serif; font-size: 1.02rem; line-height: 1.85; color: var(--text);
}
.pz-item--open .pz-item__body { display: block; }
[data-lang="kn"] .pz-item__body, [data-lang="kn"] .pz-item__head { font-family: 'Noto Sans Kannada', sans-serif; }
[data-lang="kn"] .pz-item__body { line-height: 2; font-size: 1rem; }
[data-lang="kn"] .pz-tab, [data-lang="kn"] .pz__intro { font-family: 'Noto Sans Kannada', sans-serif; }

/* ── Prayer request card (right) ─────────────────────────── */
.pz__request { position: sticky; top: 96px; }
.pz__request .prayer-form-box { max-width: none; margin: 0; padding: 28px 24px; text-align: left; }
.pz__request .prayer-form-box__title { font-size: 1.25rem; line-height: 1.35; }
.pz__request .prayer-form-box textarea { resize: vertical; }
.pz__request .prayer-anon-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; justify-content: flex-start; }
.pz__request .prayer-anon-row input { width: 18px; height: 18px; margin: 0; padding: 0; flex: 0 0 auto; accent-color: var(--gold); }
.pz__request .prayer-anon-row label { color: rgba(255, 255, 255, .8); font-size: .9rem; }
.pz__request .btn { width: 100%; justify-content: center; }

/* ── Tablet / phone ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .pz { grid-template-columns: 1fr; }
  .pz__request { position: static; }
}
@media (max-width: 600px) {
  .pz__sheet { padding: 20px 16px 16px; }
  .pz__list { max-height: 68vh; }
  .pz-tab { font-size: .8rem; padding: 7px 12px; }
}

.pz__request .prayer-required-note { margin: 0 0 16px; font-size: .82rem; color: rgba(255,255,255,.65); }
