:root {
  --saffron: #d95d1e;
  --saffron-dark: #a8400d;
  --gold: #c88a1e;
  --cream: #fffcf7;
  --card-bg: #ffffff;
  --text-main: #1f1a17;
  --text-muted: #5c534b;
  --border-light: #efe4d6;
  --font-scale: 1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", "Noto Sans Bengali", "Noto Sans Gurmukhi", "Noto Sans Telugu", "Noto Sans Tamil", "Noto Sans Kannada", sans-serif;
  background-color: var(--cream);
  color: var(--text-main);
  line-height: 1.75;
  font-size: calc(16px * var(--font-scale));
}
a { color: var(--saffron-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site-header {
  background: linear-gradient(135deg, #7c2d0b 0%, #b84714 55%, #d97724 100%);
  color: #fff;
  padding: 1.25rem 1rem;
  border-bottom: 4px solid #f5c156;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.om-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff3d6;
  color: #8f3209;
  font-size: 1.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.brand-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; display: block; }
.brand-sub { font-size: 0.82rem; opacity: 0.92; display: block; }
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-toggle-header-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  font-family: inherit;
  flex-shrink: 0;
}
.theme-toggle-header-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffd27d;
  color: #fff;
  transform: translateY(-1px);
}
body.dark-mode .theme-toggle-header-btn {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fef08a;
}
body.dark-mode .theme-toggle-header-btn:hover {
  background: rgba(245, 158, 11, 0.35);
}
nav.lang-bar {
  background: #fff5e6;
  border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 0;
  position: relative;
  width: 100%;
}
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  align-items: center;
  justify-content: center; /* Center on PC / desktop! */
  margin: 0;
  padding: 0;
}
.lang-list li {
  flex-shrink: 0;
}
.lang-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e6d3ba;
  color: #5a2b10;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.lang-list a:hover {
  background: #ffe6c7;
  color: #7c2d0b;
  border-color: #d99147;
  transform: translateY(-1px);
}
.lang-list a.active {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
  box-shadow: 0 2px 6px rgba(217, 93, 30, 0.35);
}
main { padding: 1.75rem 0 3rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 18px rgba(124, 45, 11, 0.05);
}
h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.25;
  color: #6b2406;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: 1.4rem;
  color: #7c2d0b;
  margin: 1.75rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f4e3cc;
}
h3 {
  font-size: 1.12rem;
  color: #592008;
  margin: 1.2rem 0 0.5rem;
}
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border-light);
}
.tldr-box {
  background: #fff8ec;
  border-left: 4px solid var(--saffron);
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  margin: 1rem 0 1.25rem;
}
.tldr-box strong { color: #7c2d0b; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
  padding: 0.75rem;
  background: #faf3e8;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  align-items: center;
}
.btn {
  background: #fff;
  border: 1px solid #d9bfa0;
  color: #5c260b;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn:hover { background: #fff1dc; }
.btn-primary {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}
.btn-primary:hover { background: var(--saffron-dark); }
.stanza-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.35rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.stanza-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--saffron-dark);
  background: #fff1dc;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
.verse-primary {
  font-size: 1.25em;
  font-weight: 700;
  color: #2c1306;
  white-space: pre-line;
  margin-bottom: 0.65rem;
}
.verse-translit {
  font-size: 1.02em;
  color: #4b3d33;
  font-style: italic;
  white-space: pre-line;
  margin-bottom: 0.65rem;
  padding-left: 0.75rem;
  border-left: 2px solid #e6cfa8;
}
.verse-meaning {
  font-size: 0.96em;
  color: #2f2a26;
  background: #fcf9f4;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.info-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.15rem;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
table.data-table th, table.data-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
table.data-table th {
  background: #fff3df;
  color: #6b2406;
  font-weight: 700;
}
details.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 0.75rem;
}
details.faq-item summary {
  font-weight: 700;
  color: #5c2208;
  cursor: pointer;
}
details.faq-item p { margin-top: 0.65rem; color: #36302b; }
footer.site-footer {
  background: #23140c;
  color: #eadbc8;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-grid h4 {
  color: #f7c76e;
  margin-bottom: 0.65rem;
  font-size: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-links a { color: #eadbc8; }
.footer-links a:hover { color: #fff; }
.copyright {
  border-top: 1px solid #3d2618;
  padding-top: 1rem;
  font-size: 0.84rem;
  color: #bfa992;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
/* Dark Mode Support */
body.dark-mode {
  --cream: #140e0a;
  --card-bg: #1e1610;
  --text-main: #f5ebe1;
  --text-muted: #b8a695;
  --border-light: #38281d;
}
body.dark-mode header.site-header {
  background: linear-gradient(135deg, #421603 0%, #662507 55%, #8c3b0d 100%);
  border-bottom: 4px solid #b87d14;
}
body.dark-mode .om-badge {
  background: #331d10;
  color: #ffaa5c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.dark-mode nav.lang-bar {
  background: #1b130d;
  border-bottom-color: #38281d;
}
body.dark-mode nav.lang-bar::after {
  background: linear-gradient(to right, rgba(27, 19, 13, 0), rgba(27, 19, 13, 0.95));
}
body.dark-mode .lang-list a {
  background: #261a12;
  border-color: #443022;
  color: #e5d4c3;
}
body.dark-mode .lang-list a:hover, body.dark-mode .lang-list a.active {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}
body.dark-mode .hero-card,
body.dark-mode .stanza-card,
body.dark-mode .info-box,
body.dark-mode details.faq-item {
  background: var(--card-bg);
  border-color: var(--border-light);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
body.dark-mode h1 { color: #ffa858; }
body.dark-mode h2 { color: #f59e0b; border-bottom-color: #38281d; }
body.dark-mode h3 { color: #fbbf24; }
body.dark-mode .tldr-box {
  background: #251910;
  border-left-color: var(--saffron);
}
body.dark-mode .tldr-box strong { color: #ffa858; }
body.dark-mode .toolbar {
  background: #211710;
  border-color: var(--border-light);
}
body.dark-mode .btn {
  background: #2a1d14;
  border-color: #4a3322;
  color: #eedccb;
}
body.dark-mode .btn:hover { background: #38281c; }
body.dark-mode .btn-primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
body.dark-mode .stanza-num {
  background: #331d10;
  color: #ff9d42;
}
body.dark-mode .verse-primary { color: #fff7ee; }
body.dark-mode .verse-translit { color: #cfbeaf; border-left-color: #6e4b2d; }
body.dark-mode .verse-meaning {
  background: #18110b;
  color: #ded0c3;
}
body.dark-mode table.data-table {
  background: #1e1610;
  border-color: #38281d;
}
body.dark-mode table.data-table th {
  background: #281c13;
  color: #ffa858;
  border-color: #38281d;
}
body.dark-mode table.data-table td {
  border-color: #38281d;
  color: #ded0c3;
}
body.dark-mode details.faq-item p { color: #cfbeaf; }
body.dark-mode details.faq-item summary { color: #ffa858; }

@media (max-width: 768px) {
  header.site-header {
    padding: 0.65rem 0.85rem;
  }
  .header-top {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .theme-toggle-header-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }
  .header-top > div:last-child:not(.header-right) {
    display: none; /* Hide date on mobile to save vertical space */
  }
  .brand {
    gap: 0.55rem;
  }
  .om-badge {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 1.12rem;
    line-height: 1.2;
  }
  .brand-sub {
    font-size: 0.72rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact responsive mobile menu (single-row horizontal scroll) */
  nav.lang-bar {
    padding: 0.4rem 0;
    overflow: hidden;
  }
  nav.lang-bar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, rgba(255, 245, 230, 0), rgba(255, 245, 230, 0.95));
    pointer-events: none;
  }
  nav.lang-bar .container {
    padding: 0 0.5rem;
  }
  .lang-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    gap: 0.35rem;
    padding: 0.1rem 0.25rem 0.2rem;
  }
  .lang-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
  .lang-list a {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }

  /* Compact controls toolbar */
  .toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    margin: 0.85rem 0;
  }
  .toolbar::-webkit-scrollbar {
    display: none;
  }
  .toolbar .btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.32rem 0.55rem;
  }

  /* Mobile content spacing */
  main {
    padding: 0.85rem 0 2rem;
  }
  .hero-card {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
  }
  h1 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }
  .meta-strip {
    gap: 0.4rem 0.75rem;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
  }
  .tldr-box {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    margin: 0.75rem 0 0.85rem;
  }
  .stanza-card {
    padding: 0.95rem;
    border-radius: 10px;
    margin-bottom: 0.85rem;
  }
  .verse-primary {
    font-size: 1.15em;
    line-height: 1.6;
  }
  .verse-translit {
    font-size: 0.95em;
    padding-left: 0.6rem;
  }
  .verse-meaning {
    font-size: 0.9em;
    padding: 0.55rem 0.7rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .aarti-verse-lines {
    font-size: 1.15rem;
    line-height: 1.85;
    text-align: center !important;
  }
  .full-aarti-box {
    padding: 1.6rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .theme-toggle-header-btn .theme-mode-text {
    display: none;
  }
  .theme-toggle-header-btn {
    padding: 0.35rem 0.55rem;
    font-size: 1.05rem;
  }
}

/* Interactive Chanting & E-E-A-T Components */
.jap-counter-widget {
  background: linear-gradient(135deg, #fff7eb 0%, #ffedd5 100%);
  border: 1.5px solid #f5c156;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
body.dark-mode .jap-counter-widget {
  background: linear-gradient(135deg, #2a1a11 0%, #362214 100%);
  border-color: #633818;
}
.counter-display {
  font-size: 1.75rem;
  font-weight: 800;
  color: #a8400d;
  background: #fff;
  border: 2px solid #e6a73c;
  padding: 0.2rem 0.85rem;
  border-radius: 8px;
  min-width: 44px;
  text-align: center;
  display: inline-block;
}
body.dark-mode .counter-display {
  background: #1f140e;
  color: #ffb066;
  border-color: #8f531e;
}
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border-color: #20ba5a;
  font-weight: 700;
}
.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
}
.search-verse-input {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  outline: none;
  background: #fff;
  color: var(--text-main);
  min-width: 200px;
}
body.dark-mode .search-verse-input {
  background: #2a1d14;
  border-color: #4a3322;
  color: #eedccb;
}
.author-badge-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fffdf9;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.1rem;
  margin: 1.5rem 0;
}
body.dark-mode .author-badge-card {
  background: #221811;
  border-color: #3d2a1d;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff3d6;
  color: #8f3209;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 2px solid #f5c156;
}

/* Full Continuous Center-Aligned Aarti Typography */
.full-aarti-box {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 2.5rem 1.75rem;
  margin: 1.75rem auto 2.5rem;
  box-shadow: 0 4px 20px rgba(124, 45, 11, 0.05);
  text-align: center !important;
}
body.dark-mode .full-aarti-box {
  background: var(--card-bg);
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.aarti-heading-banner {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffcc80;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2.25rem;
  text-align: center !important;
}
body.dark-mode .aarti-heading-banner {
  background: linear-gradient(135deg, #2b1a10 0%, #382012 100%);
  border-color: #633614;
}
.aarti-heading-banner h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.35rem;
  color: #8c2a00;
  text-align: center !important;
}
body.dark-mode .aarti-heading-banner h2 {
  color: #ffaa5c;
}
.aarti-verse-center {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed #eed6be;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.aarti-verse-center:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
body.dark-mode .aarti-verse-center {
  border-bottom-color: #3d2a1d;
}
.aarti-verse-lines {
  font-size: 1.35rem;
  line-height: 2.15;
  color: #241004;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: pre-line;
  text-align: center !important;
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
body.dark-mode .aarti-verse-lines {
  color: #fffaf4;
}
.aarti-num-badge {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--saffron-dark);
  background: #fff1dc;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ebd0ad;
}
body.dark-mode .aarti-num-badge {
  background: #382012;
  color: #ffaa5c;
  border-color: #5c351b;
}

/* Meaning Section Styles */
.aarti-meaning-section {
  margin-top: 2.5rem;
}
.meaning-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
body.dark-mode .meaning-card {
  background: var(--card-bg);
  border-color: var(--border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.meaning-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f3e5d3;
  padding-bottom: 0.5rem;
}
body.dark-mode .meaning-card-header {
  border-bottom-color: #38281d;
}
.meaning-stanza-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--saffron-dark);
}
body.dark-mode .meaning-stanza-num {
  color: #ffaa5c;
}
.meaning-content {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #332a24;
}
body.dark-mode .meaning-content {
  color: #e5d4c3;
}
.meaning-regional {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid var(--saffron);
  border-radius: 4px;
  line-height: 1.7;
  font-size: 0.96rem;
  color: var(--text);
}
body.dark-mode .meaning-regional {
  background: rgba(245, 158, 11, 0.12);
  border-left-color: #f59e0b;
  color: #fce7d2;
}
.meaning-english {
  line-height: 1.65;
  color: var(--text);
  opacity: 0.92;
  font-size: 0.95rem;
}
body.dark-mode .meaning-english {
  color: #e2d1c1;
}
.meaning-translit {
  font-style: italic;
  color: #5c4d43;
  margin-bottom: 0.65rem;
  padding-left: 0.75rem;
  border-left: 3px solid #e0c5a3;
  line-height: 1.7;
}
body.dark-mode .meaning-translit {
  color: #cfbeaf;
  border-left-color: #694a2f;
}

@media print {
  header.site-header, nav.lang-bar, .toolbar, footer.site-footer { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .stanza-card, .hero-card { border: none; box-shadow: none; padding: 0.5rem 0; }
}