/* ==========================================================================
   DevDharm — public UI (loaded after theme.css)
   Warm saffron / maroon palette, mobile-first, app-style on phones.
   Sections:  tokens · header · drawer · bottom nav · hero · category grid ·
              rails · thought-of-the-day · features · CTA · inner pages ·
              reading page · search · library · footer · print
   ========================================================================== */

:root {
  /* palette — identical to theme.css, repeated so this file stands on its own */
  --dd-maroon: #7a1f2b;
  --dd-maroon-dark: #591620;
  --dd-saffron: #c9922a;
  --dd-saffron-light: #f4e3c1;
  --dd-cream: #faf6ee;
  --dd-ink: #2b211d;
  --dd-ink-soft: #5c534d;
  --dd-line: #e7ddcd;

  --dd-orange: #f28c28;
  --dd-orange-d: #d9731a;
  --dd-sand: #fffaf2;
  --dd-muted: #7a6d63;
  --dd-card-shadow: 0 2px 10px rgba(43, 33, 29, .06);
  --dd-card-shadow-h: 0 14px 30px rgba(43, 33, 29, .13);
  --dd-serif: 'Noto Serif Devanagari', 'Noto Sans Devanagari', Georgia, serif;
  --dd-sans: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.dd-public { background: var(--dd-sand); color: var(--dd-ink); font-family: var(--dd-sans); }
.dd-public a { text-underline-offset: 3px; }
.dd-public :focus-visible { outline: 3px solid rgba(242, 140, 40, .55); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn-dd-orange {
  background: linear-gradient(135deg, #f6a02f, #e9731a);
  border: 0; color: #fff; font-weight: 600;
  border-radius: 12px; padding: .65rem 1.25rem;
  box-shadow: 0 8px 18px rgba(233, 115, 26, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-dd-orange:hover { color: #fff; filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(233, 115, 26, .36); }
.btn-dd-ghost {
  border: 1.5px solid rgba(122, 31, 43, .35); color: var(--dd-maroon);
  background: rgba(255, 255, 255, .65); font-weight: 600;
  border-radius: 12px; padding: .65rem 1.25rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-dd-ghost:hover { background: var(--dd-maroon); border-color: var(--dd-maroon); color: #fff; }

.dd-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--dd-orange-d); background: rgba(242, 140, 40, .14);
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: .9rem;
}
.dd-eyebrow.light { color: #ffd9a0; background: rgba(255, 255, 255, .12); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.dd-hdr { background: #fff; border-bottom: 1px solid var(--dd-line); z-index: 1030; }
@media (min-width: 992px) { .dd-hdr { position: sticky; top: 0; } }
.dd-hdr.scrolled { box-shadow: 0 6px 20px rgba(43, 33, 29, .1); }

.dd-hdr-top { background: var(--dd-maroon-dark); color: #f4e3c1; font-size: .78rem; padding: .35rem 0; }
.dd-hdr-top a { color: #f4e3c1; margin-left: 1.1rem; }
.dd-hdr-top a:hover { color: #fff; }
.dd-hdr-top i { margin-right: .25rem; opacity: .85; }

.dd-hdr-main { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }

.dd-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none !important; flex: none; }
.dd-brand img { display: block; height: auto; }
.dd-brand-text { display: flex; flex-direction: column; line-height: 1; }
.dd-brand-text strong { font-family: var(--dd-serif); font-weight: 800; font-size: 1.75rem; color: var(--dd-maroon); letter-spacing: -.01em; line-height: 1.15; }
.dd-brand-text small { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .72rem; color: var(--dd-maroon-dark); letter-spacing: .03em; margin-top: 2px; }
.dd-brand-light .dd-brand-text strong { color: #fff; }
.dd-brand-light .dd-brand-text small { color: #f4e3c1; }

.dd-search {
  flex: 1 1 320px; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; position: relative;
  background: #fff; border: 1.5px solid var(--dd-line); border-radius: 14px;
  padding-left: 2.6rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.dd-search:focus-within { border-color: var(--dd-orange); box-shadow: 0 0 0 .25rem rgba(242, 140, 40, .15); }
.dd-search-ico { position: absolute; left: 1rem; color: var(--dd-muted); }
.dd-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: .7rem .5rem; font-size: .92rem; min-width: 0; }
.dd-search button {
  border: 0; background: linear-gradient(135deg, #f6a02f, #e9731a); color: #fff;
  width: 54px; align-self: stretch; border-radius: 0 12px 12px 0; font-size: 1.15rem;
}
.dd-hdr-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.dd-acct-btn, .dd-menu-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1.5px solid var(--dd-line); background: #fff; color: var(--dd-ink);
  border-radius: 12px; padding: .5rem .8rem; font-weight: 600; font-size: .88rem;
  transition: border-color .15s ease, background .15s ease;
}
.dd-acct-btn i, .dd-menu-btn i { font-size: 1.3rem; color: var(--dd-maroon); }
.dd-acct-btn:hover, .dd-menu-btn:hover { border-color: var(--dd-orange); background: #fff8ee; }
.dd-menu-btn { padding: .5rem .65rem; }
.dd-acct-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--dd-orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.dd-acct-menu { border: 1px solid var(--dd-line); border-radius: 14px; box-shadow: var(--dd-card-shadow-h); padding: .4rem; min-width: 230px; }
.dd-acct-menu .dropdown-item { border-radius: 8px; padding: .5rem .7rem; font-size: .9rem; }
.dd-acct-menu .dropdown-item i { margin-right: .55rem; color: var(--dd-orange-d); }
.dd-acct-menu .dropdown-item:hover { background: var(--dd-saffron-light); }
.dd-acct-menu .dropdown-header { font-weight: 600; color: var(--dd-maroon-dark); }

/* order on small screens: brand + actions on row 1, search on row 2 */
@media (max-width: 767.98px) {
  .dd-hdr-main { gap: .6rem; padding-top: .55rem; padding-bottom: .55rem; }
  .dd-brand-text strong { font-size: 1.45rem; }
  .dd-hdr-actions { order: 2; }
  .dd-search { order: 3; flex: 1 1 100%; max-width: none; }
}

/* ---- section bar (scrolls sideways on phones) ---- */
.dd-catnav { border-top: 1px solid var(--dd-line); background: #fffdf8; }
.dd-catnav-scroll {
  display: flex; align-items: center; gap: .15rem;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.dd-catnav-scroll::-webkit-scrollbar { display: none; }
.dd-catnav-scroll a {
  position: relative; padding: .75rem .8rem; font-weight: 600; font-size: .9rem;
  color: var(--dd-ink); text-decoration: none; flex: none;
}
.dd-catnav-scroll a::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 3px;
  background: var(--dd-orange); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .2s ease;
}
.dd-catnav-scroll a:hover { color: var(--dd-orange-d); }
.dd-catnav-scroll a.active { color: var(--dd-maroon); }
.dd-catnav-scroll a.active::after, .dd-catnav-scroll a:hover::after { transform: scaleX(1); }
.dd-catnav-home { font-size: 1.25rem; color: var(--dd-orange-d) !important; padding-right: .5rem !important; }

/* ==========================================================================
   DRAWER
   ========================================================================== */
.dd-drawer { width: 340px !important; max-width: 92vw; background: var(--dd-sand); }
.dd-drawer .offcanvas-header { border-bottom: 1px solid var(--dd-line); background: #fff; }
.dd-drawer-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--dd-muted); margin-bottom: .8rem; }
.dd-drawer-links .list-group-item { display: flex; align-items: center; gap: .7rem; border: 0; border-bottom: 1px solid var(--dd-line); background: transparent; padding: .85rem .25rem; font-weight: 600; }
.dd-drawer-links .list-group-item i { color: var(--dd-orange-d); font-size: 1.2rem; }
.dd-drawer-links .list-group-item small { margin-left: auto; color: var(--dd-muted); font-weight: 400; }

/* ==========================================================================
   MOBILE BOTTOM NAV + FLOATING BUTTONS
   ========================================================================== */
.dd-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: flex; background: #fff; border-top: 1px solid var(--dd-line);
  box-shadow: 0 -6px 20px rgba(43, 33, 29, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.dd-bottomnav a, .dd-bottomnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .5rem 0 .45rem; border: 0; background: transparent;
  color: var(--dd-muted); text-decoration: none; font-size: .68rem; font-weight: 600;
}
.dd-bottomnav i { font-size: 1.4rem; padding: 1px 16px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.dd-bottomnav .active { color: var(--dd-orange-d); }
.dd-bottomnav .active i { background: rgba(242, 140, 40, .16); }

@media (max-width: 991.98px) {
  .dd-public { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
.dd-totop {
  position: fixed; right: 16px; bottom: 24px; z-index: 1035;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--dd-orange); color: #fff; font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(233, 115, 26, .4);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.dd-totop.show { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 991.98px) { .dd-totop { bottom: calc(78px + env(safe-area-inset-bottom)); } }

.dd-lightbox { background: #111; border: 0; border-radius: 16px; padding: .75rem; position: relative; }
.dd-lightbox .btn-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; }
.dd-lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; }
.dd-lightbox-cap { color: #eee; text-align: center; padding: .6rem; font-weight: 600; }

/* ==========================================================================
   HERO (carousel)
   ========================================================================== */
.dd-hero2 {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #fff7ea 0%, #ffead0 52%, #ffd9a3 100%);
  border-bottom: 1px solid #f3d8aa;
}
.dd-hero2-art {
  position: absolute; right: 0; bottom: 0; height: 100%; width: 66%;
  object-fit: cover; object-position: right bottom; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
          mask-image: linear-gradient(to right, transparent 0, #000 40%);
}
.dd-hero2 .carousel { position: relative; z-index: 1; }
.dd-hero2-inner { min-height: 440px; display: flex; align-items: center; }
.dd-hero2-copy { max-width: 540px; padding: 2.5rem 0 3.5rem; }
.dd-hero2-copy h1 {
  font-family: var(--dd-serif); font-weight: 800; color: var(--dd-maroon);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.28; margin-bottom: 1rem;
}
.dd-hero2-copy p { color: #5a4a3f; font-size: 1.05rem; max-width: 470px; margin-bottom: 1.6rem; }
.dd-hero2-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.dd-hero2 .carousel-indicators { margin-bottom: 1rem; }
.dd-hero2 .carousel-indicators [data-bs-target] {
  width: 9px; height: 9px; border-radius: 50%; border: 0; margin: 0 5px;
  background: var(--dd-maroon); opacity: .3; transition: all .25s ease;
}
.dd-hero2 .carousel-indicators .active { opacity: 1; width: 26px; border-radius: 6px; background: var(--dd-orange-d); }
.dd-hero2-arrow {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15); display: inline-flex; align-items: center; justify-content: center;
  color: var(--dd-maroon); font-size: 1.3rem; transition: background .15s ease, transform .15s ease;
}
.dd-hero2 .carousel-control-prev, .dd-hero2 .carousel-control-next { width: 6%; opacity: 1; }
.dd-hero2 .carousel-control-prev:hover .dd-hero2-arrow, .dd-hero2 .carousel-control-next:hover .dd-hero2-arrow { background: #fff; transform: scale(1.08); }

@media (max-width: 767.98px) {
  .dd-hero2-art { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
  .dd-hero2-inner { min-height: 380px; }
  .dd-hero2-copy { padding: 2rem 0 3.2rem; }
  .dd-hero2-copy p { font-size: .98rem; }
  .dd-hero2 .carousel-control-prev, .dd-hero2 .carousel-control-next { display: none; }
}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.dd-section { padding: 2.6rem 0; }
.dd-section-tight { padding: 1.2rem 0; }
.dd-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.dd-sec-head h2 { font-family: var(--dd-serif); font-weight: 800; font-size: 1.55rem; color: var(--dd-maroon); margin: 0; line-height: 1.3; }
.dd-sec-head span { font-size: .8rem; color: var(--dd-muted); font-weight: 500; }
.dd-viewall { font-weight: 700; font-size: .88rem; color: var(--dd-orange-d); text-decoration: none; white-space: nowrap; }
.dd-viewall:hover { color: var(--dd-maroon); }
.dd-viewall i { transition: transform .15s ease; }
.dd-viewall:hover i { transform: translateX(3px); }

/* ---------- category grid (12 sections) ---------- */
.dd-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.dd-cat-grid-sm { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 768px) { .dd-cat-grid:not(.dd-cat-grid-sm) { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }
.dd-cat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  padding: 1rem .4rem .85rem; border-radius: 20px; text-decoration: none !important;
  background: rgba(var(--rgb), .09); border: 1px solid rgba(var(--rgb), .12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.dd-cat:hover { transform: translateY(-5px); background: rgba(var(--rgb), .16); box-shadow: 0 14px 26px rgba(var(--rgb), .22); }
.dd-cat-ico {
  width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 8px 16px rgba(var(--rgb), .38);
}
.dd-cat-mr { font-weight: 700; font-size: .9rem; color: var(--dd-ink); line-height: 1.25; }
.dd-cat-sub { display: none; font-size: .72rem; color: var(--dd-muted); line-height: 1.3; }
@media (min-width: 768px) { .dd-cat-grid:not(.dd-cat-grid-sm) .dd-cat-sub { display: block; } .dd-cat-ico { width: 62px; height: 62px; font-size: 1.9rem; } }
@media (max-width: 380px) { .dd-cat-ico { width: 48px; height: 48px; font-size: 1.45rem; } .dd-cat-mr { font-size: .8rem; } }

/* ---------- horizontal rails ---------- */
.dd-rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding: .3rem .25rem 1rem; margin: 0 -.25rem; scrollbar-width: thin;
}
.dd-rcard {
  flex: 0 0 290px; scroll-snap-align: start; display: flex; gap: .9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--dd-line); border-radius: 18px; padding: 1rem;
  text-decoration: none !important; box-shadow: var(--dd-card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dd-rcard:hover { transform: translateY(-4px); box-shadow: var(--dd-card-shadow-h); }
.dd-rcard-thumb {
  flex: none; width: 54px; height: 54px; border-radius: 14px; background: rgba(var(--rgb), .13); color: var(--c);
  display: grid; place-items: center; font-size: 1.6rem;
}
.dd-rcard-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.dd-rcard-title { font-weight: 700; color: var(--dd-ink); font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd-rcard-text { color: var(--dd-muted); font-size: .82rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) { .dd-rcard { flex-basis: 78%; } }

/* ---------- thought of the day ---------- */
.dd-sv-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.6rem;
  padding: 1.8rem 2.2rem; border-radius: 24px;
  background: linear-gradient(110deg, #fff3dc 0%, #ffe0ad 100%); border: 1px solid #f3d29b;
}
.dd-sv-card::before {
  content: ''; position: absolute; inset: 0; background: url('../img/pattern-mandala.svg') right -30px center / 200px repeat-y; opacity: .5; pointer-events: none;
}
.dd-sv-diya { position: relative; width: 92px; flex: none; filter: drop-shadow(0 8px 14px rgba(233, 115, 26, .35)); }
.dd-sv-body { position: relative; flex: 1; min-width: 0; }
.dd-sv-body .dd-eyebrow { margin-bottom: .5rem; background: rgba(255, 255, 255, .65); }
.dd-sv-quote { font-family: var(--dd-serif); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.6; color: var(--dd-maroon); margin: 0 0 .4rem; padding: 0; border: 0; }
.dd-sv-cite { display: block; font-style: normal; color: var(--dd-muted); font-weight: 600; font-size: .9rem; }
.dd-sv-more { position: relative; flex: none; font-weight: 700; font-size: .88rem; color: var(--dd-maroon); text-decoration: none; background: rgba(255, 255, 255, .7); padding: .55rem 1rem; border-radius: 999px; }
.dd-sv-more:hover { background: #fff; color: var(--dd-orange-d); }
@media (max-width: 767.98px) { .dd-sv-card { flex-direction: column; align-items: flex-start; padding: 1.4rem; gap: .9rem; } .dd-sv-diya { width: 70px; } }

/* ---------- feature strip ---------- */
.dd-features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.dd-feature {
  display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--dd-line);
  border-radius: 18px; padding: 1rem; font-weight: 600; font-size: .86rem; line-height: 1.4; box-shadow: var(--dd-card-shadow);
}
.dd-feature .ico { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.35rem; }
@media (max-width: 1199.98px) { .dd-features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .dd-features { grid-template-columns: repeat(2, 1fr); } .dd-feature { flex-direction: column; text-align: center; } }
@media (max-width: 399.98px) { .dd-features { grid-template-columns: 1fr; } .dd-feature { flex-direction: row; text-align: left; } }

/* ---------- CTA band ---------- */
.dd-cta2 {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(120deg, #7a1f2b 0%, #4a1219 100%); color: #fff; border-radius: 26px; padding: 2.4rem 2.6rem;
}
.dd-cta2::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern-mandala.svg') right -20px center / 190px repeat-y; opacity: .22; pointer-events: none; }
.dd-cta2 > * { position: relative; }
.dd-cta2 h2 { font-family: var(--dd-serif); color: #fff; font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: .5rem; }
.dd-cta2 p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 560px; }
.dd-cta2-actions { display: flex; flex-wrap: wrap; gap: .7rem; flex: none; }
.dd-cta2 .btn-dd-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.dd-cta2 .btn-dd-ghost:hover { background: #fff; color: var(--dd-maroon); }
@media (max-width: 767.98px) { .dd-cta2 { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.5rem; } }

/* ==========================================================================
   INNER PAGES (listing)
   ========================================================================== */
.dd-pagehero {
  background: linear-gradient(100deg, rgba(var(--rgb), .15) 0%, #fff7ea 70%);
  border-bottom: 1px solid var(--dd-line); padding: 1.7rem 0;
}
.dd-pagehero-row { display: flex; align-items: center; gap: 1rem; }
.dd-pagehero-ico {
  flex: none; width: 62px; height: 62px; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 20px rgba(var(--rgb), .35);
}
.dd-pagehero h1 { font-family: var(--dd-serif); font-weight: 800; font-size: 1.8rem; color: var(--dd-maroon); margin: 0; line-height: 1.25; }
.dd-pagehero h1 small { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .85rem; color: var(--dd-muted); margin-left: .4rem; }
.dd-pagehero p { margin: .2rem 0 0; color: #5a4a3f; font-size: .95rem; }

.dd-filterbar {
  display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.6rem;
  background: #fff; border: 1px solid var(--dd-line); border-radius: 18px; padding: .8rem; box-shadow: var(--dd-card-shadow);
}
.dd-filterbar-field {
  display: flex; align-items: center; gap: .55rem; border: 1.5px solid var(--dd-line); border-radius: 12px;
  padding: 0 .85rem; background: #fff; transition: border-color .15s ease;
}
.dd-filterbar-field:focus-within { border-color: var(--dd-orange); }
.dd-filterbar-field.grow { flex: 1 1 260px; }
.dd-filterbar-field i { color: var(--dd-muted); }
.dd-filterbar-field input, .dd-filterbar-field select { border: 0; outline: 0; background: transparent; padding: .65rem 0; width: 100%; font-size: .93rem; }

.dd-empty { text-align: center; padding: 3.5rem 1rem; color: var(--dd-muted); }
.dd-empty > i { font-size: 3rem; color: #e3d4bd; }
.dd-empty h3 { font-family: var(--dd-serif); font-size: 1.25rem; color: var(--dd-maroon-dark); margin: .8rem 0 .3rem; }
.dd-empty p { margin-bottom: 1.1rem; }

/* ---------- content cards ---------- */
.dd-ccard {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--dd-line);
  border-radius: 20px; overflow: hidden; text-decoration: none !important; box-shadow: var(--dd-card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dd-ccard:hover { transform: translateY(-5px); box-shadow: var(--dd-card-shadow-h); }
.dd-ccard-thumb {
  height: 120px; display: grid; place-items: center; font-size: 2.6rem; color: var(--c);
  background: linear-gradient(135deg, rgba(var(--rgb), .18), rgba(var(--rgb), .05)); position: relative; overflow: hidden;
}
.dd-ccard-thumb.has-img { height: 170px; }
.dd-ccard-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dd-ccard:hover .dd-ccard-thumb img { transform: scale(1.05); }
.dd-ccard-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1.2rem; flex: 1; }
.dd-ccard-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.dd-ccard-title { font-weight: 700; font-size: 1.05rem; color: var(--dd-ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd-ccard-text { color: var(--dd-muted); font-size: .85rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dd-ccard-link { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .85rem; color: var(--dd-maroon); }
.dd-ccard-link i { transition: transform .15s ease; }
.dd-ccard:hover .dd-ccard-link i { transform: translateX(4px); }

/* ---------- quote cards (suvichar / shloka) ---------- */
.dd-quote-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem; height: 100%; padding: 1.6rem 1.5rem 1.3rem;
  border-radius: 20px; text-decoration: none !important;
  background: linear-gradient(160deg, rgba(var(--rgb), .11), #fff 62%); border: 1px solid rgba(var(--rgb), .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dd-quote-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(var(--rgb), .22); }
.dd-quote-mark { font-size: 2rem; color: var(--c); opacity: .55; }
.dd-quote-body { font-family: var(--dd-serif); font-size: 1.05rem; line-height: 1.85; color: var(--dd-ink); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.dd-quote-src { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--c); }

/* ---------- gallery (rangoli) ---------- */
.dd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.dd-gal-tile {
  position: relative; display: block; aspect-ratio: 1 / 1; border: 0; padding: 0; border-radius: 18px; overflow: hidden;
  background: #f3e8d6; box-shadow: var(--dd-card-shadow); transition: transform .18s ease, box-shadow .18s ease;
}
button.dd-gal-tile { cursor: zoom-in; }
button.dd-gal-tile:hover { transform: translateY(-4px); box-shadow: var(--dd-card-shadow-h); }
.dd-gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-gal-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem; color: #fff; font-weight: 600; font-size: .85rem; text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
}
.dd-gal-tile.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; background: linear-gradient(135deg, rgba(var(--rgb), .16), rgba(var(--rgb), .05)); color: var(--c); font-size: 2.4rem; }
.dd-gal-tile.placeholder span { position: static; background: none; color: var(--dd-ink); font-size: .85rem; padding: 0 .8rem; text-align: center; }

/* ==========================================================================
   READING PAGE
   ========================================================================== */
.dd-breadcrumb-bar { background: var(--dd-saffron-light); border-bottom: 1px solid var(--dd-line); padding: .7rem 0; font-size: .85rem; }
.dd-breadcrumb-bar a { color: var(--dd-maroon-dark); font-weight: 600; text-decoration: none; }
.dd-breadcrumb-bar a:hover { color: var(--dd-orange-d); }
.dd-reading-panel { background: #fff; border: 1px solid var(--dd-line); border-radius: 20px; box-shadow: var(--dd-card-shadow); padding: 2.5rem; border-top: 4px solid var(--c, var(--dd-maroon)); }
.dd-reading-panel .stotra-text { font-size: 1.15rem; line-height: 2.1; color: var(--dd-ink); white-space: pre-line; }
@media (max-width: 767.98px) {
  .dd-reading-panel { padding: 1.5rem 1.15rem; border-radius: 16px; }
  .dd-reading-panel .stotra-text { font-size: 1.05rem; line-height: 1.95; }
}
.dd-related-item { display: block; padding: .65rem .9rem; border: 1px solid var(--dd-line); border-radius: 10px; margin-bottom: .5rem; font-size: .9rem; font-weight: 500; color: var(--dd-ink); background: #fff; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.dd-related-item:hover { border-color: var(--dd-orange); background: #fff6e8; color: var(--dd-maroon-dark); }
.btn-dd-outline { border: 1.5px solid var(--dd-maroon); color: var(--dd-maroon); background: transparent; border-radius: 10px; font-weight: 600; }
.btn-dd-outline:hover { background: var(--dd-maroon); color: #fff; }


.dd-read-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.dd-read-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; background: rgba(var(--rgb, 122, 31, 43), .12); color: var(--c, var(--dd-maroon)); text-decoration: none; }
.dd-read-chip.soft { background: var(--dd-saffron-light); color: var(--dd-maroon-dark); }
.dd-reading-panel h1 { font-family: var(--dd-serif); font-weight: 800; color: var(--dd-maroon); line-height: 1.4; }
.dd-reading-panel .stotra-text { font-family: var(--dd-serif); font-weight: 500; }
.dd-bigquote { font-family: var(--dd-serif); font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.85; color: var(--dd-maroon); border-left: 5px solid var(--c); padding: .2rem 0 .2rem 1.1rem; margin: .5rem 0 1rem; }
.dd-bigquote-src { font-weight: 700; color: var(--dd-muted); margin-bottom: 1rem; }
.dd-read-img { max-width: 100%; border-radius: 16px; margin: .5rem 0 1.2rem; box-shadow: var(--dd-card-shadow); }
.dd-side-card { background: #fff; border: 1px solid var(--dd-line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--dd-card-shadow); }
.dd-side-card h6 { font-family: var(--dd-serif); font-weight: 700; color: var(--dd-maroon); margin-bottom: .8rem; }

/* tools injected by site.js: favourite · text size · share */
.dd-reader-tools { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.1rem; }
.dd-tool {
  display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--dd-line); background: #fff; color: var(--dd-ink);
  border-radius: 999px; padding: .38rem .85rem; font-size: .8rem; font-weight: 600; transition: all .15s ease;
}
.dd-tool:hover { border-color: var(--dd-orange); color: var(--dd-orange-d); }
.dd-tool.on { background: #fdecec; border-color: #f3b6b6; color: #d63a3a; }
.dd-tool.on i { font-weight: 700; }

/* ==========================================================================
   SEARCH + LIBRARY
   ========================================================================== */
.dd-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.dd-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px;
  background: rgba(var(--rgb), .1); color: var(--c); font-weight: 700; font-size: .88rem; text-decoration: none !important;
  border: 1px solid rgba(var(--rgb), .2); transition: all .15s ease;
}
.dd-chip:hover { background: var(--c); color: #fff; transform: translateY(-2px); }

.dd-result-group { margin-bottom: 2.2rem; }
.dd-result-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.dd-result-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.dd-result-head h2 { font-family: var(--dd-serif); font-weight: 800; font-size: 1.2rem; color: var(--dd-maroon); margin: 0; }
.dd-result-head h2 small { font-family: 'Poppins', sans-serif; font-size: .75rem; font-weight: 500; color: var(--dd-muted); margin-left: .35rem; }
.dd-result-list { display: grid; grid-template-columns: 1fr; gap: .7rem; }
@media (min-width: 768px) { .dd-result-list { grid-template-columns: 1fr 1fr; } }
.dd-result {
  position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; background: #fff;
  border: 1px solid var(--dd-line); border-left: 4px solid var(--c, var(--dd-orange)); border-radius: 12px;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease;
}
.dd-result:hover { transform: translateX(3px); box-shadow: var(--dd-card-shadow-h); }
.dd-result-title { font-weight: 700; color: var(--dd-ink); line-height: 1.4; }
.dd-result-text { color: var(--dd-muted); font-size: .84rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd-result-meta { font-size: .72rem; color: var(--dd-muted); font-weight: 600; }
.dd-lib-remove { position: absolute; top: .45rem; right: .45rem; border: 0; background: transparent; color: var(--dd-muted); width: 30px; height: 30px; border-radius: 50%; }
.dd-lib-remove:hover { background: #fdecec; color: #d63a3a; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.dd-footer2 { position: relative; margin-top: 2.5rem; padding: 3rem 0 1.2rem; background: linear-gradient(180deg, #4a1219 0%, #2f0c10 100%); color: #e9d9c3; overflow: hidden; }
.dd-footer2::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern-mandala.svg') right -40px top / 220px repeat-y; opacity: .1; pointer-events: none; }
.dd-footer2 .container { position: relative; }
.dd-footer2 h6 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 1rem; }
.dd-footer2-links { display: flex; flex-direction: column; gap: .5rem; }
.dd-footer2-links.two-col { display: block; columns: 2; column-gap: 1.2rem; }
.dd-footer2-links.two-col a { display: block; margin-bottom: .5rem; break-inside: avoid; }
.dd-footer2-links a { color: #f4e3c1; text-decoration: none; font-size: .9rem; }
.dd-footer2-links a:hover { color: #fff; text-decoration: underline; }
.dd-footer2-bottom { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #cbb99a; text-align: center; }

/* ---------- motion + print ---------- */
@media (prefers-reduced-motion: reduce) { .dd-public *, .dd-public *::before, .dd-public *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media print {
  .dd-hdr, .dd-footer2, .dd-bottomnav, .dd-totop, .dd-reader-tools, .dd-breadcrumb-bar, .dd-side-card, .dd-read-tags .dd-read-chip.soft, .btn { display: none !important; }
  .dd-public { background: #fff; padding: 0 !important; }
  .dd-reading-panel { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
}
