/* Gita Songs — interactive hub & detail */

.gt-page {
  --gt-accent: #9a3412;
  --gt-accent-soft: rgba(154, 52, 18, 0.1);
  --gt-gold: #b45309;
  --gt-deep: #7c2d12;
  --gt-ink: #1c1410;
  --gt-muted: #5c534c;
  --gt-line: rgba(28, 20, 16, 0.12);
  --gt-card: rgba(255, 250, 245, 0.92);
  --gt-display: Fraunces, Georgia, serif;
  --gt-body: Outfit, system-ui, sans-serif;
  --gt-deva: "Noto Serif Devanagari", "Noto Sans Devanagari", serif;
  font-family: var(--gt-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(180, 83, 9, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 8%, rgba(154, 52, 18, 0.1), transparent 50%),
    linear-gradient(180deg, #fff8f1 0%, #faf6f0 40%, #f5efe6 100%);
}

.gt-wrap {
  max-width: 58rem;
}

.gt-page[data-lang="hi"] h1,
.gt-page[data-lang="hi"] h2,
.gt-page[data-lang="hi"] .gt-card strong,
.gt-page[data-lang="hi"] .gt-chapter-titles strong {
  font-family: var(--gt-deva);
}

.gt-hero-mark {
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto 1rem;
  position: relative;
  display: grid;
  place-items: center;
}

.gt-chakra {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(154, 52, 18, 0.35);
  background:
    conic-gradient(from 20deg, rgba(180, 83, 9, 0.25), transparent 35%, rgba(154, 52, 18, 0.18), transparent 70%);
  animation: gt-spin 22s linear infinite;
}

.gt-chakra-core {
  position: relative;
  font-family: var(--gt-deva);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gt-deep);
}

@keyframes gt-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .gt-chakra { animation: none; }
}

/* Bhagavad Gita: the ratha follows the active chapter but never replaces navigation. */
.gt-ratha-diagram {
  --om-diagram-accent: #b7661f;
  --om-diagram-deep: #653519;
  overflow: hidden;
}

.gt-ratha-journey {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 249, 225, .96) 0 22%, transparent 22.2%),
    repeating-conic-gradient(from -10deg, rgba(181, 111, 35, .08) 0 1deg, transparent 1deg 20deg);
  border-radius: 50%;
}

.gt-ratha-journey .om-journey__center {
  align-content: center;
  gap: .25rem;
}

.gt-ratha-journey .om-journey__center > span {
  color: #b7661f;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.gt-ratha-journey .om-journey__center > small {
  color: #745f50;
  font-family: Outfit, sans-serif;
  font-size: .7rem;
}

.gt-ratha {
  color: #8d491d;
  filter: drop-shadow(0 .25rem .25rem rgba(72, 36, 14, .2));
}

.gt-ratha__car {
  position: absolute;
  right: 0;
  bottom: .42rem;
  width: 2.1rem;
  height: 1.15rem;
  border-radius: .25rem .55rem .2rem .2rem;
  background: linear-gradient(135deg, #e7a83e, #a84c19);
}

.gt-ratha__car::after {
  position: absolute;
  right: -.18rem;
  bottom: .1rem;
  width: .35rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #8d491d;
  content: "";
  transform: rotate(12deg);
}

.gt-ratha__krishna,
.gt-ratha__arjuna {
  position: absolute;
  bottom: .85rem;
  width: .42rem;
  height: .75rem;
  border-radius: 50% 50% .18rem .18rem;
  background: #1f7187;
}

.gt-ratha__krishna {
  right: .45rem;
}

.gt-ratha__krishna::before {
  position: absolute;
  top: -.28rem;
  left: .12rem;
  width: .18rem;
  height: .35rem;
  border-left: 1px solid #126079;
  border-radius: 50%;
  content: "";
  transform: rotate(22deg);
}

.gt-ratha__arjuna {
  right: 1.15rem;
  background: #9d4120;
}

.gt-ratha__wheel {
  position: absolute;
  right: .2rem;
  bottom: 0;
  width: .72rem;
  aspect-ratio: 1;
  border: 2px solid #723916;
  border-radius: 50%;
  background: repeating-conic-gradient(#723916 0 4deg, transparent 4deg 42deg);
}

.gt-ratha__wheel--two {
  right: 1.45rem;
}

.gt-ratha__horse {
  position: absolute;
  bottom: .38rem;
  left: .1rem;
  width: 1.1rem;
  height: .7rem;
  border-radius: 55% 45% 35% 45%;
  background: #f7eee0;
  box-shadow: inset -.2rem -.12rem 0 #d5b98f;
}

.gt-ratha__horse::before {
  position: absolute;
  top: -.3rem;
  left: -.15rem;
  width: .42rem;
  height: .55rem;
  border-radius: 60% 60% 35% 45%;
  background: inherit;
  content: "";
  transform: rotate(-22deg);
}

.gt-ratha__horse::after {
  position: absolute;
  right: .08rem;
  bottom: -.38rem;
  width: .08rem;
  height: .5rem;
  background: #b49368;
  box-shadow: -.62rem 0 #b49368;
  content: "";
}

.gt-ratha__horse--two {
  bottom: 1.05rem;
  left: .25rem;
  transform: scale(.84);
}

.gt-ratha__reins {
  position: absolute;
  top: .8rem;
  left: .9rem;
  width: 1.55rem;
  border-top: 1px solid #704322;
  transform: rotate(10deg);
  transform-origin: left;
}

@media (max-width: 699.98px) {
  .gt-ratha-journey {
    border-radius: 1rem;
    background: rgba(255, 249, 225, .75);
  }
}

@media print {
  .gt-ratha-diagram {
    break-inside: auto;
  }
}

.gt-disclaimer {
  margin: 1.35rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(154, 52, 18, 0.25);
  background:
    linear-gradient(145deg, rgba(154, 52, 18, 0.07), rgba(180, 83, 9, 0.08)),
    var(--gt-card);
}

.gt-disclaimer-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gt-accent);
}

.gt-disclaimer p {
  margin: 0;
  line-height: 1.65;
  color: var(--gt-ink);
  font-size: 0.98rem;
}

.gt-disclaimer-foot {
  margin-top: 2rem;
}

.gt-intro {
  margin: 1.25rem 0 0;
  line-height: 1.7;
  color: var(--gt-muted);
  font-size: 1.02rem;
}

.gt-toolbar {
  margin: 1.5rem 0 0.75rem;
  display: grid;
  gap: 0.85rem;
}

.gt-search {
  display: block;
}

.gt-search input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gt-line);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  color: var(--gt-ink);
}

.gt-search input:focus {
  outline: 2px solid rgba(154, 52, 18, 0.35);
  outline-offset: 1px;
}

.gt-search-sm input {
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
}

.gt-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gt-muted);
  letter-spacing: 0.02em;
}

.gt-fam-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gt-fam-tab {
  border: 1px solid var(--gt-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--gt-muted);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gt-fam-tab:hover {
  border-color: rgba(154, 52, 18, 0.35);
  color: var(--gt-ink);
}

.gt-fam-tab.is-active {
  background: var(--gt-accent-soft);
  border-color: rgba(154, 52, 18, 0.45);
  color: var(--gt-deep);
  font-weight: 600;
}

.gt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.gt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gt-line);
  background:
    linear-gradient(160deg, rgba(255, 252, 248, 0.95), rgba(255, 245, 235, 0.88));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gt-card:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 52, 18, 0.4);
  box-shadow: 0 10px 28px rgba(124, 45, 18, 0.08);
}

.gt-card.is-featured {
  border-color: rgba(180, 83, 9, 0.45);
  background:
    linear-gradient(155deg, rgba(255, 247, 237, 0.98), rgba(254, 243, 226, 0.92));
}

.gt-card-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gt-gold);
}

.gt-card-badge-soft {
  color: var(--gt-accent);
  opacity: 0.85;
}

.gt-card-fam {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gt-accent);
}

.gt-card strong {
  font-family: var(--gt-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gt-ink);
}

.gt-card em {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--gt-muted);
}

.gt-card-source {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--gt-muted);
  opacity: 0.9;
  border-top: 1px solid var(--gt-line);
}

.gt-card.is-filtered-out,
.gt-chapter.is-filtered-out {
  display: none;
}

.gt-empty {
  margin: 1.5rem 0;
  text-align: center;
  color: var(--gt-muted);
}

.gt-meta {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gt-line);
  background: var(--gt-card);
}

.gt-meta dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gt-accent);
}

.gt-meta dd {
  margin: 0.2rem 0 0;
  line-height: 1.55;
  color: var(--gt-ink);
}

.gt-panel {
  margin: 1.75rem 0 0;
}

.gt-panel h2 {
  font-family: var(--gt-display);
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
  color: var(--gt-deep);
}

.gt-panel-lede {
  margin: 0 0 0.85rem;
  color: var(--gt-muted);
  line-height: 1.55;
}

.gt-panel > p {
  margin: 0;
  line-height: 1.7;
  color: var(--gt-ink);
}

.gt-note {
  margin-top: 0.85rem !important;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(154, 52, 18, 0.45);
  background: rgba(154, 52, 18, 0.05);
  color: var(--gt-muted) !important;
}

.gt-concept-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.gt-concept-list li {
  line-height: 1.55;
  color: var(--gt-ink);
}

.gt-concept-list li.is-collapsed {
  display: none;
}

.gt-concept-list.is-expanded li.is-collapsed {
  display: list-item;
}

.gt-more-btn {
  margin-top: 0.75rem;
  border: 1px solid var(--gt-line);
  background: transparent;
  color: var(--gt-accent);
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.gt-more-btn:hover {
  border-color: rgba(154, 52, 18, 0.45);
  background: var(--gt-accent-soft);
}

.gt-shloka-stack {
  display: grid;
  gap: 0.55rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.gt-shloka-card {
  text-align: center;
  border: 1px solid var(--gt-line);
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem 1.15rem;
  font: inherit;
  cursor: pointer;
  color: var(--gt-ink);
  width: 100%;
}

.gt-shloka-card .gt-shloka-full {
  display: none;
  margin: 0.55rem auto 0;
  font-family: var(--gt-deva);
  line-height: 1.85;
  font-size: 1.12rem;
  text-align: center;
  white-space: pre-line;
  max-width: 36rem;
  color: var(--gt-deep);
}

.gt-shloka-card .gt-shloka-preview {
  color: var(--gt-muted);
  font-size: 0.95rem;
  text-align: center;
  white-space: pre-line;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.gt-shloka-card.is-open .gt-shloka-preview {
  display: none;
}

.gt-shloka-card.is-open .gt-shloka-full {
  display: block;
}

.gt-chapter-toolbar {
  margin-bottom: 0.75rem;
}

.gt-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.gt-chapter {
  border: 1px solid var(--gt-line);
  background: rgba(255, 255, 255, 0.72);
}

.gt-chapter-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--gt-ink);
}

.gt-chapter-num {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gt-accent-soft);
  color: var(--gt-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.gt-chapter-titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gt-chapter-titles strong {
  font-family: var(--gt-display);
  font-size: 1rem;
}

.gt-chapter-titles em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--gt-muted);
}

.gt-chapter-head i {
  transition: transform 0.2s ease;
  color: var(--gt-muted);
}

.gt-chapter.is-open .gt-chapter-head i {
  transform: rotate(180deg);
}

.gt-chapter-body {
  display: none;
  padding: 0 0.9rem 0.9rem 3.5rem;
}

.gt-chapter.is-open .gt-chapter-body {
  display: block;
}

html:not(.om-diagrams-enhanced) .gt-chapter-body {
  display: block;
}

.gt-chapter-body p {
  margin: 0;
  line-height: 1.6;
  color: var(--gt-muted);
}

.gt-study-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.gt-study-list li {
  line-height: 1.55;
}

.gt-listen-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gt-listen-links a {
  color: var(--gt-accent);
  font-weight: 500;
}

.gt-back {
  margin: 2rem 0 0;
}

.gt-back a {
  color: var(--gt-accent);
  font-weight: 500;
  text-decoration: none;
}

.gt-back a:hover {
  text-decoration: underline;
}

.gt-related {
  margin: 2.25rem 0 1rem;
}

.gt-related h2 {
  font-family: var(--gt-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--gt-deep);
}

.gt-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gt-related-link {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--gt-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--gt-ink);
  text-decoration: none;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gt-related-link:hover {
  border-color: rgba(154, 52, 18, 0.4);
  background: var(--gt-accent-soft);
}

.gt-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.gt-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .gt-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gt-card:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .gt-grid {
    grid-template-columns: 1fr;
  }
  .gt-chapter-body {
    padding-left: 0.9rem;
  }
}
