/* DevPitra — Daan Punya page (builds on book-purohit.css tokens). */
.dn-title { margin: 0 0 12px; color: var(--bp-maroon); font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; text-wrap: balance; }
.dn-verse { margin: 28px auto 0; max-width: 640px; padding: 20px 24px; border-radius: 14px; background: var(--bp-cream); border: 1px solid var(--bp-line); position: relative; }
.dn-verse::before { content: "ॐ"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bp-gold); color: #3a2400; font-size: 15px; }
.dn-verse blockquote { margin: 6px 0 10px; font-size: 18px; line-height: 1.7; color: var(--bp-maroon); font-weight: 700; }
.dn-verse figcaption { font-size: 14px; line-height: 1.6; color: var(--bp-muted); }
.dn-verse cite { display: block; margin-top: 4px; font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #b8860b; }

/* Jump links */
.dn-jump {
  position: sticky; top: 0; z-index: 5;
  width: min(1200px, 100% - 32px); margin: 8px auto 28px;
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 4px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  scrollbar-width: none;
}
.dn-jump::-webkit-scrollbar { display: none; }
.dn-jump a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--bp-line); background: #fff; color: var(--bp-maroon); font-weight: 700; font-size: 14px; text-decoration: none; }
.dn-jump a:hover { border-color: var(--bp-maroon); background: var(--bp-maroon); color: #fff; }
.dn [id] { scroll-margin-top: 80px; }

/* Gau seva feature */
.dn-gau {
  width: min(1200px, 100% - 32px); margin: 0 auto 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: #fff; border: 1px solid var(--bp-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(110, 30, 30, .08);
}
.dn-gau-photo { min-height: 320px; }
.dn-gau-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-gau-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dn-gau-body h2 { margin: 0; color: var(--bp-maroon); font-size: clamp(24px, 3vw, 30px); }
.dn-gau-body > p:not(.bp-eyebrow) { margin: 0; color: var(--bp-muted); line-height: 1.65; }
.dn-gau-body .bp-eyebrow { margin: 0; }
.dn-gau-options { display: grid; gap: 12px; margin-top: 8px; }
.dn-opt { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 14px; background: var(--bp-cream); border: 1px solid var(--bp-line); }
.dn-opt h3 { margin: 0 0 4px; font-size: 17px; color: var(--bp-maroon); }
.dn-opt p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bp-muted); }
.dn-opt-buy { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dn-opt-buy .dp-btn { padding: 10px 22px; border-radius: 10px; }
.dn h3 span[lang="hi"] { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: #9a7d5f; }
.dn-amt { font-size: 20px; font-weight: 900; color: var(--bp-ink); font-variant-numeric: tabular-nums; }

/* Seva cards */
.dn-grid {
  width: min(1200px, 100% - 32px); margin: 0 auto 8px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.dn-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; background: #fff; border: 1px solid var(--bp-line); border-radius: 16px;
  box-shadow: 0 6px 20px rgba(60, 30, 10, .05); transition: transform .2s, box-shadow .2s; min-width: 0;
}
.dn-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(110, 30, 30, .1); }
.dn-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #fff3d1, var(--bp-sand)); color: var(--bp-maroon); font-size: 26px; }
.dn-tag { position: absolute; top: 24px; right: 20px; padding: 4px 10px; border-radius: 999px; background: #fff7e0; border: 1px solid #f5d98a; color: #8a5a00; font-size: 11.5px; font-weight: 800; }
.dn-card h3 { margin: 6px 0 0; font-size: 19px; color: var(--bp-maroon); line-height: 1.25; }
.dn-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--bp-muted); flex: 1; }
.dn-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--bp-line); }
.dn-card-foot .dp-btn { padding: 11px 18px; border-radius: 10px; }
.dn-card-custom { background: linear-gradient(160deg, var(--bp-maroon), var(--bp-maroon-dk)); border: none; color: #f1dcc8; }
.dn-card-custom h3 { color: #fff; }
.dn-card-custom p { color: #f1dcc8; }
.dn-card-custom .dn-ic { background: rgba(253, 184, 19, .18); }
.dn-card-custom .dn-card-foot { border-top-color: rgba(255, 255, 255, .2); }
.dn-card-custom .dn-card-foot .dp-btn { width: 100%; }
.dn a.dp-btn-gold { color: #3a2400; }

/* When to give */
.dn-when { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dn-when li { display: grid; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--bp-line); border-radius: 12px; }
.dn-when b { color: var(--bp-maroon); font-size: 16px; }
.dn-when span { color: var(--bp-muted); font-size: 14px; line-height: 1.5; }

/* Modal */
.dn-modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.dn-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dn-preset {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 52px; padding: 6px; border-radius: 10px; border: 1.5px solid var(--bp-line, #eedfc6);
  background: #fff; color: #6E1E1E; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
}
.dn-preset small { font-size: 10.5px; font-weight: 700; color: #9a7d5f; }
.dn-preset.is-on { border-color: #6E1E1E; background: #6E1E1E; color: #fff; }
.dn-preset.is-on small { color: #f1dcc8; }
.dn-amount-input { position: relative; margin-top: 8px; }
.dn-amount-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: #6E1E1E; }
.dn-amount-input input { width: 100%; box-sizing: border-box; padding-left: 30px !important; font-size: 17px; font-weight: 800; }
.dn-submit { width: 100%; padding: 14px 20px; font-size: 16px; border-radius: 10px; }
.dn-modal-note { margin: 10px 0 0; font-size: 12.5px; color: #7a6a5e; text-align: center; }
#daan-msg a { color: inherit; font-weight: 800; }

@media (max-width: 1000px) {
  .dn-grid, .dn-when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dn-gau { grid-template-columns: 1fr; }
  .dn-gau-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .dn-grid, .dn-when { grid-template-columns: 1fr; }
  .dn-gau-body { padding: 22px 18px; }
  .dn-opt { flex-direction: column; align-items: stretch; }
  .dn-opt-buy { flex-direction: row; align-items: center; justify-content: space-between; }
  .dn-card { padding: 20px; }
  .dn-tag { position: static; align-self: flex-start; order: -1; }
  .dn-amounts { grid-template-columns: 1fr 1fr; }
  .dn-verse blockquote { font-size: 16px; }
}
