/* ============================================================================
   YogaPath — site layer on top of the shared styles.css / data.css.
   Pure CSS and inline SVG. No external images, no icon fonts, no libraries:
   the target is a mid-range Android phone on a slow Indian connection.
   ========================================================================== */

:root {
  --yp: #7e22ce;
  --yp-2: #a855f7;
  --yp-3: #c084fc;
  --yp-soft: #f5f0ff;
  --yp-line: #e9d5ff;
  --yp-ink: #4c1d95;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --sky-1: #ede9fe;
  --sky-2: #fdf2f8;
  --fig: #6d28d9;
  --fig-2: #8b5cf6;
  --mat: #ddd6fe;
}

[data-theme="dark"] {
  --yp: #c084fc;
  --yp-2: #a855f7;
  --yp-3: #7e22ce;
  --yp-soft: #241a35;
  --yp-line: #3f2d63;
  --yp-ink: #e9d5ff;
  --warn: #fbbf24;
  --warn-bg: #2a2113;
  --warn-line: #57430f;
  --sky-1: #1e1733;
  --sky-2: #2a1a2e;
  --fig: #a78bfa;
  --fig-2: #c4b5fd;
  --mat: #3c3163;
}

/* ------------------------------------------------------------------- hero 3D
   A seated figure built from ellipses and paths, given depth by stacked
   shadow layers and a radial ground glow. The only motion is a slow float and
   a breathing ring — both removed for prefers-reduced-motion.               */
.yp-scene {
  margin: 26px auto 6px;
  max-width: 460px;
}
.yp-scene svg { width: 100%; height: auto; display: block; overflow: visible; }
.yp-cap {
  text-align: center; color: var(--muted); font-size: .86rem;
  margin: 2px 0 0; max-width: 460px; margin-inline: auto;
}

.yp-float-a { animation: ypFloat 7s ease-in-out infinite; transform-origin: center; }
.yp-float-b { animation: ypFloat 9s ease-in-out infinite reverse; transform-origin: center; }
.yp-breathe { animation: ypBreathe 8s ease-in-out infinite; transform-origin: 210px 150px; }
.yp-glow    { animation: ypGlow 8s ease-in-out infinite; }

@keyframes ypFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes ypBreathe { 0%,100% { transform: scale(1); opacity:.55 } 50% { transform: scale(1.07); opacity:.85 } }
@keyframes ypGlow { 0%,100% { opacity:.35 } 50% { opacity:.6 } }

@media (prefers-reduced-motion: reduce) {
  .yp-float-a, .yp-float-b, .yp-breathe, .yp-glow { animation: none; }
}

/* ------------------------------------------------------------- name block */
.yp-names {
  display: grid; gap: 10px; margin: 18px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.yp-name {
  background: var(--yp-soft); border: 1px solid var(--yp-line);
  border-radius: 12px; padding: 12px 14px;
}
.yp-name .k {
  display: block; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 3px;
}
.yp-name .v { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.yp-name .v.dev { font-size: 1.3rem; }
.yp-name .s { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* --------------------------------------------------------------- fact strip */
.yp-facts {
  display: grid; gap: 10px; margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.yp-fact {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--card);
}
.yp-fact b { display: block; font-size: 1.22rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.yp-fact span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.yp-fact em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); margin-top: 3px; }

/* ---------------------------------------------------------------- the steps */
.yp-steps { counter-reset: ypstep; list-style: none; padding: 0; margin: 0; }
.yp-steps li {
  counter-increment: ypstep; position: relative;
  padding: 0 0 18px 46px; margin: 0;
  border-left: 2px solid var(--yp-line); margin-left: 15px;
}
.yp-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.yp-steps li::before {
  content: counter(ypstep);
  position: absolute; left: -16px; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--yp); color: #fff;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 800;
}
.yp-steps li p { margin: 4px 0 0; }

/* ------------------------------------------------------- contraindications
   Deliberately the loudest block on the page. On a yoga site this is the
   part that matters most and the part everybody else buries.                */
.yp-care {
  border: 2px solid var(--warn-line); background: var(--warn-bg);
  border-radius: 14px; padding: 18px 20px; margin: 0;
}
.yp-care h2, .yp-care h3 {
  margin: 0 0 10px; font-size: 1.05rem; color: var(--warn);
  display: flex; align-items: center; gap: 9px;
}
.yp-care h2 svg, .yp-care h3 svg { width: 20px; height: 20px; flex: none; }
.yp-care ul { margin: 0; padding-left: 20px; }
.yp-care li { margin: 0 0 8px; color: var(--ink); }
.yp-care li:last-child { margin-bottom: 0; }
.yp-care .yp-care-note { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }

/* -------------------------------------------------------------- mistakes */
.yp-mis { display: grid; gap: 12px; }
.yp-mis-row {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--card);
}
.yp-mis-row p { margin: 0; padding: 12px 14px; }
.yp-mis-row .m { border-bottom: 1px solid var(--line); }
.yp-mis-row .m b, .yp-mis-row .f b {
  display: inline-block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; margin-right: 8px; font-weight: 800;
}
.yp-mis-row .m b { color: #b91c1c; }
.yp-mis-row .f b { color: #15803d; }
.yp-mis-row .f { background: var(--yp-soft); }
[data-theme="dark"] .yp-mis-row .m b { color: #fca5a5; }
[data-theme="dark"] .yp-mis-row .f b { color: #86efac; }

/* --------------------------------------------------------------- muscles */
.yp-muscles { display: grid; gap: 8px; }
.yp-muscle {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card);
}
.yp-muscle i {
  width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--yp-3);
}
.yp-muscle.pri i { background: var(--yp); }
.yp-muscle span { font-weight: 600; color: var(--ink); }
.yp-muscle small { margin-left: auto; color: var(--muted); font-size: .76rem; }

/* --------------------------------------------------------------- filters */
.yp-filter {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 18px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
}
.yp-filter label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 800; color: var(--muted); margin-right: 2px;
}
.yp-filter button {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.yp-filter button:hover { border-color: var(--yp-2); }
.yp-filter button[aria-pressed="true"] { background: var(--yp); border-color: var(--yp); color: #fff; }
.yp-count { margin: 0 0 14px; color: var(--muted); font-size: .88rem; }

.yp-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.yp-card {
  display: block; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; background: var(--card); text-decoration: none;
  border-left: 4px solid var(--yp-3);
}
.yp-card:hover { border-color: var(--yp-2); border-left-color: var(--yp); }
.yp-card .en { display: block; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.yp-card .sa { display: block; color: var(--yp); font-size: .88rem; font-weight: 600; margin-top: 1px; }
.yp-card .me { display: block; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.yp-card[data-lvl="intermediate"] { border-left-color: var(--yp-2); }
.yp-card[data-lvl="advanced"] { border-left-color: var(--yp-ink); }

.yp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yp-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--yp-soft);
  color: var(--yp-ink); border: 1px solid var(--yp-line);
}

/* -------------------------------------------------------------- sequence */
.yp-seq { list-style: none; padding: 0; margin: 0; counter-reset: ypseq; }
.yp-seq > li {
  counter-increment: ypseq; display: grid; gap: 4px;
  grid-template-columns: 44px 1fr auto; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.yp-seq > li:last-child { border-bottom: 0; }
.yp-seq .n {
  grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yp-soft); border: 1px solid var(--yp-line);
  color: var(--yp-ink); display: grid; place-items: center;
  font-weight: 800; font-size: .85rem;
}
.yp-seq .nm { font-weight: 700; color: var(--ink); }
.yp-seq .nm a { color: inherit; }
.yp-seq .nm em { font-style: normal; color: var(--yp); font-weight: 600; }
.yp-seq .st {
  grid-column: 3; font-size: .8rem; color: var(--muted); font-weight: 600;
  white-space: nowrap; padding-left: 12px;
}
.yp-seq .no { grid-column: 2 / span 2; color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 560px) {
  .yp-seq > li { grid-template-columns: 36px 1fr; }
  .yp-seq .st { grid-column: 2; padding-left: 0; }
  .yp-seq .no { grid-column: 2; }
}

/* ------------------------------------------------------------ misc bits */
.yp-quick {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.yp-quick a {
  border: 1px solid var(--yp-line); background: var(--yp-soft); color: var(--yp-ink);
  border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 700;
  text-decoration: none;
}
.yp-quick a:hover { border-color: var(--yp); }

.yp-lvl {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--yp); color: #fff;
}
.yp-lvl.intermediate { background: var(--yp-2); }
.yp-lvl.advanced { background: var(--yp-ink); }
[data-theme="dark"] .yp-lvl { color: #1a1024; }

.hindi, .dev { font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif; }

.yp-two { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .yp-two { grid-template-columns: 1fr; } }

.yp-src {
  font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line);
  padding-top: 16px; margin: 0;
}
