/* Shared by the Next.js app and standalone scripture readers. */
.common-site-header { position: sticky; top: 0; z-index: 100; display: block; height: auto; min-height: 76px; padding: 0; margin: 0; border: 0; border-bottom: 1px solid #fecdd3; background: #fffdf9; color: #9f1239; font: 650 14px/1.5 Inter, system-ui, sans-serif; letter-spacing: normal; box-sizing: border-box; }
.common-site-header *, .common-site-header *::before, .common-site-header *::after { box-sizing: border-box; }
.common-header-inner { display: flex; align-items: center; gap: 24px; width: min(1240px, calc(100% - 32px)); min-height: 76px; margin: 0 auto; padding: 0; }
.common-site-header a { color: #9f1239; text-decoration: none; letter-spacing: normal; }
.common-site-header a:hover { color: #881337; }
.common-site-header a[aria-current="page"] { color: #881337; text-decoration: underline; text-underline-offset: 5px; }
.common-site-header :focus-visible { outline: 3px solid #d97706; outline-offset: 3px; }
.common-site-header .common-brand { display: flex; align-items: center; width: 150px; flex: 0 0 150px; padding: 0; margin: 0; }
.common-brand img { display: block; width: 100%; height: auto; max-height: 64px; object-fit: contain; }
.common-desktop-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 22px; margin: 0; padding: 0; }
.common-desktop-nav > a { display: block; padding: 12px 0; white-space: nowrap; }
.common-scripture-groups { display: flex; align-items: center; gap: 12px; min-width: 0; }
.common-group-menu > summary { padding: 12px 0; font-size: 12px; }
.common-group-menu[data-active] > summary { color: #881337; }
.common-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.common-history-actions { display: inline-flex; align-items: center; gap: 4px; }
.common-history-button { min-height: 34px; padding: 6px 8px; border: 1px solid #fecdd3; border-radius: 7px; background: #fffdf9; color: #9f1239; font: 700 11px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.common-history-button:hover { background: #fff1f2; }
.common-site-header .common-language-select { width: 100px; min-height: 40px; padding: 8px; border: 1px solid #fecdd3; border-radius: 9px; background: #fffdf9; color: #9f1239; font: inherit; cursor: pointer; }
.common-site-header .common-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 1px solid #fecdd3; border-radius: 9px; font: inherit; white-space: nowrap; cursor: pointer; background: #fffdf9; color: #9f1239; }
.common-site-header .common-donate { background: #9f1239; border-color: #9f1239; color: white; }
.common-site-header .common-join { background: #9f1239; border-color: #9f1239; color: white; }
.common-site-header .common-action:hover { filter: brightness(.94); }
.common-site-header button:disabled { cursor: wait; opacity: .65; }
.common-site-header details { position: relative; display: block; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
.common-site-header summary { list-style: none; display: flex; align-items: center; gap: 5px; min-height: 44px; margin: 0; padding: 8px 0; color: #9f1239; font: inherit; white-space: nowrap; cursor: pointer; }
.common-site-header summary::-webkit-details-marker { display: none; }
.common-scriptures[data-active] > summary { color: #881337; }
.common-site-header .common-dropdown { position: absolute; top: calc(100% + 4px); right: 0; display: grid; gap: 2px; width: 270px; max-height: calc(100dvh - 92px); overflow-y: auto; padding: 10px; margin: 0; border: 1px solid #fecdd3; border-radius: 12px; background: #fffdf9; box-shadow: 0 12px 36px #17264d26; }
.common-scripture-groups > .common-group-menu > .common-dropdown { left: 0; right: auto; }
.common-scripture-groups > .common-group-menu:last-child > .common-dropdown { left: 50%; right: auto; transform: translateX(-50%); }
.common-site-header details:not([open]) > .common-dropdown { display: none; }
.common-dropdown a, .common-dropdown button { display: block; min-height: 44px; padding: 10px 12px; margin: 0; border: 0; border-radius: 6px; background: transparent; color: #9f1239; font: inherit; text-align: left; white-space: normal; cursor: pointer; }
.common-dropdown a:hover, .common-dropdown button:hover { background: #fff1f2; }
.common-auth-links { display: contents; }
.common-menu-label { display: block; margin-top: 6px; padding: 8px 12px 4px; border-top: 1px solid #fecdd3; color: #675947; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.common-site-header .common-mobile-menu { display: none; }
.common-header-error { padding: 8px 16px; margin: 0; color: #9a3434; font-size: 13px; }
@media (max-width: 1100px) {
  .common-site-header, .common-header-inner { min-height: 68px; }
  .common-site-header .common-desktop-nav, .common-site-header .desktop-account { display: none; }
  .common-site-header .common-mobile-menu { display: block; }
  .common-mobile-menu > summary { padding: 8px 12px; border: 1px solid #fecdd3; border-radius: 9px; }
  .common-site-header .common-dropdown { width: min(300px, calc(100vw - 32px)); max-height: calc(100dvh - 84px); }
}
@media (max-width: 480px) {
  .common-header-inner { flex-wrap: wrap; padding-block: 6px; }
  .common-header-inner { gap: 12px; width: calc(100% - 24px); }
  .common-site-header .common-brand { width: 100px; flex-basis: 100px; }
  .common-header-actions { gap: 6px; }
  .common-site-header .common-action { padding-inline: 12px; }
  .common-history-button span { display: none; }
}
@media print { .common-site-header { display: none !important; } }

/* Match the Gita content invocation below the navigation. */
.site-guru-mantra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem .5rem;
  box-sizing: border-box;
  margin: 0;
  padding: 1rem 1.25rem;
  background: #fbf7ee;
  color: #9f1239;
  font-family: "Noto Serif Devanagari", "Kohinoor Devanagari", Georgia, serif;
  font-size: clamp(.82rem, 1.15vw, 1rem);
  font-weight: 500;
  letter-spacing: .018em;
  line-height: 1.7;
  text-align: center;
}
.site-guru-title { flex: 0 0 auto; margin-right: .8rem; color: #9f1239; font-family: Georgia, serif; font-size: clamp(1.7rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.site-guru-mantra-copy { position: absolute; left: 50%; display: flex; align-items: center; gap: .5rem; transform: translateX(-50%); white-space: nowrap; }
.scripture-search-compact { position: relative; flex: 0 0 auto; margin-left: auto; font-family: Inter, system-ui, sans-serif; }
.scripture-search-compact-trigger { display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: .35rem .65rem; border: 1px solid #fecdd3; border-radius: 8px; background: #fffdf9; color: #9f1239; font: 700 .72rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.scripture-search-compact-trigger:hover, .scripture-search-compact:focus-within .scripture-search-compact-trigger { background: #fff1f2; }
.scripture-search-compact-form { position: absolute; top: calc(100% + .35rem); right: 0; z-index: 5; display: none; align-items: center; width: min(300px, 75vw); padding: .3rem; border: 1px solid #fecdd3; border-radius: 9px; background: #fffdf9; box-shadow: 0 10px 24px #17264d26; }
.scripture-search-compact:hover .scripture-search-compact-form, .scripture-search-compact-form.is-open, .scripture-search-compact:focus-within .scripture-search-compact-form { display: flex; }
.scripture-search-compact-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: .5rem; color: #4a2631; background: transparent; font: .78rem/1.2 Inter, system-ui, sans-serif; }
.scripture-search-compact-form > button { min-height: 30px; padding: .35rem .55rem; border: 0; border-radius: 6px; background: #9f1239; color: white; cursor: pointer; }
.scripture-search-compact-form > button:disabled { opacity: .5; cursor: default; }
.scripture-search-compact-results { position: absolute; top: calc(100% + .3rem); left: 0; right: 0; display: grid; overflow: hidden; border: 1px solid #fecdd3; border-radius: 8px; background: #fffdf9; box-shadow: 0 10px 24px #17264d26; }
.scripture-search-compact-results a { padding: .55rem .65rem; color: #9f1239; font: 700 .74rem/1.2 Inter, system-ui, sans-serif; text-decoration: none; }
.scripture-search-compact-results a:hover { background: #fff1f2; }
.site-guru-mantra > span { white-space: nowrap; }
.site-guru-mantra-closing { border-top: 1px solid #fecdd3; }
/* Gita already places these within its introduction and content footer. */
body:has(.gita-hero-invocation) > .site-guru-mantra-opening,
body:has(.site-footer .footer-bottom) > .site-guru-mantra-closing { display: none; }
@media print { .site-guru-mantra { display: none; } }
@media (max-width: 760px) {
  .site-guru-mantra { padding-inline: .75rem; }
  .site-guru-mantra-copy { position: static; order: 3; width: 100%; justify-content: center; transform: none; }
  .site-guru-title { margin-right: auto; }
  .scripture-search-compact { margin-left: .5rem; }
}
.common-copyright { padding: .75rem 1rem; border-top: 1px solid #fecdd3; background: #fff1f2; color: #64748b; font: 600 .68rem/1.4 Inter, system-ui, sans-serif; letter-spacing: .015em; text-align: center; }
