/* Agastya Samskrithi — individual program pages
   Loaded after style.css. Uses the variables defined there. */

/* status tag + level line under the lede */
.prog-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1.6rem 0 0;
}
.prog-status .tag { margin: 0; }
.prog-level {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.prog-next {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
}

/* sections */
.prog-section { max-width: var(--max); }
.prog-section + .prog-section { margin-top: 2.8rem; }
.prog-section > h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--bronze);
  margin: 0 0 1rem;
}
.prog-section > p { max-width: 40rem; margin: 0 0 1rem; }
.prog-section > p:last-child { margin-bottom: 0; }
.prog-section > .note { margin: 1.4rem 0 0; }
.prog-section a { color: var(--bronze); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* diamond-bullet outline (matches .roles markers) */
.outline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}
.outline li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(116, 80, 47, 0.25);
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.outline li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  position: relative;
  top: -1px;
}

/* numbered levels (music) */
.levels {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
  counter-reset: lvl;
}
.levels li {
  counter-increment: lvl;
  display: grid;
  grid-template-columns: 2.2rem 9rem 1fr;
  gap: 0.2rem 0.8rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(116, 80, 47, 0.25);
}
.levels li::before {
  content: counter(lvl, upper-roman);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold-text);
}
.levels b {
  font-family: var(--display);
  font-weight: 400;
  color: var(--bronze);
  letter-spacing: 0.04em;
}
.levels span { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 560px) {
  .levels li { grid-template-columns: 2.2rem 1fr; }
  .levels span { grid-column: 2; }
}

/* plain statement that must be read (Ayurveda) */
.prog-caution, .prog-section > .prog-caution {
  margin: 2rem 0 0;
  max-width: 40rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--terracotta);
  background: rgba(235, 225, 206, 0.45);
  color: var(--ink);
}

/* quiet back link */
.back-link { margin: 1.8rem 0 0; }
.back-link a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.back-link a:hover { color: var(--bronze); border-color: var(--gold); }

/* Programs page: link at the foot of each card */
.card .more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--bronze);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 146, 63, 0.5);
}
.card .more .arr { display: inline-block; margin-left: 0.35rem; transition: transform .3s ease; }
.card .more:hover { border-color: var(--bronze); }
.card .more:hover .arr { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .card .more .arr, .back-link a { transition: none; }
}

/* small label inside a card (music tracks) */
.card .eyebrow { color: var(--gold-text); margin: 0 0 0.5rem; font-size: 0.72rem; }
.prog-level a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
