/* Exposure therapy lesson. All rules scoped under .ext-* */

.ext-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ext-hero.ext-small { width: min(56%, 220px); }
.ext-hero img { width: 100%; display: block; }
.ext-note { font-size: 12px; color: var(--faint); text-align: center; }

.ext-pred { max-width: 320px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 3px; text-align: center; }
.ext-pred small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--streak); }
.ext-pred b { font: 600 16px/1.3 var(--serif); color: var(--text); }

/* charts */
.ext-chart { width: 100%; max-width: 360px; display: block; overflow: visible; }
.ext-zone { fill: rgba(251, 150, 121, .07); }
.ext-ax { stroke: var(--line-strong); stroke-width: 1.5; }
.ext-split { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ext-lab { font: 700 12px var(--sans); fill: var(--faint); }
.ext-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ext-fear { stroke: var(--streak); }
.ext-dot { fill: var(--streak); stroke: var(--bg); stroke-width: 2; }
.ext-mini .ext-line { stroke-width: 4; }
.ext-mini .ext-lab { font-size: 15px; }

.ext-two { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ext-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); }
.ext-day > b { font-size: 15px; }
.ext-cap { font-size: 12px; color: var(--dim); text-align: center; line-height: 1.3; }

.ext-meter { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 5px; }
.ext-meter span { font-size: 13px; font-weight: 700; color: var(--dim); }
.ext-mbar { height: 12px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.ext-mbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--streak); }

/* the ladder, top rung first */
.ext-lad { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.ext-rung { display: grid; grid-template-columns: 28px 1fr 90px; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); opacity: .55; transition: opacity .25s, border-color .25s; }
.ext-rung.on, .ext-rung.done { opacity: 1; }
.ext-rung.on { border-color: var(--gold); }
.ext-rn { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--raised); color: var(--dim); }
.ext-rung.done .ext-rn { background: var(--streak); color: #2B1208; }
.ext-rt { font-size: 14px; font-weight: 700; line-height: 1.2; }
.ext-spark { width: 90px; height: 40px; }
.ext-spark .ext-line { stroke-width: 3; }

@media (max-height: 700px) {
  .ext-hero.ext-small { width: min(44%, 170px); }
  .ext-chart { max-width: 320px; }
  .ext-rung { padding: 3px 10px; }
  .ext-spark { height: 34px; }
  .ext-sc { gap: 6px; }
}
