/* LifeLoveMe — Upanishads Study Player */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-tertiary: #6e6e8a;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(26, 26, 46, 0.1);
  --shadow: 0 12px 40px rgba(26, 26, 46, 0.1), 0 2px 12px rgba(0, 0, 0, 0.04);
  --radius-lg: clamp(20px, 2.5vw, 28px);
  --radius-md: 16px;
  --accent: #3d5a80;
  --accent-2: #5c4d7d;
  --accent-hover: #2f4765;
  --accent-soft: rgba(61, 90, 128, 0.12);
  --max-page: 1120px;
  --sidebar: 240px;
  /* Study card type accents (virtual cards) */
  --usp-card-warm-tint: rgba(212, 175, 55, 0.14);
  --usp-card-saffron-tint: rgba(214, 122, 60, 0.12);
  --usp-card-term-tint: rgba(61, 90, 128, 0.12);
  --usp-card-teach-tint: rgba(46, 125, 110, 0.12);
  --usp-card-reflect-tint: rgba(120, 100, 180, 0.12);
  --usp-card-practice-tint: rgba(52, 120, 90, 0.12);
  --usp-card-ref-tint: rgba(90, 90, 102, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 255, 255, 0.92), transparent 52%),
    linear-gradient(155deg, #e4eaf8 0%, #eee8f5 42%, #f8f3ea 72%, #dce6f5 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.usp-nav {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--border);
}

.usp-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.usp-nav__list > li + li::before {
  content: "|";
  color: var(--text-tertiary);
  margin-right: 0.55rem;
  font-weight: 400;
}

.usp-nav__list a {
  text-decoration: none;
}

.usp-nav__current {
  color: var(--text-secondary);
}

.usp-page {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.75rem) 2rem;
}

.usp-hero {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
}

.usp-hero--sacred {
  margin-bottom: 0.35rem;
}

.usp-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

.usp-hero__tagline {
  margin: 0.55rem auto 0;
  max-width: 36rem;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
}

.usp-hero__meta {
  margin: 0.45rem auto 0;
  max-width: 40rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.usp-hero__gist {
  margin: 0.65rem auto 0;
  max-width: 40rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 251, 245, 0.65);
  border: 1px solid rgba(201, 162, 39, 0.12);
}

.usp-hero__prelude {
  margin: 0.55rem auto 0;
  max-width: 34rem;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-tertiary);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.usp-hero__btn-ico {
  display: inline-block;
  margin-right: 0.35rem;
  opacity: 0.88;
  font-size: 0.95em;
}

.usp-hero__title {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.usp-hero__subtitle {
  margin: 0.5rem auto 0;
  max-width: 36rem;
  color: var(--accent-2);
  font-size: 1.02rem;
  font-weight: 600;
}

.usp-hero__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.usp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .usp-layout {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .usp-tree-mobile {
    display: none;
  }
}

.usp-tree-mobile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 0.25rem 0.75rem;
}

.usp-tree-mobile__summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 0.5rem 0;
  list-style-position: outside;
}

.usp-tree-mobile .usp-tree {
  padding: 0.25rem 0 0.75rem;
}

.usp-sidebar {
  display: none;
}

@media (min-width: 900px) {
  .usp-sidebar {
    display: block;
    position: sticky;
    top: 0.75rem;
  }
}

.usp-tree {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.85rem 0.65rem;
}

.usp-tree__title {
  margin: 0 0.5rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.usp-tree__eyebrow {
  margin: 0 0.5rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.usp-tree__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.usp-tree__item {
  margin: 0;
}

.usp-tree__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text-primary);
  padding: 0.55rem 0.6rem;
  min-height: 2.85rem;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  line-height: 1.35;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.usp-tree__ic {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 26, 46, 0.07);
  box-shadow: 0 1px 4px rgba(26, 26, 46, 0.05);
  position: relative;
}

.usp-tree__ic::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68% 68%;
  opacity: 0.88;
}

.usp-tree__lab {
  flex: 1;
  min-width: 0;
  padding-top: 0.12rem;
}

.usp-tree__btn[data-section="welcome"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="shortSummary"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5L19 19M19 5l-1.5 1.5M6.5 17.5L5 19'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="whyStudy"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c76b2e' stroke-width='1.6'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="themes"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c4d7d' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="mantras"] .usp-tree__ic::after,
.usp-tree__btn[data-section="shlokas"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c76b2e' stroke-width='1.6'%3E%3Cpath d='M4 10c2-3 4-3 6 0s4 3 6 0M4 14c2-3 4-3 6 0s4 3 6 0'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="terms"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f7a' stroke-width='1.6'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 13l8-8M21 3l-2 2'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="teachings"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7a6e' stroke-width='1.6'%3E%3Cpath d='M9 22h6M12 22v-8M10 6c0-3 2-5 2-5s2 2 2 5c0 2-1 4-2 5-1-1-2-3-2-5z'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="lifeApplication"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7a6e' stroke-width='1.6'%3E%3Cpath d='M6 18c8 0 12-6 12-14-8 1-12 6-12 14z'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="reflections"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b6ba8' stroke-width='1.6'%3E%3Cpath d='M12 22c-4-4-6-8-6-12s3-8 6-10 6 4 6 10-2 8-6 12z'/%3E%3Ccircle cx='12' cy='11' r='2'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="references"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a6e' stroke-width='1.6'%3E%3Cpath d='M6 3h12v18l-6-4-6 4V3z'/%3E%3C/svg%3E");
}

.usp-tree__btn[data-section="nextSteps"] .usp-tree__ic::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='1.6'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.usp-tree__btn:hover,
.usp-tree__btn:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.usp-tree__btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(61, 90, 128, 0.25);
}

.usp-tree__btn--active {
  background: linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.16),
    rgba(61, 90, 128, 0.08),
    rgba(42, 122, 110, 0.06)
  );
  font-weight: 650;
  color: var(--accent);
  box-shadow: inset 3px 0 0 0 var(--llm-sacral-gold, #c9a227);
}

.usp-tree__btn--active .usp-tree__ic {
  border-color: rgba(61, 90, 128, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.usp-main {
  min-width: 0;
}

.usp-main-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.usp-wisdom-space {
  padding-bottom: 0.5rem;
}

.usp-wisdom-space .usp-card {
  border-color: rgba(201, 162, 39, 0.08);
}

.usp-error {
  margin: 0;
  padding: 1rem 1.25rem;
  background: #fff5f5;
  border: 1px solid #f3c9c9;
  border-radius: var(--radius-md);
  color: #7a1e1e;
}

.usp-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
  min-height: 12rem;
  transition: box-shadow 0.22s ease, border-color 0.2s ease;
}

.usp-card:hover {
  box-shadow: 0 16px 48px rgba(26, 26, 46, 0.1), 0 2px 12px rgba(0, 0, 0, 0.04);
}

.usp-card__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.usp-card__body {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.usp-card__body p {
  margin: 0 0 0.85rem;
}

.usp-card__body p:last-child {
  margin-bottom: 0;
}

.usp-lead {
  font-size: 1.12rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.usp-label {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-2);
}

.usp-label:first-child {
  margin-top: 0;
}

.usp-list {
  margin: 0;
  padding-left: 1.2rem;
}

.usp-list li {
  margin-bottom: 0.5rem;
}

.usp-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(61, 90, 128, 0.06);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  color: var(--text-secondary);
}

.usp-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: rgba(139, 90, 43, 0.1);
  border-radius: var(--radius-md);
  border-left: 4px solid rgba(139, 90, 43, 0.55);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.usp-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
  background: rgba(61, 90, 128, 0.05);
  border-radius: var(--radius-md);
}

.usp-verse {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}

.usp-verse:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.usp-verse--highlight {
  background: linear-gradient(135deg, rgba(61, 90, 128, 0.08) 0%, rgba(92, 77, 125, 0.1) 100%);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.25rem;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  border-bottom: none;
}

.usp-verse__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Virtual cards (upanishads_cards.json) — premium study tiles */
.usp-virt-card {
  --usp-card-tint: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.65rem;
  padding: 0;
  background: linear-gradient(155deg, rgba(255, 252, 246, 0.95) 0%, rgba(244, 248, 255, 0.92) 48%, rgba(250, 246, 255, 0.9) 100%);
  border: 1px solid rgba(92, 77, 125, 0.14);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow:
    0 4px 24px rgba(26, 26, 46, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  line-height: 1.62;
}

.usp-virt-card:last-child {
  margin-bottom: 0;
}

.usp-virt-card--highlight {
  border-color: rgba(61, 90, 128, 0.38);
  box-shadow:
    0 8px 32px rgba(61, 90, 128, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.05);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(228, 236, 250, 0.88) 100%);
}

.usp-virt-card--type-overview,
.usp-virt-card--type-summary,
.usp-virt-card--type-whystudy {
  background: linear-gradient(160deg, #fffdf8 0%, #fff8ee 40%, #f6f2ff 100%);
  border-color: rgba(180, 140, 60, 0.2);
}

.usp-virt-card--type-mantra {
  background: linear-gradient(165deg, #fffaf5 0%, #fff5eb 45%, #faf6ff 100%);
  border-color: rgba(200, 110, 55, 0.22);
}

.usp-virt-card--type-term {
  background: linear-gradient(160deg, #f8fbff 0%, #eef3fb 50%, #f9f7ff 100%);
  border-color: rgba(61, 90, 128, 0.22);
}

.usp-virt-card--type-teaching {
  background: linear-gradient(160deg, #f4fbf8 0%, #eef8f4 50%, #f5f8ff 100%);
  border-color: rgba(46, 125, 110, 0.2);
}

.usp-virt-card--type-reflection {
  background: linear-gradient(160deg, #faf8ff 0%, #f3f0fb 55%, #f8fbff 100%);
  border-color: rgba(120, 100, 160, 0.2);
}

.usp-virt-card--type-practice {
  background: linear-gradient(160deg, #f4fbf6 0%, #ecf6f0 50%, #f7f9ff 100%);
  border-color: rgba(52, 120, 90, 0.2);
}

.usp-virt-card--type-reference {
  background: linear-gradient(160deg, #fafafa 0%, #f0f1f5 100%);
  border-color: rgba(90, 90, 102, 0.18);
}

.usp-virt-card--type-content,
.usp-virt-card--type-guided {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 246, 252, 0.94) 100%);
}

.card-visual {
  display: flex;
  justify-content: center;
  padding: 0.65rem 0 0;
  opacity: 0.88;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 4px rgba(26, 26, 46, 0.08);
}

.card-icon--svg {
  font-size: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68% 68%;
}

.card-icon--overview {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3'/%3E%3C/svg%3E");
}

.card-icon--summary {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2'/%3E%3C/svg%3E");
}

.card-icon--whystudy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c76b2e' stroke-width='1.6'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
}

.card-icon--mantra {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c76b2e' stroke-width='1.6'%3E%3Cpath d='M4 10c2-3 4-3 6 0s4 3 6 0M4 14c2-3 4-3 6 0s4 3 6 0'/%3E%3C/svg%3E");
}

.card-icon--term {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f7a' stroke-width='1.6'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 13l8-8M21 3l-2 2'/%3E%3C/svg%3E");
}

.card-icon--teaching {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7a6e' stroke-width='1.6'%3E%3Cpath d='M9 22h6M12 22v-8M10 6c0-3 2-5 2-5s2 2 2 5c0 2-1 4-2 5-1-1-2-3-2-5z'/%3E%3C/svg%3E");
}

.card-icon--reflection {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b6ba8' stroke-width='1.6'%3E%3Cpath d='M12 22c-4-4-6-8-6-12s3-8 6-10 6 4 6 10-2 8-6 12z'/%3E%3Ccircle cx='12' cy='11' r='2'/%3E%3C/svg%3E");
}

.card-icon--practice {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7a6e' stroke-width='1.6'%3E%3Cpath d='M6 18c8 0 12-6 12-14-8 1-12 6-12 14z'/%3E%3C/svg%3E");
}

.card-icon--reference {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a6e' stroke-width='1.6'%3E%3Cpath d='M6 3h12v18l-6-4-6 4V3z'/%3E%3C/svg%3E");
}

.card-icon--guided {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='1.6'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.card-illustration {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 0.5rem 0 0;
}

.usp-virt-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 1.15rem 1.35rem 0.35rem;
}

.usp-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(61, 90, 128, 0.12);
  color: var(--accent);
  border: 1px solid rgba(61, 90, 128, 0.12);
}

.usp-virt-card--type-mantra .usp-card-badge {
  background: var(--usp-card-saffron-tint);
  color: #9a4a1a;
  border-color: rgba(214, 122, 60, 0.25);
}

.usp-virt-card--type-overview .usp-card-badge,
.usp-virt-card--type-summary .usp-card-badge,
.usp-virt-card--type-whystudy .usp-card-badge {
  background: var(--usp-card-warm-tint);
  color: #6b5420;
  border-color: rgba(180, 140, 60, 0.22);
}

.usp-virt-card--type-term .usp-card-badge {
  background: var(--usp-card-term-tint);
  border-color: rgba(61, 90, 128, 0.18);
}

.usp-virt-card--type-teaching .usp-card-badge {
  background: var(--usp-card-teach-tint);
  color: #1e5c4d;
  border-color: rgba(46, 125, 110, 0.22);
}

.usp-virt-card--type-reflection .usp-card-badge {
  background: var(--usp-card-reflect-tint);
  color: #4a3f6b;
  border-color: rgba(120, 100, 180, 0.2);
}

.usp-virt-card--type-practice .usp-card-badge {
  background: var(--usp-card-practice-tint);
  color: #1d5a40;
  border-color: rgba(52, 120, 90, 0.22);
}

.usp-virt-card--type-reference .usp-card-badge {
  background: var(--usp-card-ref-tint);
  color: #444;
  border-color: rgba(90, 90, 102, 0.15);
}

.usp-virt-card__head .usp-virt-card__title {
  flex: 1 1 12rem;
  margin: 0;
  min-width: 0;
}

.usp-virt-card__title {
  font-size: clamp(1.14rem, 2.8vw, 1.35rem);
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.usp-virt-card__subtitle {
  margin: 0 1.35rem 0.5rem;
  font-size: 0.98rem;
  color: var(--accent-2);
  font-weight: 600;
  line-height: 1.45;
}

.usp-virt-card__body {
  padding: 0.5rem 1.35rem 1.25rem;
}

.usp-virt-card__body > p {
  margin: 0 0 0.85rem;
}

.usp-virt-card__body > p:last-child {
  margin-bottom: 0;
}

.usp-mantra-panel {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
  border: 1px solid rgba(214, 122, 60, 0.15);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.usp-mantra-panel__label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.usp-mantra-panel__text {
  margin: 0;
}

.usp-block {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 46, 0.06);
}

.usp-block__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.usp-block__text {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.usp-block--translit {
  background: rgba(61, 90, 128, 0.04);
  border-style: dashed;
}

.usp-translit {
  font-style: italic;
  font-size: 0.98rem;
  color: #4a4a62;
  letter-spacing: 0.02em;
}

.usp-callout {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.usp-callout__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.usp-callout__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.usp-callout--life {
  background: linear-gradient(135deg, rgba(52, 120, 90, 0.1) 0%, rgba(61, 90, 128, 0.06) 100%);
  border-color: rgba(52, 120, 90, 0.2);
}

.usp-callout--life .usp-callout__label {
  color: #1d5a40;
}

.usp-callout--practice {
  background: linear-gradient(135deg, rgba(61, 90, 128, 0.08) 0%, rgba(92, 77, 125, 0.06) 100%);
  border-color: rgba(61, 90, 128, 0.18);
}

.usp-callout--practice .usp-callout__label {
  color: var(--accent);
}

.usp-callout--inline {
  margin-top: 0.75rem;
}

.usp-virt-card__metafoot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1.35rem 1rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  border-top: 1px solid rgba(26, 26, 46, 0.06);
  background: rgba(255, 255, 255, 0.35);
}

.usp-meta-src,
.usp-meta-status {
  opacity: 0.92;
}

.usp-virt-card .usp-line {
  margin: 0 0 0.85rem;
  font-size: 1.03rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.usp-src-note {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.usp-src-note summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.usp-life-snippet {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(92, 77, 125, 0.22);
  background: rgba(255, 255, 255, 0.5);
}

.usp-life-snippet:first-of-type {
  margin-top: 0.75rem;
}

.usp-life-snippet__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-primary);
}

.usp-sanskrit {
  font-family: "Noto Sans Devanagari", "Sanskrit 2003", "Devanagari Sangam MN", "Kohinoor Devanagari", serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #2a2540;
  letter-spacing: 0.02em;
}

.usp-mantra-panel .usp-sanskrit {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  line-height: 1.85;
}

.usp-teach {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}

.usp-teach:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.usp-teach__title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
}

.usp-teach__sum {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.usp-term__expl {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.usp-term__meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.usp-chip {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(92, 77, 125, 0.12);
  color: var(--accent-2);
  font-weight: 600;
}

.usp-card__footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  word-break: break-word;
}

.usp-card-foot-meta {
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.usp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.usp-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding-top: 0.25rem;
}

.usp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.06);
  transition:
    background 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.18s ease,
    transform 0.15s ease;
}

.usp-btn:hover:not(:disabled) {
  border-color: rgba(61, 90, 128, 0.25);
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.1);
  transform: translateY(-1px);
}

.usp-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.usp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.usp-btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4a6fa5 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(61, 90, 128, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.usp-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #3d5a80 100%);
}

.usp-btn--ghost {
  background: transparent;
  box-shadow: none;
}

/* --- Progress, symbolic strip, callouts + shared llm-callout --- */
.usp-progress {
  display: inline-block;
  margin: 0 auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(61, 90, 128, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(61, 90, 128, 0.12);
}

.usp-main-inner {
  text-align: center;
}

.usp-main-inner .usp-card,
.usp-main-inner .usp-controls,
.usp-main-inner .usp-bottom-links {
  text-align: initial;
}

.usp-main-inner .usp-progress {
  display: inline-block;
}

.usp-study-art-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.15rem;
  opacity: 0.72;
}

.usp-callout.llm-callout {
  margin: 1rem 0 0;
}

.usp-callout.llm-callout:hover {
  box-shadow: 0 6px 22px rgba(26, 26, 46, 0.06);
}

.usp-callout--key-insight .usp-callout__label {
  color: #7a6318;
}

.usp-callout--reflection {
  background: linear-gradient(135deg, rgba(123, 107, 168, 0.1), rgba(255, 255, 255, 0.92));
  border-color: rgba(123, 107, 168, 0.22);
}

.usp-callout--reflection .usp-callout__label {
  color: #4a3f6b;
}

.usp-callout--why {
  background: linear-gradient(135deg, rgba(199, 107, 46, 0.1), rgba(255, 255, 255, 0.92));
  border-color: rgba(199, 107, 46, 0.22);
}

.usp-callout--why .usp-callout__label {
  color: #8a4a1a;
}

.usp-page-footer {
  max-width: var(--max-page);
  margin: 2rem auto 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.usp-page-footer p {
  margin: 0;
}
