/* Adaptive immune system lesson. All rules scoped under .adi-* */
.adi-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.adi-note { font-size: 12.5px; color: var(--faint); text-align: center; max-width: 330px; }

/* the wound */
.adi-cv { display: block; width: 100%; max-width: 360px; height: 220px; border-radius: 16px; border: 1px solid var(--line); }
.adi-read { font: 600 13.5px var(--sans); color: var(--dim); font-variant-numeric: tabular-nums; }
.adi-read b { color: var(--text); font-weight: 800; }

/* the week */
.adi-leg { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font: 600 12.5px var(--sans); color: var(--dim); }
.adi-leg span { display: inline-flex; align-items: center; gap: 4px; }
.adi-field { width: 100%; max-width: 360px; border-radius: 16px; background: #1A1630; border: 1px solid var(--line); }
.adi-field svg { display: block; width: 100%; height: auto; }
.adi-cold { fill: #FF9F43; }
.adi-flu { fill: #5EC8F2; }
circle.adi-flu { fill: #5EC8F2; }
.adi-fbody { fill: var(--violet); stroke: var(--violet-bright); stroke-width: 1.2; }
.adi-cup { fill: #1A1630; stroke: var(--gold); stroke-width: 1.3; }
.adi-obody { fill: #4A4458; stroke: #7A7387; stroke-width: 1.2; }
.adi-ogrip { fill: #1A1630; stroke: #9A93A7; stroke-width: 1.1; }
.adi-army .adi-fit { animation: adiPop .3s cubic-bezier(.2,.8,.2,1.4) both; }
@keyframes adiPop { from { opacity: 0; } }
.adi-days-read { display: flex; justify-content: center; gap: 14px; font: 600 13px var(--sans); color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.adi-days-read b { color: var(--text); font-weight: 800; }
.adi-days-read .adi-sick { color: var(--streak); }
.adi-days-read .adi-better { color: var(--mint); }
.adi-track { user-select: none; -webkit-user-select: none; display: block; width: 100%; max-width: 360px; height: auto; cursor: pointer; }
.adi-tl { stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; }
.adi-tfill { stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.adi-tk { stroke: var(--line-strong); stroke-width: 1.5; }
.adi-tt { fill: var(--dim); font: 600 13px var(--sans); }
.adi-knob { fill: var(--gold); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(252,192,80,.6)); }

/* David */
.adi-full { flex: 1; justify-content: center; padding: 0 16px; }
.adi-ph { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.adi-ph img { display: block; max-width: 100%; max-height: 300px; border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.adi-ph figcaption { font: 600 12.5px var(--sans); color: var(--dim); text-align: center; }

/* the bone */
.adi-bone { width: 100%; max-width: 330px; }
.adi-bone svg { display: block; width: 100%; height: auto; overflow: visible; }
.adi-bn { fill: #E9DFC9; }
.adi-mw { fill: #D98CA8; }
.adi-bt { fill: var(--dim); font: 600 13px var(--sans); }
.adi-up { animation: adiRise 2.7s ease-out 4 both; }
@keyframes adiRise { 0% { translate: 0 0; opacity: 0; } 15% { opacity: 1; } 100% { translate: 0 -76px; opacity: 0; } }

@media (max-height: 700px) {
  .adi-cv { height: 180px; }
  .adi-ph img { max-height: 210px; }
  .adi-field { max-width: 320px; }
  .adi-track { max-width: 330px; }
}
@media (prefers-reduced-motion: reduce) { .adi-up { animation: none; } }
