/* 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 { width: min(80%, 320px); }
.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-relief { stroke: var(--violet-bright); stroke-dasharray: 6 5; }
.ext-dot { fill: var(--streak); stroke: var(--bg); stroke-width: 2; }
.ext-tag { font: 800 13px var(--sans); }
.ext-rel { fill: var(--violet-bright); }
.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; }

/* two lessons */
.ext-mem { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ext-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); text-align: center; }
.ext-card small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ext-card b { font: 700 20px var(--serif); }
.ext-card span { font-size: 13px; color: var(--dim); }
.ext-old { opacity: .75; }
.ext-old b { color: var(--streak); }
.ext-new { border-color: var(--mint); }
.ext-new b { color: var(--mint); }
.ext-vs { text-align: center; font-size: 13px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }

/* tarantulas */
.ext-grps { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.ext-grp { padding: 8px 10px 4px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); }
.ext-gh { display: flex; align-items: center; justify-content: space-between; }
.ext-gh b { font-size: 15px; }
.ext-icons { display: flex; gap: 4px; align-items: center; }
.ext-spi { height: auto; display: block; }
.ext-spi path { fill: none; stroke: hsl(var(--h), 45%, 62%); stroke-width: 2; stroke-linecap: round; }
.ext-spi ellipse, .ext-spi circle { fill: hsl(var(--h), 45%, 52%); }
.ext-wide { width: 100%; }
.ext-later { width: 100%; max-width: 360px; display: grid; grid-template-columns: 78% 22%; font-size: 12px; font-weight: 700; color: var(--faint); text-align: center; }

.ext-rooms { width: 100%; max-width: 340px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ext-room { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); }
.ext-room b { font-size: 14px; }

.ext-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); max-width: 300px; text-align: center; }
.ext-stat b { font: 700 44px var(--serif); color: var(--mint); }
.ext-stat span { font-size: 15px; color: var(--dim); line-height: 1.3; }

@media (max-height: 700px) {
  .ext-hero { width: min(64%, 260px); }
  .ext-hero.ext-small { width: min(44%, 170px); }
  .ext-chart { max-width: 320px; }
  .ext-rung { padding: 3px 10px; }
  .ext-spark { height: 34px; }
  .ext-card { padding: 10px 12px; }
  .ext-grps { gap: 5px; }
  .ext-grp { padding: 4px 8px 0; }
  .ext-sc { gap: 6px; }
}
