/* Subjective well-being lesson. Everything scoped under .sw-*. */
.sw-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* the Cantril ladder */
.sw-lad { display: block; width: min(230px, 30vh); height: auto; overflow: visible; }
.sw-rail { stroke: var(--dim); stroke-width: 5; stroke-linecap: round; }
.sw-rung { stroke: var(--line); stroke-width: 5; stroke-linecap: round; transition: stroke .15s; }
.sw-rung.on { stroke: var(--gold); stroke-width: 7; filter: drop-shadow(0 0 6px rgba(252,192,80,.6)); }
.sw-rn { font: 700 13px var(--mono); fill: var(--dim); }
.sw-end { font: 600 13px var(--sans); fill: var(--faint); }

/* yesterday's yes-or-no questions */
.sw-qs { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; }
.sw-q { display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1.5px solid var(--line); opacity: .5; transition: opacity .3s, border-color .3s; }
.sw-q span { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text); }
.sw-q b { font: 700 15px var(--sans); text-align: right; color: var(--gold); }
.sw-q.now { opacity: 1; border-color: var(--gold); }
.sw-q.done { opacity: 1; }
.sw-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* the two parts */
.sw-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; }
.sw-part { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border-radius: 16px; background: var(--raised); border: 1.5px solid var(--line); text-align: center; }
.sw-part small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sw-part b { font-size: 17px; line-height: 1.2; }
.sw-part span { font-size: 13px; line-height: 1.3; color: var(--dim); }
.sw-part em { font-style: normal; font-size: 14px; font-weight: 700; min-height: 0; }
.sw-part.lad { border-color: rgba(252,192,80,.55); }
.sw-part.lad b { color: var(--gold); }
.sw-part.hrs { border-color: rgba(63,214,154,.55); }
.sw-part.hrs b { color: var(--mint); }
.sw-parts.shown .sw-part.lad em { color: var(--gold); }
.sw-parts.shown .sw-part.hrs em { color: var(--dim); }

