/* Therapeutic window lesson. All rules scoped under .tw-* */
.tw-hero { width: min(80%, 300px); margin: 0 auto; }
.tw-hero img { width: 100%; display: block; }

.tw-box { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 380px); }
.tw-head { min-height: 16px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.tw-fig { position: relative; width: 100%; }
.tw-chart { display: block; width: 100%; height: auto; overflow: visible; }
.tw-b { transition: fill .4s; }
.tw-low { fill: rgba(166,159,147,.10); }
.tw-win { fill: rgba(63,214,154,.20); }
.tw-high { fill: rgba(216,85,85,.16); }
.tw-ghost { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-dasharray: 5 4; opacity: 0; transition: opacity .4s; }
.tw-ax { stroke: rgba(234,227,215,.35); stroke-width: 1.5; }
.tw-tick, .tw-yl { font: 700 12px var(--sans); fill: var(--dim); }
.tw-line { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tw-dot { fill: var(--dim); stroke: #0b0f1c; stroke-width: 2; transition: fill .3s; }
.tw-dot.in { fill: var(--mint); }
.tw-dot.hi { fill: var(--red); }
.tw-mark { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: 0; }
.tw-markt { font: 800 12px var(--sans); fill: var(--gold); letter-spacing: .04em; }
.tw-bt { position: absolute; right: 6px; font: 800 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.tw-lowt { color: var(--dim); }
.tw-wint { color: var(--mint); }
.tw-hight { color: #FF8A8A; }
.tw-gs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.tw-help.gauge .gt i { background: var(--dim); }
.tw-help.gauge.ok .gt i { background: var(--mint); }

/* acetaminophen: the label's limit and the liver-injury zone on one line */
.tw-ap { width: min(100%, 340px); display: flex; flex-direction: column; gap: 10px; }
.tw-apbar { position: relative; height: 44px; border-radius: 10px; overflow: hidden; background: rgba(166,159,147,.10); display: flex; }
.tw-apbar i { display: block; height: 100%; }
.tw-aphelp { width: 34%; background: rgba(63,214,154,.35); }
.tw-apgap { width: 38%; background: rgba(252,192,80,.12); }
.tw-apharm { flex: 1; background: rgba(216,85,85,.45); }
.tw-aplim { position: absolute; left: 34%; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.tw-apme { position: absolute; left: 34%; top: 4px; bottom: 4px; width: 5px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); display: none; transition: left .9s cubic-bezier(.4,0,.2,1); }
.tw-apon .tw-apme { display: block; }
.tw-apon .tw-shelf { display: none; }
.tw-apl1, .tw-apl2 { font: 800 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.tw-apl1 { color: var(--gold); padding-left: calc(34% - 60px); }
.tw-apl2 { color: #FF8A8A; text-align: right; }
.tw-shelf { width: 72%; align-self: center; margin-bottom: 6px; }
.tw-apnote { font-size: 12px; color: var(--faint); }

/* 100 people */
.tw-gw { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tw-grid { display: grid; grid-template-columns: repeat(10, 14px); gap: 5px; }
.tw-grid i { width: 14px; height: 14px; border-radius: 50%; background: rgba(166,159,147,.28); transition: background .2s; }
.tw-grid i.on { background: var(--gold); }
.tw-gcap { font-size: 12px; color: var(--dim); }

@media (max-height: 700px) {
  .tw-box { width: min(100%, 330px); gap: 6px; }
  .tw-grid { grid-template-columns: repeat(10, 12px); gap: 4px; }
  .tw-grid i { width: 12px; height: 12px; }
  .tw-shelf { width: 58%; }
}
