/* Gita-Smaranam interactive learning surface */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
.gsm-shell {
  margin: 34px auto 0;
  max-width: 980px;
}
.gsm-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 193, 7, .22), transparent 34%),
    linear-gradient(135deg, #fff8e1 0%, #fff 48%, #f3e5f5 100%);
  border: 1px solid rgba(123, 31, 162, .13);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(74, 0, 114, .1);
  overflow: hidden;
  padding: clamp(26px, 6vw, 54px);
  position: relative;
  text-align: center;
}
.gsm-eyebrow {
  color: #7b1fa2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.gsm-hero h1 {
  color: #4a0072;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3.45rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}
.gsm-hero-copy {
  color: #546e7a;
  font-size: clamp(1rem, 2.4vw, 1.13rem);
  margin: 18px auto 0;
  max-width: 720px;
}
.gsm-pilot-note {
  align-items: center;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(123, 31, 162, .12);
  border-radius: 999px;
  color: #6a1b9a;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 700;
  gap: 8px;
  margin-top: 22px;
  padding: 9px 16px;
}
.gsm-pilot-note::before {
  background: #ffb300;
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}
.gsm-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
}
.gsm-stat {
  background: #fff;
  border: 1px solid #f3e5f5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(74, 0, 114, .06);
  min-width: 0;
  padding: 16px 18px;
  text-align: center;
}
.gsm-stat strong {
  color: #4a0072;
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
}
.gsm-stat span {
  color: #607d8b;
  display: block;
  font-size: .82rem;
  margin-top: 5px;
}
.gsm-workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 255px) minmax(0, 1fr);
  width: 100%;
}
.gsm-sidebar,
.gsm-card {
  background: #fff;
  border: 1px solid #f3e5f5;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(74, 0, 114, .08);
}
.gsm-sidebar {
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  position: sticky;
  top: 18px;
}
.gsm-sidebar h2 {
  color: #4a0072;
  font-size: 1rem;
  margin: 0 0 5px;
}
.gsm-sidebar-copy {
  color: #78909c;
  font-size: .82rem;
  margin: 0 0 14px;
}
.gsm-chapter-select {
  background: #fff;
  border: 1px solid #d9c5e7;
  border-radius: 10px;
  color: #4a0072;
  display: block;
  font: inherit;
  margin: 6px 0 14px;
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}
.gsm-chapter-select:focus-visible {
  outline: 3px solid #b989d3;
  outline-offset: 2px;
}
.gsm-verse-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gsm-verse-button {
  align-items: center;
  background: #faf7fc;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #4a0072;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  justify-content: space-between;
  min-height: 46px;
  padding: 9px 11px;
  text-align: left;
  width: 100%;
}
.gsm-verse-button:hover,
.gsm-verse-button:focus-visible {
  background: #f3e5f5;
  border-color: rgba(123, 31, 162, .25);
}
.gsm-verse-button[aria-current="true"] {
  background: linear-gradient(135deg, #7b1fa2, #4a0072);
  color: #fff;
}
.gsm-verse-status {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  font-size: .68rem;
  height: 22px;
  justify-content: center;
  opacity: .78;
  width: 22px;
}
.gsm-card {
  min-width: 0;
  overflow: hidden;
}
.gsm-card-head {
  background: linear-gradient(135deg, #f3e5f5, #fff8e1);
  border-bottom: 1px solid #f3e5f5;
  padding: 22px clamp(18px, 4vw, 30px);
}
.gsm-reference {
  color: #7b1fa2;
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.gsm-card-head h2 {
  color: #4a0072;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0;
}
.gsm-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px clamp(18px, 4vw, 30px) 8px;
  scrollbar-width: thin;
}
.gsm-tab {
  background: #fff;
  border: 1px solid #e1bee7;
  border-radius: 999px;
  color: #6a1b9a;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 15px;
}
.gsm-tab:hover,
.gsm-tab:focus-visible {
  background: #faf0fd;
}
.gsm-tab[aria-selected="true"] {
  background: #4a0072;
  border-color: #4a0072;
  color: #fff;
}
.gsm-panel {
  padding: 18px clamp(18px, 4vw, 30px) 26px;
}
.gsm-label {
  color: #7b1fa2;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.gsm-devanagari,
.gsm-transliteration {
  border-radius: 14px;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 18px;
  white-space: pre-line;
}
.gsm-devanagari {
  background: #fff8e1;
  color: #5d4037;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: clamp(1.14rem, 3vw, 1.42rem);
  line-height: 1.75;
}
.gsm-transliteration {
  background: #faf7fc;
  color: #4a0072;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 2.5vw, 1.18rem);
  line-height: 1.85;
}
.gsm-block + .gsm-block {
  margin-top: 20px;
}
.gsm-translation {
  color: #455a64;
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}
.gsm-library-link {
  align-items: center;
  color: #6a1b9a;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 700;
  gap: 7px;
  margin-top: 20px;
  text-decoration: none;
}
.gsm-library-link:hover,
.gsm-library-link:focus-visible {
  text-decoration: underline;
}
.gsm-library-link::after {
  content: "→";
}
.gsm-exercise {
  background: #fbfcff;
  border: 1px solid #ede7f6;
  border-radius: 14px;
  margin-top: 18px;
  padding: 18px;
}
.gsm-instruction {
  color: #546e7a;
  font-size: .92rem;
  margin: 0 0 14px;
}
.gsm-hidden-text {
  color: #4a0072;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 2.15;
}
.gsm-hidden-word {
  background: #ede7f6;
  border: 1px dashed #7b1fa2;
  border-radius: 7px;
  color: #6a1b9a;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  margin: 1px 2px;
  min-height: 34px;
  padding: 3px 8px;
}
.gsm-hidden-word.revealed {
  background: #fff8e1;
  border-style: solid;
  color: #4a0072;
}
.gsm-small-action,
.gsm-primary-action,
.gsm-next,
.gsm-rating {
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 15px;
}
.gsm-small-action {
  background: #fff;
  border: 1px solid #e1bee7;
  color: #6a1b9a;
  margin-top: 14px;
}
.gsm-primary-action {
  background: linear-gradient(135deg, #7b1fa2, #4a0072);
  border: 0;
  color: #fff;
}
.gsm-reorder-zones {
  display: grid;
  gap: 14px;
}
.gsm-reorder-zone {
  background: #fff;
  border: 1px dashed #ce93d8;
  border-radius: 12px;
  min-height: 70px;
  padding: 10px;
}
.gsm-reorder-zone h3 {
  color: #7e57c2;
  font-size: .76rem;
  letter-spacing: .06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.gsm-line-buttons {
  display: grid;
  gap: 8px;
}
.gsm-line-button {
  background: #faf7fc;
  border: 1px solid #e1bee7;
  border-radius: 9px;
  color: #4a0072;
  cursor: pointer;
  font: 600 .93rem/1.45 Georgia, "Times New Roman", serif;
  padding: 9px 11px;
  text-align: left;
  width: 100%;
}
.gsm-line-button:hover,
.gsm-line-button:focus-visible {
  background: #f3e5f5;
}
.gsm-reorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.gsm-feedback {
  color: #546e7a;
  font-size: .9rem;
  font-weight: 700;
  margin: 12px 0 0;
  min-height: 1.4em;
}
.gsm-feedback.is-success {
  color: #2e7d32;
}
.gsm-feedback.is-error {
  color: #c62828;
}
.gsm-recall-prompt {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  border-radius: 12px;
  color: #5d4037;
  margin-bottom: 16px;
  padding: 16px;
}
.gsm-review {
  border-top: 1px solid #f3e5f5;
  margin-top: 24px;
  padding-top: 20px;
}
.gsm-review-title {
  color: #546e7a;
  font-size: .86rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.gsm-ratings {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, 1fr);
}
.gsm-rating {
  background: #fff;
  border: 1px solid #e1bee7;
  color: #5e356f;
}
.gsm-rating[data-rating="again"]:hover,
.gsm-rating[data-rating="again"]:focus-visible {
  background: #ffebee;
  border-color: #ef9a9a;
  color: #b71c1c;
}
.gsm-rating[data-rating="hard"]:hover,
.gsm-rating[data-rating="hard"]:focus-visible {
  background: #fff8e1;
  border-color: #ffcc80;
  color: #8d4e00;
}
.gsm-rating[data-rating="known"]:hover,
.gsm-rating[data-rating="known"]:focus-visible {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}
.gsm-card-footer {
  align-items: center;
  background: #fcfaff;
  border-top: 1px solid #f3e5f5;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 30px);
}
.gsm-save-status {
  color: #78909c;
  font-size: .82rem;
  margin: 0;
}
.gsm-next {
  background: #fff;
  border: 1px solid #7b1fa2;
  color: #6a1b9a;
}
.gsm-next:hover,
.gsm-next:focus-visible {
  background: #f3e5f5;
}
.gsm-about {
  background: #fff;
  border: 1px solid #f3e5f5;
  border-left: 5px solid #ffb300;
  border-radius: 16px;
  color: #546e7a;
  margin: 24px 0 0;
  padding: 20px;
}
.gsm-about h2 {
  color: #4a0072;
  font-size: 1.08rem;
  margin: 0 0 8px;
}
.gsm-about p {
  margin: 0;
}
.gsm-error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  border-radius: 12px;
  color: #b71c1c;
  margin: 18px;
  padding: 16px;
}
.gsm-loading {
  color: #7e57c2;
  padding: 42px 20px;
  text-align: center;
}
.gsm-tab:focus-visible,
.gsm-verse-button:focus-visible,
.gsm-hidden-word:focus-visible,
.gsm-small-action:focus-visible,
.gsm-primary-action:focus-visible,
.gsm-next:focus-visible,
.gsm-rating:focus-visible,
.gsm-line-button:focus-visible {
  outline: 3px solid rgba(255, 179, 0, .58);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .gsm-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gsm-stat {
    padding: 13px 8px;
  }
  .gsm-stat strong {
    font-size: 1.35rem;
  }
  .gsm-workspace {
    grid-template-columns: 1fr;
  }
  .gsm-sidebar {
    position: static;
  }
  .gsm-verse-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .gsm-verse-list li {
    flex: 0 0 78px;
    min-width: 0;
  }
  .gsm-verse-button {
    justify-content: center;
    min-width: 78px;
  }
  .gsm-verse-status {
    display: none;
  }
}
@media (max-width: 520px) {
  .gsm-shell {
    margin-top: 24px;
  }
  .gsm-hero {
    border-radius: 18px;
    padding: 28px 18px;
  }
  .gsm-pilot-note {
    border-radius: 14px;
    line-height: 1.4;
  }
  .gsm-stats {
    gap: 7px;
  }
  .gsm-stat span {
    font-size: .72rem;
  }
  .gsm-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .gsm-tab {
    white-space: normal;
    width: 100%;
  }
  .gsm-verse-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .gsm-verse-list li {
    min-width: 0;
  }
  .gsm-verse-button {
    font-size: .82rem;
    min-width: 0;
    padding-inline: 7px;
  }
  .gsm-ratings {
    grid-template-columns: 1fr;
  }
  .gsm-card-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .gsm-next {
    width: 100%;
  }
  .gsm-devanagari,
  .gsm-transliteration,
  .gsm-exercise {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gsm-tab,
  .gsm-verse-button,
  .gsm-hidden-word {
    scroll-behavior: auto;
    transition: none;
  }
}
@media print {
  .gsm-sidebar,
  .gsm-tabs,
  .gsm-review,
  .gsm-card-footer,
  .gsm-pilot-note {
    display: none !important;
  }
  .gsm-workspace {
    display: block;
  }
  .gsm-card,
  .gsm-hero {
    box-shadow: none;
  }
}

