/* ============================================================
   SPIRILIGIOUS — IMMERSIVE SECTION LAYER
   Additive only. Loaded AFTER style.css + editorial.css.
   Namespace: .sx-*  (does not touch any existing .ed-* rule).
   ============================================================ */

/* ---------- Body & shell ---------- */
.sx-body {
  background:
    radial-gradient(ellipse at 8% 4%, rgba(184,135,50,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 92% 96%, rgba(14,48,32,0.05) 0%, transparent 60%),
    var(--ed-ivory, #f8f1e3);
  color: var(--ed-brown, #3b2f24);
  font-family: var(--ed-sans, "Inter", sans-serif);
  padding-top: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Immersive hero ---------- */
.sx-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 170px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.sx-hero__media { position: absolute; inset: 0; z-index: -3; }
.sx-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.05);
}
.sx-hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(14,48,32,0.74) 0%,
      rgba(14,48,32,0.38) 34%,
      rgba(14,48,32,0.94) 100%),
    radial-gradient(ellipse at 22% 46%,
      rgba(184,135,50,0.24) 0%, transparent 60%),
    radial-gradient(ellipse at 78% 20%,
      rgba(14,48,32,0.42) 0%, transparent 70%);
}
.sx-hero__om {
  position: absolute; top: 2%; right: 3%; z-index: -1;
  font-family: var(--ed-dev, "Tiro Devanagari Hindi", serif);
  font-size: clamp(9rem, 22vw, 22rem);
  color: rgba(214,168,79,0.09);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.sx-hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  color: #fff;
}
.sx-hero__eyebrow {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ed-gold-soft, #d6a84f);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.sx-hero__eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--ed-gold-soft, #d6a84f);
  opacity: 0.75;
  display: inline-block;
}
.sx-hero__sanskrit {
  display: block;
  font-family: var(--ed-dev, "Tiro Devanagari Hindi", serif);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  color: var(--ed-gold-soft, #d6a84f);
  opacity: 0.92;
  letter-spacing: 0.05em;
  margin: 0 0 0.7rem;
}
.sx-hero__title {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 1.2rem;
  color: #fff;
  max-width: 22ch;
  text-wrap: balance;
}
.sx-hero__title em {
  font-style: italic;
  color: var(--ed-gold-soft, #d6a84f);
}
.sx-hero__lede {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.75;
  max-width: 62ch;
  color: rgba(255,255,255,0.9);
  margin: 0 0 2rem;
}
.sx-hero__actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.sx-hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  padding-top: 1rem;
}
.sx-hero__scroll i {
  font-size: 0.7rem;
  animation: sx-bob 2.4s ease-in-out infinite;
}
@keyframes sx-bob {
  0%,100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(5px); opacity: 0.95; }
}

/* ---------- Section head ---------- */
.sx-head { padding: 5rem 0 1.4rem; max-width: 720px; }
.sx-head__eyebrow {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  margin: 0 0 0.7rem;
}
.sx-head__title {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.14;
  color: var(--ed-forest, #0e3020);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.sx-head__intro {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ed-brown-soft, #6b5a47);
  margin: 0;
  max-width: 60ch;
}

/* ---------- Toolbar + count ---------- */
.sx-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.sx-count {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.82rem;
  color: var(--ed-brown-soft, #6b5a47);
  margin: 0 0 1.6rem;
}

/* ---------- Card modifiers (extend .ed-card) ---------- */
.sx-card--portrait .ed-card__media { aspect-ratio: 3 / 4; }
.sx-card--portrait .ed-card__title { font-size: 1.14rem; }
.sx-card--square   .ed-card__media { aspect-ratio: 1 / 1; }
.sx-card--landscape .ed-card__media { aspect-ratio: 16 / 10; }

/* ---------- Chips ---------- */
.sx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.15rem;
}
.sx-chip {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  background: rgba(184,135,50,0.06);
  color: var(--ed-gold, #b88732);
  border-radius: 2px;
  white-space: nowrap;
}
.sx-chip--soft {
  background: rgba(14,48,32,0.05);
  color: var(--ed-forest, #0e3020);
  border-color: rgba(14,48,32,0.14);
}

/* ---------- Detail page shell ---------- */
.sx-detail { padding: 4rem 0 5rem; }
.sx-detail__crumb {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-brown-soft, #6b5a47);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.sx-detail__crumb a { color: inherit; }
.sx-detail__crumb a:hover { color: var(--ed-gold, #b88732); }
.sx-detail__crumb i { font-size: 0.5rem; opacity: 0.55; }
.sx-detail__head { max-width: 860px; margin: 0 auto 2.6rem; }
.sx-detail__cat {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.sx-detail__cat::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--ed-gold, #b88732);
}
.sx-detail__title {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
  color: var(--ed-forest, #0e3020);
  font-weight: 600;
  margin: 0 0 0.6rem;
  overflow-wrap: break-word;
}
.sx-detail__subtitle {
  font-family: var(--ed-dev, "Tiro Devanagari Hindi", serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ed-forest, #0e3020);
  opacity: 0.78;
  margin: 0 0 1.2rem;
}
.sx-detail__lede {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--ed-brown-soft, #6b5a47);
  margin: 0 0 1.4rem;
  max-width: 68ch;
}
.sx-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.8rem;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.8rem;
  color: var(--ed-brown-soft, #6b5a47);
  padding-top: 1.2rem;
  border-top: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
}
.sx-detail__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.sx-detail__meta i { color: var(--ed-gold, #b88732); font-size: 0.72rem; }
.sx-detail__cover {
  max-width: 1080px;
  margin: 0 auto 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(14,48,32,0.09);
  aspect-ratio: 16 / 9;
  background: var(--ed-parchment, #f1e7d2);
}
.sx-detail__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-detail__body {
  max-width: 740px;
  margin: 0 auto;
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--ed-brown, #3b2f24);
}
.sx-detail__body > * + * { margin-top: 1.55rem; }
.sx-detail__body p { margin: 0; text-wrap: pretty; }
.sx-detail__body h2 {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ed-forest, #0e3020);
  margin: 3rem 0 0.3rem;
  position: relative;
}
.sx-detail__body h2::after {
  content: ""; display: block; width: 34px; height: 1.5px;
  background: var(--ed-gold, #b88732);
  margin-top: 0.7rem; opacity: 0.7;
}
.sx-detail__body h3 {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.36rem;
  font-weight: 600;
  color: var(--ed-forest, #0e3020);
  margin: 2.2rem 0 0.2rem;
}
.sx-detail__body ul, .sx-detail__body ol {
  padding-left: 1.5rem;
  margin: 0.4rem 0;
}
.sx-detail__body li { margin-bottom: 0.55rem; line-height: 1.78; }
.sx-detail__body li::marker { color: var(--ed-gold, #b88732); }
.sx-detail__body blockquote {
  margin: 2.6rem 0;
  padding: 0.2rem 0 0.2rem 1.8rem;
  border-left: 3px solid var(--ed-gold, #b88732);
  font-style: italic;
  font-size: 1.32rem;
  color: var(--ed-forest, #0e3020);
}
.sx-detail__body img {
  width: 100%; border-radius: 10px; margin: 2.2rem 0;
  box-shadow: 0 4px 18px rgba(14,48,32,0.06);
}
.sx-detail__body .sx-sanskrit {
  font-family: var(--ed-dev, "Tiro Devanagari Hindi", serif);
  font-size: 1.5rem;
  line-height: 2;
  color: var(--ed-forest, #0e3020);
  text-align: center;
  padding: 2rem 1.6rem;
  background: linear-gradient(180deg, rgba(184,135,50,0.06) 0%, rgba(184,135,50,0.02) 100%);
  border-top: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  border-bottom: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  border-radius: 10px;
  margin: 2.6rem 0;
  white-space: pre-line;
}
.sx-detail__body .sx-sanskrit span.sx-tr {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ed-brown-soft, #6b5a47);
}

/* ---------- Callout boxes ---------- */
.sx-callout {
  border-left: 3px solid var(--ed-gold, #b88732);
  background: rgba(184,135,50,0.05);
  padding: 1.4rem 1.6rem;
  border-radius: 0 8px 8px 0;
  margin: 1.6rem 0;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.95rem;
  line-height: 1.72;
}
.sx-callout--forest {
  border-left-color: var(--ed-forest, #0e3020);
  background: rgba(14,48,32,0.05);
}
.sx-callout__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  margin-bottom: 0.5rem;
}
.sx-callout--forest .sx-callout__label { color: var(--ed-forest, #0e3020); }

/* ---------- Timeline ---------- */
.sx-timeline {
  position: relative;
  padding-left: 1.8rem;
  border-left: 2px solid rgba(184,135,50,0.28);
  margin: 2.4rem 0;
}
.sx-timeline__item {
  position: relative;
  padding: 0 0 1.6rem 0;
}
.sx-timeline__item::before {
  content: "";
  position: absolute;
  left: -2.35rem; top: 0.35rem;
  width: 12px; height: 12px;
  background: var(--ed-gold, #b88732);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(184,135,50,0.4);
}
.sx-timeline__year {
  display: block;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  margin-bottom: 0.2rem;
}
.sx-timeline__text {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ed-brown, #3b2f24);
  margin: 0;
}

/* ---------- Pull quotes ---------- */
.sx-pullquote {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ed-forest, #0e3020);
  text-align: center;
  padding: 2.4rem 1.5rem;
  margin: 3rem auto;
  max-width: 720px;
  position: relative;
  border-top: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  border-bottom: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
}
.sx-pullquote::before {
  content: "“";
  position: absolute;
  top: -0.6rem; left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--ed-gold, #b88732);
  background: var(--ed-ivory, #f8f1e3);
  padding: 0 0.8rem;
  line-height: 1;
}
.sx-pullquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-brown-soft, #6b5a47);
}

/* ---------- Lineage strip ---------- */
.sx-lineage {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.8rem;
  margin: 1.6rem 0;
  scrollbar-width: thin;
}
.sx-lineage__item {
  flex: 0 0 130px;
  text-align: center;
  font-family: var(--ed-sans, "Inter", sans-serif);
}
.sx-lineage__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.5rem;
  border: 2px solid var(--ed-rule, rgba(184,135,50,0.22));
  background: var(--ed-parchment, #f1e7d2);
}
.sx-lineage__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sx-lineage__name { font-size: 0.85rem; font-weight: 600; color: var(--ed-forest, #0e3020); }
.sx-lineage__role { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ed-brown-soft, #6b5a47); }

/* ---------- Aashram card ---------- */
.sx-aashram {
  background: rgba(14,48,32,0.04);
  border: 1px solid rgba(14,48,32,0.14);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.sx-aashram__title {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ed-forest, #0e3020);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sx-aashram__title i { color: var(--ed-gold, #b88732); font-size: 0.9rem; }
.sx-aashram__row {
  display: flex; gap: 0.6rem; font-size: 0.88rem;
  color: var(--ed-brown-soft, #6b5a47); padding: 0.3rem 0;
}
.sx-aashram__row strong { color: var(--ed-brown, #3b2f24); min-width: 92px; }
.sx-aashram a {
  color: var(--ed-gold, #b88732); font-weight: 600; text-decoration: none;
}
.sx-aashram a:hover { text-decoration: underline; }

/* ---------- Gallery + lightbox ---------- */
.sx-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 2rem 0;
}
.sx-gallery__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  background: var(--ed-parchment, #f1e7d2);
  position: relative;
}
.sx-gallery__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.sx-gallery__thumb:hover img { transform: scale(1.06); }

.sx-lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.sx-lightbox.is-open { display: flex; }
.sx-lightbox img {
  max-width: 92vw; max-height: 86vh;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border-radius: 4px;
}
.sx-lightbox__close,
.sx-lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.25s;
  backdrop-filter: blur(6px);
}
.sx-lightbox__close { top: 1.5rem; right: 1.5rem; }
.sx-lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.sx-lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.sx-lightbox__close:hover,
.sx-lightbox__nav:hover { background: rgba(255,255,255,0.2); }

/* ---------- Architecture / Festivals ---------- */
.sx-arch {
  border: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  border-radius: 8px;
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  background: #fff;
}
.sx-arch__label {
  display: block;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  margin-bottom: 0.7rem;
}
.sx-arch p { font-family: var(--ed-serif, "EB Garamond", serif); font-size: 1.05rem; line-height: 1.8; margin: 0; }

.sx-festivals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 1.8rem 0;
}
.sx-festival {
  background: rgba(184,135,50,0.05);
  border: 1px solid rgba(184,135,50,0.14);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.88rem;
  color: var(--ed-brown, #3b2f24);
}

/* ---------- Travel info card (sticky) ---------- */
.sx-travel {
  background: #fff;
  border: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  border-radius: 10px;
  padding: 1.6rem 1.6rem 1.4rem;
  margin: 2rem 0;
  font-family: var(--ed-sans, "Inter", sans-serif);
}
.sx-travel__title {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ed-forest, #0e3020);
  margin: 0 0 1rem;
}
.sx-travel__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(184,135,50,0.1);
  font-size: 0.88rem;
}
.sx-travel__row:last-child { border-bottom: 0; }
.sx-travel__row strong { color: var(--ed-brown, #3b2f24); font-weight: 600; }
.sx-travel__row span { color: var(--ed-brown-soft, #6b5a47); text-align: right; }
.sx-travel__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--ed-forest, #0e3020);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.sx-travel__cta:hover { background: var(--ed-forest-2, #163f2b); }

/* ---------- Bhajan sticky player ---------- */
.sx-player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9500;
  background: rgba(14,48,32,0.98);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
}
.sx-player.is-visible { transform: translateY(0); }
.sx-player__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
}
.sx-player__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ed-gold, #b88732);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.sx-player__btn:hover { transform: scale(1.05); }
.sx-player__info { min-width: 0; }
.sx-player__title {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sx-player__sub {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.sx-player__right {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.78rem;
}
.sx-player__seek {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  min-width: 120px;
}
.sx-player__seek-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ed-gold, #b88732);
  border-radius: 2px;
  width: 0%;
}
.sx-player__time { font-variant-numeric: tabular-nums; opacity: 0.7; }

/* ---------- Waveform visual ---------- */
.sx-wave {
  display: flex; align-items: center; gap: 3px;
  height: 34px; padding: 0 0.4rem;
}
.sx-wave__bar {
  width: 3px;
  background: var(--ed-gold, #b88732);
  border-radius: 2px;
  height: 20%;
  transition: height 0.2s ease;
}
.sx-player.is-playing .sx-wave__bar {
  animation: sx-wave 0.9s ease-in-out infinite;
}
.sx-wave__bar:nth-child(2n) { animation-delay: 0.1s !important; }
.sx-wave__bar:nth-child(3n) { animation-delay: 0.2s !important; }
.sx-wave__bar:nth-child(5n) { animation-delay: 0.3s !important; }
@keyframes sx-wave {
  0%,100% { height: 20%; }
  50%     { height: 90%; }
}

/* ---------- Lyrics / meaning panels ---------- */
.sx-lyrics {
  margin: 2rem 0;
  background: rgba(184,135,50,0.04);
  border-left: 3px solid var(--ed-gold, #b88732);
  border-radius: 0 8px 8px 0;
  padding: 0;
  overflow: hidden;
}
.sx-lyrics__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  user-select: none;
}
.sx-lyrics__head i { transition: transform 0.3s; }
.sx-lyrics.is-open .sx-lyrics__head i { transform: rotate(180deg); }
.sx-lyrics__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.4rem;
  font-family: var(--ed-dev, "Tiro Devanagari Hindi", serif);
  font-size: 1.15rem;
  line-height: 2.1;
  color: var(--ed-brown, #3b2f24);
  white-space: pre-line;
}
.sx-lyrics.is-open .sx-lyrics__content {
  max-height: 4000px;
  padding-bottom: 1.4rem;
}

.sx-meaning {
  background: rgba(14,48,32,0.05);
  border-left: 3px solid var(--ed-forest, #0e3020);
  border-radius: 0 8px 8px 0;
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ed-brown, #3b2f24);
}
.sx-meaning__label {
  display: block;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-forest, #0e3020);
  margin-bottom: 0.6rem;
}

/* ---------- Science dual layout ---------- */
.sx-dual {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 2rem;
  margin: 2rem 0;
}
.sx-dual__divider { background: var(--ed-rule, rgba(184,135,50,0.22)); }
.sx-dual__col { padding: 0.4rem 0; }
.sx-dual__label {
  display: block;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  margin-bottom: 0.8rem;
}
.sx-dual__col--right .sx-dual__label { color: var(--ed-forest, #0e3020); }
.sx-dual__body {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ed-brown, #3b2f24);
}

/* ---------- References ---------- */
.sx-refs {
  margin: 2.4rem 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  font-family: var(--ed-sans, "Inter", sans-serif);
}
.sx-refs__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  margin: 0 0 0.8rem;
}
.sx-refs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sx-refs li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ed-brown-soft, #6b5a47);
}
.sx-refs li::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute; left: 0; top: 0;
  color: var(--ed-gold, #b88732);
  font-weight: 700;
}
.sx-refs ul { counter-reset: item; }

/* ---------- Concept diagram placeholder ---------- */
.sx-diagram {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg,
      rgba(184,135,50,0.06) 0 12px,
      rgba(184,135,50,0.02) 12px 24px),
    var(--ed-parchment, #f1e7d2);
  border: 1px dashed var(--ed-rule, rgba(184,135,50,0.35));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ed-brown-soft, #6b5a47);
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.05rem;
  font-style: italic;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* ---------- Related terms scroller (science) ---------- */
.sx-scroller {
  display: flex; gap: 0.8rem; overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem;
  scrollbar-width: thin;
}
.sx-scroller__item {
  flex: 0 0 220px;
  background: #fff;
  border: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  border-radius: 8px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.sx-scroller__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14,48,32,0.08);
}
.sx-scroller__term {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ed-forest, #0e3020);
  margin: 0 0 0.3rem;
}
.sx-scroller__desc {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ed-brown-soft, #6b5a47);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Share strip ---------- */
.sx-share {
  max-width: 740px;
  margin: 3rem auto 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  border-bottom: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
}
.sx-share__label {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-brown-soft, #6b5a47);
  margin-right: 0.5rem;
}
.sx-share button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ed-rule, rgba(184,135,50,0.22));
  background: #fff;
  color: var(--ed-forest, #0e3020);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.25s;
}
.sx-share button:hover {
  background: var(--ed-forest, #0e3020);
  color: #fff;
  border-color: var(--ed-forest, #0e3020);
  transform: translateY(-2px);
}

/* ---------- Back link ---------- */
.sx-back-wrap { max-width: 740px; margin: 3.5rem auto 0; text-align: center; }
.sx-back-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ed-forest, #0e3020);
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--ed-forest, #0e3020);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
}
.sx-back-link:hover { background: var(--ed-forest, #0e3020); color: #fff; }
.sx-back-link i { font-size: 0.7rem; }

/* ---------- Error / empty ---------- */
.sx-empty, .sx-error {
  text-align: center;
  padding: 5rem 1.2rem 4rem;
  max-width: 560px;
  margin: 0 auto;
}
.sx-empty i, .sx-error::before {
  display: block;
  font-size: 2rem;
  color: var(--ed-gold, #b88732);
  opacity: 0.5;
  margin-bottom: 1rem;
}
.sx-error::before { content: "ॐ"; font-family: var(--ed-dev, serif); font-size: 3rem; }
.sx-empty h3, .sx-error h1 {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: 1.6rem;
  color: var(--ed-forest, #0e3020);
  margin: 0 0 0.7rem;
}
.sx-empty p, .sx-error p {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ed-brown-soft, #6b5a47);
  margin: 0 0 1.5rem;
}

/* ---------- Related grid ---------- */
.sx-related {
  max-width: 1240px;
  margin: 5rem auto 0;
  padding: 0 2rem;
}
.sx-related__head { text-align: center; margin-bottom: 2.2rem; }
.sx-related__eyebrow {
  font-family: var(--ed-sans, "Inter", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-gold, #b88732);
  margin: 0 0 0.5rem;
}
.sx-related__title {
  font-family: var(--ed-serif, "EB Garamond", serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--ed-forest, #0e3020);
  margin: 0;
}
.sx-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sx-hero { min-height: 78vh; padding: 130px 0 80px; }
  .sx-hero__inner { padding: 0 1.5rem; }
  .sx-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-dual { grid-template-columns: 1fr; gap: 1.5rem 0; }
  .sx-dual__divider { display: none; }
  .sx-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sx-hero { min-height: 72vh; padding: 120px 0 60px; }
  .sx-hero__title { font-size: clamp(2rem, 9vw, 3rem); }
  .sx-hero__lede { font-size: 1rem; max-width: 46ch; }
  .sx-related { padding: 0 1.2rem; }
  .sx-related__grid { grid-template-columns: 1fr; }
  .sx-player__inner { padding: 0.7rem 1rem; grid-template-columns: auto 1fr; }
  .sx-player__right { display: none; }
  .sx-wave { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-hero__scroll i,
  .sx-wave__bar { animation: none !important; }
}