:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --ink: #24201c;
  --muted: #6f6257;
  --saffron: #d86813;
  --saffron-dark: #9f3f13;
  --gold: #d3a21f;
  --maroon: #7d2636;
  --teal: #1f766e;
  --line: #ecd9bd;
  --shadow: 0 18px 50px rgba(76, 42, 17, 0.12);
}

.jap-counter-page {
  background: linear-gradient(180deg, #fffdf7 0%, #fff5e6 100%);
}

.jap-counter-section {
  padding: 64px 0 84px;
}

.jap-counter-shell {
  display: grid;
  grid-template-columns: minmax(280px, 620px);
  justify-content: center;
  gap: 24px;
  max-width: 880px;
  align-items: center;
}

.jap-counter-intro,
.jap-counter-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.jap-counter-intro {
  padding: 28px;
}

.jap-counter-intro h1 {
  margin: 8px 0 12px;
  color: var(--saffron-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.05;
}

.jap-counter-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.jap-counter-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.jap-counter-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.jap-counter-topline h2 {
  margin: 0 0 4px;
  color: var(--maroon);
  font-size: 1.2rem;
}

.jap-counter-topline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.jap-counter-rounds {
  flex: 0 0 auto;
  border: 1px solid rgba(216, 104, 19, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff6e8;
  color: var(--saffron-dark);
  font-weight: 800;
  font-size: 0.86rem;
}

.jap-mantra-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.jap-mantra-field input,
.jap-counter-controls input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--ink);
  outline: none;
}

.jap-mantra-field input {
  min-height: 44px;
  padding: 10px 12px;
}

.jap-mantra-field input:focus,
.jap-counter-controls input:focus {
  border-color: rgba(216, 104, 19, 0.62);
  box-shadow: 0 0 0 4px rgba(216, 104, 19, 0.13);
}

.jap-count-button {
  display: grid;
  place-items: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 4px solid rgba(216, 104, 19, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(145deg, #f39a2f, #ad4313);
  color: white;
  cursor: pointer;
  box-shadow: 0 22px 48px rgba(137, 53, 15, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jap-count-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 52px rgba(137, 53, 15, 0.32);
}

.jap-count-button:active {
  transform: scale(0.98);
}

.jap-count-button span {
  font-size: clamp(4rem, 12vw, 6.8rem);
  font-weight: 900;
  line-height: 0.86;
}

.jap-count-button small {
  max-width: 75%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jap-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3ddbc;
}

.jap-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  transition: width 0.22s ease;
}

.jap-counter-controls {
  display: grid;
  grid-template-columns: 74px 90px 1fr;
  gap: 10px;
  align-items: end;
}

.jap-counter-controls button {
  min-height: 44px;
  border: 1px solid rgba(216, 104, 19, 0.28);
  border-radius: 8px;
  background: #fff6e8;
  color: var(--saffron-dark);
  cursor: pointer;
  font-weight: 900;
}

.jap-counter-controls button:hover {
  background: #ffe9cb;
}

.jap-counter-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.jap-counter-controls input {
  min-height: 44px;
  padding: 8px 10px;
}

.jap-floating-widget {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 62;
  transform: translateY(-50%);
}

.jap-floating-toggle {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, #f39a2f, #9f3f13);
  color: white;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(76, 42, 17, 0.26);
}

.jap-floating-toggle span {
  max-width: 58px;
  overflow: hidden;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jap-floating-toggle small {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.jap-floating-panel {
  position: absolute;
  top: 50%;
  right: 86px;
  width: min(320px, calc(100vw - 124px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(76, 42, 17, 0.22);
  transform: translateY(-50%);
}

.jap-floating-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.jap-floating-header p,
.jap-floating-header span {
  margin: 0;
}

.jap-floating-header p {
  color: var(--maroon);
  font-weight: 900;
}

.jap-floating-header span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.jap-floating-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff1dc;
  color: var(--saffron-dark);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.jap-count-button-small {
  width: 158px;
  border-width: 3px;
  box-shadow: 0 18px 34px rgba(137, 53, 15, 0.2);
}

.jap-count-button-small span {
  font-size: 3.2rem;
}

.jap-floating-meta {
  align-items: center;
}

.jap-floating-meta label {
  display: grid;
  gap: 4px;
  width: 112px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.jap-floating-meta input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fffaf2;
}

.jap-floating-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.jap-floating-actions button {
  min-height: 40px;
  border: 1px solid rgba(216, 104, 19, 0.28);
  border-radius: 8px;
  background: #fff6e8;
  color: var(--saffron-dark);
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 760px) {
  .jap-counter-section {
    padding: 36px 0 60px;
  }

  .jap-counter-shell {
    grid-template-columns: 1fr;
  }

  .jap-counter-intro,
  .jap-counter-card {
    padding: 20px;
  }

  .jap-counter-controls {
    grid-template-columns: 1fr 1fr;
  }

  .jap-counter-controls label {
    grid-column: 1 / -1;
  }

  .jap-floating-widget {
    top: auto;
    right: 14px;
    bottom: 96px;
    transform: none;
  }

  .jap-floating-toggle {
    width: 62px;
    height: 62px;
  }

  .jap-floating-panel {
    top: auto;
    right: 0;
    bottom: 74px;
    width: min(318px, calc(100vw - 28px));
    transform: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7e8 0%, #ffffff 48%, #fff8df 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(236, 217, 189, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(114, 69, 24, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff0cc;
  color: var(--saffron-dark);
  font-size: 1.8rem;
  font-weight: 800;
}

.brand strong {
  display: block;
  color: var(--saffron-dark);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  color: #4c4139;
  font-weight: 700;
}

.main-nav.always-visible {
  display: flex;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c4139;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.language-switcher select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  padding: 0 30px 0 10px;
}

.google-translate-element,
.goog-te-banner-frame,
.goog-te-gadget,
iframe.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.main-nav a {
  position: relative;
  padding-block: 10px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--saffron);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--saffron-dark);
}

.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--saffron-dark);
}

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(40, 19, 11, 0.84), rgba(40, 19, 11, 0.36)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Varanasi%2C_India%2C_Hindu_religious_ceremony.jpg/1280px-Varanasi%2C_India%2C_Hindu_religious_ceremony.jpg")
      center/cover;
}

.inner-page .hero {
  background-image: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.95));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 96px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe4a3;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.8rem, 11vw, 8.4rem);
  line-height: 0.92;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #ffedca;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--saffron);
  color: white;
  box-shadow: 0 14px 35px rgba(216, 104, 19, 0.28);
}

.button.primary:hover {
  background: var(--saffron-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.92);
  color: var(--saffron-dark);
}

.finder-section {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.inner-page .finder-section {
  margin-top: 0;
  padding-top: 22px;
}

.finder {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 280px);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-box {
  position: relative;
  display: block;
}

.field,
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.field input:focus,
.field select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(216, 104, 19, 0.13);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 12;
  display: none;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 54px rgba(76, 42, 17, 0.18);
}

.search-suggestions.open {
  display: block;
}

.search-results {
  display: grid;
  border-top: 1px solid #f3e5d1;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid #f3e5d1;
  text-transform: none;
  letter-spacing: 0;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: #fff6e6;
  outline: none;
}

.suggestion-item strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.suggestion-item span {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
}

.alphabet-button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--saffron-dark);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.alphabet-button:hover,
.alphabet-button:focus-visible,
.alphabet-button.active {
  border-color: var(--saffron);
  background: var(--saffron);
  color: white;
  transform: translateY(-1px);
}

.section {
  padding: clamp(64px, 9vw, 108px) 0;
}

.section.compact-section {
  padding-top: clamp(34px, 5vw, 58px);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2,
.contact-layout h2 {
  margin: 0;
  color: var(--saffron-dark);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.contact-layout p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile,
.card,
.pooja-card,
.feature-item,
.daily-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(76, 42, 17, 0.08);
}

.tile {
  min-height: 148px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 22px;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tile:hover,
.card:hover,
.pooja-card:hover,
.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 104, 19, 0.45);
  box-shadow: 0 20px 44px rgba(76, 42, 17, 0.14);
}

.tile-icon,
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff1ce;
  color: var(--saffron-dark);
  font-size: 1.7rem;
  font-weight: 900;
}

.tile h2,
.tile h3,
.pooja-card h3 {
  margin: 0;
  color: var(--saffron-dark);
  font-size: 1.1rem;
}

.category-tile-summary {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pooja-card p {
  margin: 0;
  color: var(--muted);
}

.category-link-card {
  color: inherit;
}

.category-card-action {
  margin: 0;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-band {
  background: linear-gradient(90deg, #fff1d1, #f4fbf7);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.card-media {
  min-height: 180px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(216, 104, 19, 0.22), rgba(31, 118, 110, 0.18)),
    var(--image, linear-gradient(135deg, #c66d24, #1f766e)) center/cover;
  color: white;
  font-size: 3rem;
  font-weight: 900;
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--saffron-dark);
  font-size: 1.35rem;
  line-height: 1.2;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.text-link {
  color: var(--teal);
  font-weight: 900;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.daily-panel {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  padding: 22px;
}

.daily-panel span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-panel strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

.panchang-clock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.panchang-clock-card span,
.panchang-detail-row span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panchang-clock-card strong {
  display: block;
  margin-top: 4px;
  color: var(--saffron-dark);
  font-size: 1.25rem;
}

.panchang-clock-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panchang-clock-options button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 104, 19, 0.3);
  border-radius: 8px;
  background: white;
  color: var(--saffron-dark);
  font-weight: 900;
}

.panchang-clock-options button.is-active {
  background: var(--saffron-dark);
  color: white;
}

.panchang-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.panchang-detail-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.panchang-detail-row strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.45;
}

.panchang-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(35, 21, 12, 0.42);
}

.panchang-popup[hidden] {
  display: none;
}

.panchang-popup-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(216, 104, 19, 0.28);
  border-radius: 8px;
  background: white;
  box-shadow: 0 28px 80px rgba(35, 21, 12, 0.28);
}

.panchang-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--saffron-dark);
  font-size: 1.3rem;
  font-weight: 900;
}

.panchang-popup-card h2 {
  margin: 0;
  padding-right: 36px;
  color: var(--saffron-dark);
}

.panchang-popup-date {
  margin: 6px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.panchang-popup-clock {
  margin-bottom: 14px;
  padding: 14px;
}

.panchang-popup-table {
  display: grid;
  gap: 8px;
}

.panchang-popup-table div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.panchang-popup-table span {
  color: var(--muted);
  font-weight: 900;
}

.panchang-popup-table strong {
  color: var(--ink);
  line-height: 1.35;
}

.panchang-popup-link {
  width: 100%;
  margin-top: 14px;
}

.festival-calendar h3 {
  margin: 34px 0 14px;
  color: var(--saffron-dark);
  font-size: 1.35rem;
}

.festival-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.4fr);
  gap: 14px;
  margin: 22px 0 8px;
}

.festival-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.festival-toolbar input,
.festival-toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.festival-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.festival-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: inherit;
}

.festival-row:first-child {
  border-top: 0;
}

.festival-row:not(.festival-head):hover {
  background: #fff7ed;
}

.festival-head {
  background: #fff1ce;
  color: var(--saffron-dark);
  font-weight: 900;
}

.festival-row time {
  color: var(--muted);
  font-weight: 900;
}

.festival-row time,
.festival-name {
  display: grid;
  gap: 3px;
}

.festival-row time small,
.festival-name small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.festival-row strong {
  color: var(--ink);
}

.accent-saffron {
  border-top: 5px solid var(--saffron);
}

.accent-teal {
  border-top: 5px solid var(--teal);
}

.accent-maroon {
  border-top: 5px solid var(--maroon);
}

.accent-gold {
  border-top: 5px solid var(--gold);
}

.muted-section {
  background: #fff4e2;
}

.pooja-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.pooja-card {
  min-height: 144px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.media-band {
  background: linear-gradient(90deg, #f7ead7, #edf8f6);
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(320px, 1.16fr);
  gap: 32px;
  align-items: center;
}

.playlist {
  display: grid;
  gap: 12px;
}

.playlist button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.playlist button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.video-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background:
    linear-gradient(135deg, rgba(53, 25, 17, 0.88), rgba(31, 118, 110, 0.72)),
    #351911;
  color: white;
  cursor: pointer;
}

.video-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--saffron);
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.aarti-video-empty {
  gap: 10px;
  cursor: default;
}

.aarti-video-empty small {
  color: #fff4dc;
  font-weight: 900;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.feature-item span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf6f4;
  color: var(--teal);
  font-weight: 900;
}

.feature-item h3 {
  margin: 0;
  color: var(--saffron-dark);
  font-size: 1.15rem;
}

.habit-section {
  background: linear-gradient(90deg, #fff7e8, #f4fbf7);
}

.habit-counter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto 22px;
  border: 1px solid rgba(216, 104, 19, 0.24);
  border-radius: 8px;
  padding: 18px 20px;
  background: white;
  box-shadow: 0 14px 36px rgba(76, 42, 17, 0.08);
  text-align: center;
  overflow-x: auto;
}

.habit-counter > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff1ce;
  color: var(--saffron-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.habit-counter strong {
  color: var(--saffron-dark);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  white-space: nowrap;
}

.habit-counter [data-hanuman-devotees] {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.habit-counter .text-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.badge-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(76, 42, 17, 0.08);
}

.badge-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf6f4;
  color: var(--teal);
  font-weight: 900;
}

.badge-card h3 {
  margin: 0;
  color: var(--saffron-dark);
  font-size: 1.08rem;
}

.badge-card p {
  margin: 0;
  color: var(--muted);
}

.badge-card button,
.generator-form button {
  justify-self: start;
}

.badge-card button {
  min-height: 42px;
  border: 1px solid rgba(31, 118, 110, 0.26);
  border-radius: 8px;
  padding: 9px 14px;
  background: #eef9f6;
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}

.platform-section .card-icon {
  width: auto;
  min-width: 48px;
  padding: 0 10px;
}

.compact-daily-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 28px;
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.generator-form,
.generator-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(76, 42, 17, 0.08);
}

.generator-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.generator-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generator-form input,
.generator-form select,
.generator-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
}

.generator-form textarea {
  min-height: 110px;
  resize: vertical;
}

.generator-preview {
  overflow: hidden;
  padding: 14px;
}

.generator-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.home-visitor-strip {
  border-top: 1px solid var(--line);
  background: #fff6e8;
  padding: 18px 0;
}

.home-visitor-strip p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.home-visitor-strip span {
  color: var(--saffron-dark);
  font-size: 1.25rem;
}

.home-visitor-strip strong {
  color: var(--saffron-dark);
  font-size: 1.15rem;
}

.contact-section {
  background: linear-gradient(180deg, transparent 0%, #fff3dc 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
  gap: 34px;
  align-items: start;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.contact-form textarea {
  min-height: 144px;
  resize: vertical;
}

.site-footer {
  background: #351911;
  color: #ffe7bf;
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr);
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: #fff4dc;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: #f2cfa2;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 231, 191, 0.28);
  border-radius: 8px;
  color: #fff4dc;
  font-weight: 900;
}

.footer-note {
  margin-top: 16px !important;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.photo-credit {
  color: #cda97d !important;
  font-size: 0.78rem;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 231, 191, 0.18);
  text-align: center;
}

.inner-page {
  background: #fffaf0;
}

.inner-hero {
  padding: clamp(72px, 10vw, 132px) 0;
  background: linear-gradient(135deg, #fff7e8 0%, #fffdf8 56%, #f4fbf7 100%);
  color: var(--ink);
}

.devotional-hero {
  border-bottom: 1px solid rgba(216, 104, 19, 0.14);
}

.aarti-collection-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(44, 17, 6, 0.88) 0%, rgba(120, 48, 10, 0.68) 48%, rgba(120, 48, 10, 0.22) 100%),
    url("/images/aarti-banner.webp") center / cover no-repeat;
  color: #fff8ea;
}

.aarti-collection-hero .breadcrumbs,
.aarti-collection-hero .breadcrumbs a,
.aarti-collection-hero .eyebrow,
.aarti-collection-hero h1 {
  color: inherit;
}

.aarti-collection-hero p:not(.eyebrow) {
  color: #ffe9bd;
}

.aarti-collection-hero .content-count {
  border-color: rgba(255, 232, 190, 0.34);
  background: rgba(255, 248, 234, 0.9);
}

.inner-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.96;
}

.inner-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.content-count {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 104, 19, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--saffron-dark);
  box-shadow: 0 10px 24px rgba(76, 42, 17, 0.08);
}

.content-count span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff1ce;
  font-weight: 900;
}

.content-count strong {
  font-size: 0.98rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 800;
}

.chalisa-hero {
  background: linear-gradient(135deg, #fff1d1 0%, #fffdf8 54%, #edf8f6 100%);
}

.hanuman-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(53, 25, 17, 0.9) 0%, rgba(91, 45, 16, 0.64) 42%, rgba(91, 45, 16, 0.12) 72%, rgba(91, 45, 16, 0.02) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/c/c6/Hanuman_statue_with_hanuman_chalisa_.jpg/960px-Hanuman_statue_with_hanuman_chalisa_.jpg") right 58% / cover no-repeat;
  color: #fff9ed;
}

.hanuman-hero .eyebrow,
.hanuman-hero h1,
.hanuman-hero p,
.hanuman-hero a {
  color: inherit;
}

.hanuman-hero p:not(.eyebrow) {
  color: #ffe8be;
}

.hero-credit {
  font-size: 0.78rem !important;
  opacity: 0.78;
}

.hero-credit a {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inner-page .content-grid,
.inner-page .chalisa-grid,
.inner-page .pooja-grid,
.inner-page .category-topic-grid,
.inner-page .category-section-list,
.ram-shalaka-grid {
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.ram-shalaka-page {
  min-height: calc(100vh - 80px);
  background: #fffdf8;
}

.ram-shalaka-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  align-items: start;
}

.ram-shalaka-intro,
.ram-shalaka-result,
.ram-shalaka-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(76, 42, 17, 0.08);
}

.ram-shalaka-intro {
  padding: clamp(24px, 4vw, 38px);
  border-top: 4px solid var(--saffron);
  text-align: center;
}

.ram-shalaka-intro h1 {
  margin: 0 0 14px;
  color: #8b3a18;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.ram-shalaka-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
}

.ram-shalaka-mantra {
  display: inline-block;
  margin-top: 10px;
  color: var(--saffron-dark);
  font-weight: 900;
}

.ram-shalaka-card {
  background: transparent;
}

.ram-shalaka-frame {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(4px, 1.5vw, 16px);
  border: 4px solid #d97706;
  border-radius: 8px;
  background: #fdf6e3;
  opacity: 1;
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    box-shadow 500ms ease;
}

.ram-shalaka-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: inset 0 0 24px rgba(216, 104, 19, 0.12);
}

.ram-frame-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.ram-frame-corner-tl {
  top: -4px;
  left: -4px;
  border-top: 4px solid #d4621a;
  border-left: 4px solid #d4621a;
}

.ram-frame-corner-tr {
  top: -4px;
  right: -4px;
  border-top: 4px solid #d4621a;
  border-right: 4px solid #d4621a;
}

.ram-frame-corner-bl {
  bottom: -4px;
  left: -4px;
  border-bottom: 4px solid #d4621a;
  border-left: 4px solid #d4621a;
}

.ram-frame-corner-br {
  right: -4px;
  bottom: -4px;
  border-right: 4px solid #d4621a;
  border-bottom: 4px solid #d4621a;
}

.ram-shalaka-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  grid-template-rows: repeat(15, minmax(0, 1fr));
  gap: 2px;
  aspect-ratio: 1;
  border: 1px solid #fdba74;
  background: #fed7aa;
  transition:
    box-shadow 420ms ease,
    transform 420ms ease;
}

.ram-shalaka-grid.is-awake {
  box-shadow: 0 0 0 4px rgba(216, 104, 19, 0.1), 0 16px 38px rgba(216, 104, 19, 0.18);
  animation: ramBoardGlow 680ms ease both;
}

.ram-shalaka-cell {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #fffbf2;
  color: #5d1808;
  font: 900 0.92rem/1.1 "Noto Sans Devanagari", "Mukta", system-ui, sans-serif;
  cursor: pointer;
  animation: ramCellEnter 420ms ease both;
  animation-delay: calc(var(--cell-order) * 1ms);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ram-shalaka-cell:hover,
.ram-shalaka-cell:focus-visible {
  background: #ffedd5;
  color: var(--saffron-dark);
  outline: 2px solid rgba(216, 104, 19, 0.35);
  outline-offset: -2px;
}

.ram-shalaka-cell.is-selected {
  background: var(--saffron);
  color: white;
  transform: scale(1.05);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74), 0 0 18px rgba(216, 104, 19, 0.45);
}

.ram-shalaka-cell.is-animating {
  animation: ramCellSelect 700ms ease both;
}

.ram-shalaka-result {
  max-width: 760px;
  width: 100%;
  margin: 8px auto 0;
  padding: 24px;
  opacity: 0.78;
  transform: translateY(10px);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    box-shadow 360ms ease;
}

.ram-shalaka-result.is-visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 18px 48px rgba(76, 42, 17, 0.14);
}

.ram-result-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff1ce;
  color: var(--saffron-dark);
  font-weight: 900;
}

.ram-shalaka-result h2 {
  margin: 0 0 12px;
  color: var(--saffron-dark);
  font-size: 1.45rem;
  line-height: 1.45;
}

.ram-shalaka-result p {
  margin: 0;
  color: var(--muted);
}

.ram-reset {
  width: 100%;
  margin-top: 18px;
}

.ram-shalaka-info {
  max-width: 760px;
  width: 100%;
  margin: 12px auto 0;
  padding: clamp(22px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.82);
}

.ram-shalaka-info h2 {
  margin: 0 0 12px;
  color: #8b3a18;
  font-size: 1.45rem;
}

.ram-shalaka-info p {
  margin: 0 0 10px;
  color: var(--muted);
}

.ram-shalaka-note {
  font-size: 0.92rem;
  font-style: italic;
}

@keyframes ramCellEnter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ramCellSelect {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.22);
  }

  100% {
    transform: scale(1.05);
  }
}

@keyframes ramBoardGlow {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.01);
  }

  100% {
    transform: scale(1);
  }
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chalisa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chalisa-card {
  min-height: 246px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(76, 42, 17, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.chalisa-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 104, 19, 0.45);
  box-shadow: 0 20px 44px rgba(76, 42, 17, 0.14);
}

.chalisa-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff1ce;
  color: var(--saffron-dark);
  font-size: 1.7rem;
  font-weight: 900;
}

.chalisa-card h2 {
  margin: 0;
  color: var(--saffron-dark);
  font-size: 1.35rem;
}

.chalisa-card p {
  margin: 0;
  color: var(--muted);
}

.aarti-count-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(216, 104, 19, 0.24);
  border-radius: 8px;
  background: #fff6e8;
}

.aarti-count-banner span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--saffron);
  color: white;
  font-size: 1.6rem;
  font-weight: 900;
}

.aarti-count-banner strong {
  color: var(--saffron-dark);
  font-size: 1.2rem;
}

.aarti-count-banner p {
  margin: 0;
  color: var(--muted);
}

.aarti-section-grid {
  margin-top: 18px;
}

.chalisa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.chalisa-article,
.related-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(76, 42, 17, 0.08);
}

.chalisa-article {
  padding: clamp(22px, 4vw, 38px);
}

.chalisa-article h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: var(--saffron-dark);
}

.chalisa-article h2:not(:first-child) {
  margin-top: 34px;
}

.lyrics-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.chalisa-music-player {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid rgba(176, 88, 30, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(76, 42, 17, 0.08);
}

.chalisa-music-content {
  display: grid;
  gap: 4px;
}

.chalisa-music-content strong {
  color: var(--saffron-dark);
  font-size: 1rem;
}

.chalisa-music-content span {
  color: var(--muted);
  font-size: 0.88rem;
}

.chalisa-audio-shell audio {
  width: 100%;
  display: block;
}

.chalisa-music-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chalisa-music-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  font-weight: 800;
  padding: 0 14px;
  text-decoration: none;
}

.chalisa-music-button.primary {
  border-color: var(--saffron);
  background: var(--saffron);
  color: white;
}

@media (max-width: 640px) {
  .chalisa-music-player,
  .chalisa-audio-shell,
  .chalisa-music-controls,
  .chalisa-music-button {
    width: 100%;
  }

  .chalisa-music-player {
    grid-template-columns: 1fr;
  }

  .chalisa-music-controls {
    justify-content: stretch;
  }
}

.lyrics-box p {
  text-align: center;
}

.lyrics-box .has-text-align-center {
  text-align: center;
}

.pandit-chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  font-family: inherit;
}

.pandit-toggle {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--saffron-dark);
  color: #fff8e8;
  padding: 10px 18px 10px 12px;
  box-shadow: 0 18px 36px rgba(76, 42, 17, 0.28);
  cursor: pointer;
}

.pandit-toggle span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1ce;
  color: var(--saffron-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.pandit-panel {
  position: fixed;
  right: 20px;
  bottom: 86px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 108px));
  overflow: hidden;
  border: 1px solid rgba(216, 104, 19, 0.22);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 60px rgba(53, 25, 17, 0.24);
}

.pandit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #351911;
  color: #fff4dc;
}

.pandit-header p,
.pandit-header span {
  margin: 0;
}

.pandit-header p {
  font-weight: 900;
}

.pandit-header span {
  display: block;
  color: #f2cfa2;
  font-size: 0.82rem;
}

.pandit-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 244, 220, 0.3);
  border-radius: 8px;
  background: transparent;
  color: #fff4dc;
  font-size: 1.25rem;
  cursor: pointer;
}

.pandit-messages {
  max-height: min(310px, calc(100vh - 330px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

@media (max-width: 760px) {
  .pandit-panel {
    right: 14px;
    bottom: 78px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
  }

  .pandit-messages {
    max-height: calc(100vh - 340px);
  }
}

.pandit-message {
  display: flex;
}

.pandit-message.user {
  justify-content: flex-end;
}

.pandit-message p {
  max-width: 88%;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  line-height: 1.45;
}

.pandit-message.bot p {
  background: #fff1ce;
}

.pandit-message.user p {
  background: var(--saffron);
  color: white;
}

.pandit-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.pandit-quick button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--saffron-dark);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.pandit-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

.pandit-form input,
.pandit-form button {
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
}

.pandit-form input {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.pandit-form button {
  border: 0;
  background: var(--saffron-dark);
  color: white;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.devotional-list {
  padding-left: 22px;
  color: var(--muted);
}

.devotional-list li + li {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px 16px;
}

.faq-list summary {
  color: var(--saffron-dark);
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.related-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.related-links {
  display: grid;
  gap: 10px;
}

.related-links a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 900;
}

.compact-footer {
  padding-top: 24px;
}

.category-section-list {
  display: grid;
  gap: 22px;
}

.category-subsection {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(280px, 1.28fr);
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(76, 42, 17, 0.08);
}

.category-subsection h2 {
  margin: 0;
  color: var(--saffron-dark);
}

.category-subsection p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.category-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.topic-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.topic-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff1ce;
  color: var(--saffron-dark);
  font-weight: 900;
}

.topic-card h3,
.topic-card p {
  margin: 0;
}

.topic-card h3 {
  color: var(--saffron-dark);
}

.topic-card p {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .language-switcher {
    margin-left: auto;
  }

  .tile-grid,
  .daily-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .feature-list,
  .pooja-grid,
  .chalisa-grid,
  .badge-grid,
  .generator-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ram-shalaka-shell {
    grid-template-columns: 1fr;
  }

  .chalisa-layout {
    grid-template-columns: 1fr;
  }

  .category-subsection,
  .category-topic-grid {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }

  .finder,
  .media-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: white;
  }

  .main-nav.always-visible {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 4px;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-end;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 92px 0 76px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 20vw, 5.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .ram-shalaka-cell {
    font-size: 0.62rem;
  }

  .ram-shalaka-grid {
    gap: 1px;
  }

  .tile-grid,
  .content-grid,
  .daily-grid,
  .pooja-grid,
  .feature-list,
  .badge-grid,
  .compact-daily-grid,
  .panchang-detail-list,
  .generator-layout,
  .chalisa-grid,
  .footer-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .brand small {
    display: none;
  }

  .panchang-clock-card {
    align-items: stretch;
    flex-direction: column;
  }

  .panchang-clock-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panchang-clock-options button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.82rem;
  }

  .panchang-popup-table div {
    grid-template-columns: 1fr;
  }

  .festival-toolbar,
  .festival-row {
    grid-template-columns: 1fr;
  }
}
