/* /learn-cells-counts-viability-dose: its own sheet, loaded after site.css.
   One idea runs the page: a quoted count is sifted down to a dose. The hero
   sifts one vial of a hundred dots; every later figure is drawn to the same
   key. Blue is a viable, confirmed MSC. Pale blue is an MSC that is no longer
   alive. A grey outline is a cell that was never an MSC.
   Script: scripts/learn-cells-counts-viability-dose.js. With that script
   absent every part is visible, every figure shows its end state and every
   link still jumps. */

html:has(body.cvd) {
  --hc-nav-h: 64px;            /* fallback; the script sets the real header height */
  --hc-bar-h: 52px;
  /* every jump, anchor and Tab stop lands below the header and the bar */
  scroll-padding-top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 12px);
}
.cvd {
  --cvd-msc: var(--accent-blue);
  --cvd-dead: #b7cbe2;
  --cvd-other: #8493a8;
  --cvd-ease: cubic-bezier(.16, 1, .3, 1);
  --cvd-gut: clamp(20px, 4vw, 56px);
  --cvd-pad: clamp(56px, 7vw, 104px);
}

/* ============ GROUND RULES ============ */
.cvd-wrap { max-width: calc(1240px + 2 * var(--cvd-gut)); margin-inline: auto; padding-inline: var(--cvd-gut); }
/* text fills its column; the column sets the measure */
.cvd main p { max-width: none; margin: 0; text-wrap: wrap; }
.cvd main a:not(.btn) { border-bottom: 0; }
.cvd main :is(h2, h3, h4) { max-width: none; text-wrap: wrap; margin: 0; }
.cvd main h2 {
  font-family: var(--font-display); font-weight: 300; color: var(--ink);
  font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.cvd main section p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.cvd main section p strong { font-weight: 600; color: var(--ink); }
.cvd main :is(a, summary):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.cvd :is(.cvd-dose, .cvd-verdict) a:focus-visible { outline-color: var(--accent-ice); }
/* a part that receives focus after a jump is not itself a control */
.cvd main :is(h1, h2, h3, section)[tabindex="-1"]:focus { outline: none; }
.cvd main sup { font-size: .7em; }

/* a term the glossary defines */
.cvd-term { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--accent-blue); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 200ms, text-decoration-color 200ms; }
.cvd-term:hover { color: var(--accent-blue-hover); text-decoration-style: solid; }
/* a link inside a sentence */
.cvd-link { color: var(--accent-blue-hover); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-ice); text-underline-offset: 4px; transition: color 200ms, text-decoration-color 200ms; }
.cvd-link:hover { color: var(--accent-blue); text-decoration-color: currentColor; }

/* the onward link: the arrow leans the way it points */
.cvd-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent-blue-hover); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 200ms, text-decoration-color 260ms; }
.cvd-go span { display: inline-block; transition: transform 360ms var(--cvd-ease); }
.cvd-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.cvd-go:hover span { transform: translateX(6px); }
.cvd-go[href^="#"]:hover span { transform: translateY(4px) rotate(90deg); }
.cvd-go--back:hover span { transform: translateX(-6px); }

/* a boxed aside: one thing to carry out of the section */
.cvd-note { border-left: 3px solid var(--accent-blue); padding: 4px 0 4px clamp(18px, 2vw, 28px); }
.cvd main .cvd-note h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 10px; }
.cvd main .cvd-note p { font-size: 17px; line-height: 1.65; }

/* ============ REVEALS ============
   Hidden only once the script has said it is running (cvd-js on <html>), so
   with no script nothing is ever hidden. Each part comes in its own way. */
.cvd-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--cvd-ease); }
.cvd-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.cvd-js [data-r="left"]:not(.is-in) { transform: translateX(-32px); }
.cvd-js [data-r="right"]:not(.is-in) { transform: translateX(32px); }
.cvd-js [data-r="row"]:not(.is-in) { transform: translateX(-14px); }
/* these hold still and let what is inside them move */
.cvd-js :is([data-r="dots"], [data-r="math"], [data-r="bars"], [data-r="sheet"]):not(.is-in) { opacity: 1; transform: none; }

/* ============ HERO ============ */
.cvd-hero { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 88px); }
.cvd-hero__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cvd-hero__h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 4.5vw, 4.1rem); line-height: 1.05; letter-spacing: -.015em; color: var(--ink); margin: 0 0 clamp(22px, 2.6vw, 34px); max-width: none; text-wrap: wrap; }
/* a heading that has to wrap breaks where the styling changes */
.cvd-hero__h1 > .h-lead, .cvd-hero__h1 > em { display: inline-block; }
.cvd-hero__h1 > em { color: var(--accent-blue); }
.cvd main .cvd-hero__answer { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink); margin-bottom: 18px; }
.cvd main .cvd-hero__reviewed { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin-top: clamp(20px, 3vw, 40px); }

.cvd-hero__fig { margin: 0; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: clamp(16px, 2.4vw, 36px); align-items: center; }
.cvd-vial { display: block; width: 100%; height: auto; overflow: visible; }
.cvd-vial__ink { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cvd-vial__level { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.cvd-d { transform-box: fill-box; transform-origin: center; stroke-width: 1.5; }
.cvd-d--live { fill: var(--cvd-msc); stroke: var(--cvd-msc); }
.cvd-d--dead { fill: var(--cvd-dead); stroke: var(--cvd-dead); }
.cvd-d--x { fill: #fff; stroke: var(--cvd-other); }

/* the sum, read down the side of the vial; each line carries the dot it names */
.cvd-eq { display: grid; grid-template-columns: 1.3em minmax(0, 1fr); row-gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.cvd-eq > i { grid-column: 1; font-style: normal; font-size: 1.25rem; font-weight: 300; line-height: 1.9; color: var(--ink-soft); }
.cvd-eq__t { grid-column: 2; display: block; font-size: 15px; line-height: 1.35; color: var(--ink-muted); }
.cvd-eq__t b { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cvd-eq__t b::after { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--ink); }
.cvd-eq__t--2 b::after { background: #fff; border-color: var(--cvd-other); }
.cvd-eq__t--3 b::after { background: var(--cvd-dead); border-color: var(--cvd-dead); }
.cvd-eq__t--4 b::after { background: var(--cvd-msc); border-color: var(--cvd-msc); }
.cvd-eq__t--4 { color: var(--ink); }
.cvd-eq__t--4 b { color: var(--accent-blue-hover); }

/* first paint: the vial is drawn and filled with a hundred counted cells,
   then the count is sifted three times, and each line of the sum arrives
   with the sift it names */
@keyframes cvd-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes cvd-draw { from { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes cvd-pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.25); opacity: 1; } }
@keyframes cvd-counted { from, 80% { fill: var(--ink); stroke: var(--ink); } }
@keyframes cvd-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes cvd-fade { from { opacity: 0; } }
.cvd-js .cvd-hero__h1 > * { animation: cvd-up 900ms var(--cvd-ease) both; }
.cvd-js .cvd-hero__h1 > em { animation-delay: 110ms; }
.cvd-js .cvd-hero__text > :is(p, a) { animation: cvd-up 900ms var(--cvd-ease) 240ms both; }
.cvd-js .cvd-hero__text > a { animation-delay: 340ms; }
.cvd-js .cvd-hero__text > .cvd-hero__reviewed { animation-name: cvd-fade; animation-delay: 700ms; }
.cvd-js .cvd-vial__ink { stroke-dasharray: 1; animation: cvd-draw 800ms var(--cvd-ease) 150ms both; }
.cvd-js .cvd-vial__level { stroke-dasharray: 1; animation: cvd-draw 600ms var(--cvd-ease) 700ms both; }
.cvd-js .cvd-d { animation: cvd-pop 420ms var(--cvd-ease) calc(500ms + var(--i) * 9ms) both; }
.cvd-js .cvd-d--x { animation: cvd-pop 420ms var(--cvd-ease) calc(500ms + var(--i) * 9ms) both, cvd-counted 2300ms ease both; }
.cvd-js .cvd-d--dead { animation: cvd-pop 420ms var(--cvd-ease) calc(500ms + var(--i) * 9ms) both, cvd-counted 3300ms ease both; }
.cvd-js .cvd-d--live { animation: cvd-pop 420ms var(--cvd-ease) calc(500ms + var(--i) * 9ms) both, cvd-counted 4300ms ease both; }
.cvd-js .cvd-eq > * { animation: cvd-rise 600ms var(--cvd-ease) both; }
.cvd-js .cvd-eq > :nth-child(1) { animation-delay: 700ms; }
.cvd-js .cvd-eq > :is(:nth-child(2), :nth-child(3)) { animation-delay: 1900ms; }
.cvd-js .cvd-eq > :is(:nth-child(4), :nth-child(5)) { animation-delay: 2700ms; }
.cvd-js .cvd-eq > :is(:nth-child(6), :nth-child(7)) { animation-delay: 3500ms; }

/* ============ CONTENTS BAR (follows the reader) ============ */
.cvd .hc-bar {
  /* under the phone menu's sheet (55) and backdrop (50), over the page */
  position: fixed; left: 0; right: 0; top: var(--hc-nav-h); z-index: 49;
  height: var(--hc-bar-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 260ms, transform 360ms var(--cvd-ease), visibility 0s 360ms;
}
.cvd .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--cvd-ease); }
body.cvd.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.cvd .hc-bar__track {
  max-width: calc(1240px + 2 * var(--cvd-gut)); margin: 0 auto; padding: 0 var(--cvd-gut);
  height: 100%; display: flex; align-items: stretch; gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 28px;
}
.cvd .hc-bar__track::-webkit-scrollbar { display: none; }
.cvd .hc-bar__track a {
  position: relative; flex: none; display: flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
  transition: color 200ms;
}
.cvd .hc-bar__track a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent-blue); transform: scaleX(0); transform-origin: left;
  transition: transform 360ms var(--cvd-ease);
}
.cvd .hc-bar__track a:hover, .cvd .hc-bar__track a[aria-current] { color: var(--ink); }
.cvd .hc-bar__track a:hover::after { transform: scaleX(.35); }
.cvd .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.cvd .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.cvd .hc-bar__progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-ice); transform-origin: left; transform: scaleX(var(--hc-p, 0));
}
/* where the track can run off the side of a phone, it fades instead of ending */
.cvd .hc-bar::before, .cvd .hc-bar::after { content: ""; position: absolute; top: 2px; bottom: 0; width: 28px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 200ms; }
.cvd .hc-bar::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.cvd .hc-bar::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.cvd .hc-bar.can-left::before, .cvd .hc-bar.can-right::after { opacity: 1; }

/* ============ THE HEADLINE AND THE REAL NUMBER ============ */
.cvd-head { padding-block: var(--cvd-pad); border-top: 1px solid var(--border); }
.cvd-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cvd-head__text p + p { margin-top: 18px; }
.cvd main .cvd-big { font-family: var(--font-display); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.4; color: var(--ink); }
.cvd main .cvd-big strong { font-weight: 500; }
.cvd main .cvd-four > p { font-size: 17px; margin-bottom: 14px; }
.cvd-four__list { list-style: none; margin: 0; padding: 0; counter-reset: four; border-top: 1px solid var(--border-strong); }
.cvd-four__list li { counter-increment: four; border-bottom: 1px solid var(--border); }
.cvd-four__list a {
  position: relative; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px;
  min-height: 64px; padding: 16px 4px; color: var(--ink);
  transition: background-color 260ms, padding 360ms var(--cvd-ease);
}
.cvd-four__list a::before { content: counter(four); font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--ink-muted); transition: color 200ms; }
.cvd-four__list a::after { content: "\2193"; font-size: 17px; color: var(--accent-blue-hover); transition: transform 360ms var(--cvd-ease); }
.cvd-four__list b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.cvd-four__list span { grid-column: 2; font-size: 15px; color: var(--ink-muted); }
.cvd-four__list a:hover { background: var(--accent-wash); padding-inline: 14px; }
.cvd-four__list a:hover::before { color: var(--accent-blue-hover); }
.cvd-four__list a:hover::after { transform: translateY(5px); }

/* looking closer at what the label says */
.cvd-look { margin: 0 0 clamp(16px, 2vw, 24px); }
.cvd-look svg { display: block; width: 170px; height: auto; overflow: visible; }
.cvd-look__ink { fill: #fff; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cvd-look__label { fill: none; stroke: var(--border-strong); stroke-width: 4; stroke-linecap: round; }
.cvd-look__lens { fill: #fff; stroke: var(--ink); stroke-width: 2.4; }
.cvd-look__handle { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.cvd-look__d { fill: #fff; stroke: var(--cvd-other); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.cvd-look__d.is-msc { fill: var(--cvd-msc); stroke: var(--cvd-msc); }
@keyframes cvd-look { from { transform: translate(64px, -30px); } }
.cvd-js .cvd-look.is-in .cvd-look__glass { animation: cvd-look 1300ms var(--cvd-ease) 200ms both; }
.cvd-js .cvd-look.is-in .cvd-look__d { animation: cvd-pop 420ms var(--cvd-ease) calc(1100ms + var(--k) * 70ms) both; }

/* ============ TOTAL COUNT ============ */
.cvd-count { padding-block: var(--cvd-pad); border-top: 1px solid var(--border); }
.cvd-count__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cvd-pellet { margin: clamp(40px, 5vw, 72px) 0; padding: clamp(28px, 3.4vw, 48px) 0; border-block: 1px solid var(--border-strong); }
.cvd-pellet__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 88px); align-items: baseline; margin-bottom: clamp(28px, 3.4vw, 48px); }
.cvd main .cvd-pellet__head h3, .cvd main .cvd-kg__head h3, .cvd main .cvd-math h3, .cvd main .cvd-methods h3, .cvd main .cvd-ask__main > h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; color: var(--ink); }
.cvd main .cvd-pellet__head p { font-size: 17px; }
.cvd-pellet__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 clamp(28px, 5vw, 88px); }
/* the two vials' rows line up, part for part */
.cvd-pellet__one { display: grid; grid-row: span 4; grid-template-rows: subgrid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); column-gap: clamp(18px, 2.4vw, 32px); }
.cvd-pellet__one svg { grid-column: 1; grid-row: 1 / -1; align-self: center; display: block; width: 100%; height: auto; overflow: visible; }
.cvd-pellet__data, .cvd-pellet__data dl { display: contents; }
.cvd-pellet__data > h4, .cvd-pellet__data dl > div { grid-column: 2; }
@supports not (grid-template-rows: subgrid) {
  .cvd-pellet__one { display: grid; grid-template-rows: none; grid-row: auto; }
  .cvd-pellet__one svg { grid-row: 1 / span 4; }
}
.cvd-pellet__ring { fill: none; stroke: var(--border-strong); stroke-width: 1.2; stroke-dasharray: 4 4; }
.cvd-p { transform-box: fill-box; transform-origin: center; }
.cvd-p--other { fill: #fff; stroke: var(--cvd-other); stroke-width: 1.4; }
.cvd-p--msc { fill: var(--cvd-msc); stroke: var(--cvd-msc); stroke-width: 1.4; }
.cvd-p--speck { fill: var(--cvd-msc); }
.cvd main .cvd-pellet__data h4 { font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 10px; }
.cvd-pellet__data h4 span { display: block; font-weight: 400; color: var(--ink-muted); font-size: 15px; }
.cvd-pellet__data dl { margin: 0; }
.cvd-pellet__data dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border); }
.cvd-pellet__data dt { font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.cvd-pellet__data dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cvd-pellet__sum dt { color: var(--ink); font-weight: 600; }
.cvd-pellet__sum dd { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.cvd-chip { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; box-sizing: border-box; }
.cvd-chip--other { border: 1.4px solid var(--cvd-other); }
.cvd-chip--msc { background: var(--cvd-msc); }
.cvd main .cvd-count__after > p { font-family: var(--font-display); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.4; color: var(--ink); }
.cvd main .cvd-count__after > p strong { font-weight: 500; }
.cvd-count__after .cvd-more, .cvd-wt__after .cvd-more, .cvd-via__text .cvd-more { margin-top: 8px; }
/* the hundred dots are counted in, one after the next */
@keyframes cvd-speck { 0%, 100% { transform: scale(1); } 50% { transform: scale(3.2); } }
.cvd-js [data-r="dots"] .cvd-p { transition: opacity 300ms ease calc(var(--i) * 11ms), transform 520ms var(--cvd-ease) calc(var(--i) * 11ms); }
.cvd-js [data-r="dots"]:not(.is-in) .cvd-p { opacity: 0; transform: scale(.2); }
.cvd-js [data-r="dots"].is-in .cvd-p--speck { animation: cvd-speck 1400ms ease 1500ms 2; }

/* ============ VIABILITY ============ */
.cvd-via { padding-block: var(--cvd-pad); border-top: 1px solid var(--border); }
.cvd-via__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.cvd-via__text p + p { margin-top: 18px; }
.cvd-thaw { margin: 0; }
.cvd-thaw svg { display: block; width: 100%; height: auto; overflow: visible; }
.cvd-thaw :is(path, rect, circle) { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cvd-thaw .cvd-thaw__fill { fill: var(--cvd-msc); stroke: none; opacity: .85; }
.cvd-thaw .cvd-thaw__frost path { stroke: var(--accent-blue); stroke-width: 1.6; }
.cvd-thaw .cvd-thaw__way { stroke: var(--border-strong); stroke-dasharray: 2 8; }
.cvd-thaw .cvd-thaw__ticks { stroke: var(--border-strong); }
.cvd-thaw .cvd-thaw__sweep { fill: var(--accent-wash); stroke: none; }
.cvd-thaw .cvd-thaw__hand { stroke: var(--accent-blue); stroke-width: 2.4; transform-origin: 210px 134px; }
.cvd-thaw .cvd-thaw__pin { fill: var(--ink); stroke: none; }
.cvd-thaw .cvd-thaw__drop { fill: var(--cvd-msc); stroke: none; }
/* the hour between thaw and infusion goes round once; the line then runs */
@keyframes cvd-hour { from { transform: rotate(-360deg); } }
@keyframes cvd-wipe { from { clip-path: polygon(50% 50%, 50% 0, 50% 0, 50% 0, 50% 0, 50% 0, 50% 0); } 25% { clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 100% 100%, 100% 100%, 100% 100%); } 75% { clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 100%, 0 100%); } to { clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0); } }
@keyframes cvd-drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes cvd-frost { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(30deg); } }
.cvd-thaw__frost { transform-box: fill-box; transform-origin: center; }
.cvd-js .cvd-thaw.is-in .cvd-thaw__hand { animation: cvd-hour 2400ms cubic-bezier(.45, 0, .2, 1) 300ms both; }
.cvd-js .cvd-thaw.is-in .cvd-thaw__sweep { animation: cvd-wipe 2400ms cubic-bezier(.45, 0, .2, 1) 300ms both; }
.cvd-js .cvd-thaw.is-live .cvd-thaw__drop { animation: cvd-drip 2200ms ease-in 2700ms infinite; }
.cvd-js .cvd-thaw.is-live .cvd-thaw__frost { animation: cvd-frost 9s ease-in-out infinite; }

.cvd-methods { margin-top: clamp(36px, 4.4vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--border-strong); }

/* "Read more": a native details, two labels */
.cvd-more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--accent-blue-hover); transition: color 200ms; }
.cvd-more summary::-webkit-details-marker { display: none; }
.cvd-more summary::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform 360ms var(--cvd-ease); }
.cvd-more summary:hover { color: var(--accent-blue); }
.cvd-more summary:hover::after { transform: translateY(3px) rotate(45deg); }
.cvd-more[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.cvd-more[open] summary:hover::after { transform: translateY(-3px) rotate(-135deg); }
.cvd-more__shut, .cvd-more[open] .cvd-more__open { display: none; }
.cvd-more[open] .cvd-more__shut { display: inline; }
.cvd-more__body { padding-block: 10px 6px; }
@keyframes cvd-unfold { from { opacity: 0; transform: translateY(-8px); } }
.cvd-more[open] .cvd-more__body { animation: cvd-unfold 420ms var(--cvd-ease); }
.cvd-sec__text .cvd-more { margin-block: 10px; }

.cvd-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.cvd-table :is(th, td) { text-align: left; vertical-align: baseline; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--border); }
.cvd-table thead th { font-size: 14px; font-weight: 500; color: var(--ink-muted); border-bottom-color: var(--border-strong); padding-block: 8px; }
.cvd-table tbody th { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); white-space: nowrap; }
.cvd-table td { color: var(--ink-soft); }
.cvd-table td:last-child { padding-right: 0; color: var(--ink); font-weight: 500; }
.cvd-table__p { white-space: nowrap; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* the wider the band, the less the test can be trusted to the last percent */
.cvd-band { position: relative; display: inline-block; vertical-align: middle; width: 120px; height: 14px; margin-right: 14px; }
.cvd-band::before, .cvd-band::after { content: ""; position: absolute; top: 3px; bottom: 3px; left: 50%; border-radius: 2px; transform: translateX(-50%); }
.cvd-band::before { width: calc(var(--hi) * 10%); background: var(--cvd-dead); }
.cvd-band::after { width: max(3px, calc(var(--lo) * 10%)); background: var(--cvd-msc); }
@keyframes cvd-band { from { transform: translateX(-50%) scaleX(0); } }
.cvd-more[open] .cvd-band::before, .cvd-more[open] .cvd-band::after { animation: cvd-band 900ms var(--cvd-ease) 160ms both; }

/* ============ EFFECTIVE DOSE (navy) ============ */
.cvd-dose { padding-block: var(--cvd-pad); background: var(--ink); color: #fff; }
.cvd-dose__head { margin-bottom: clamp(36px, 4.4vw, 64px); }
.cvd main .cvd-dose h2 { color: #fff; margin-bottom: clamp(18px, 2.2vw, 28px); }
.cvd main .cvd-dose p { color: rgba(255, 255, 255, .8); }
.cvd main .cvd-dose p strong { color: #fff; }
.cvd main .cvd-math h3 { color: #fff; margin-bottom: 8px; }
.cvd main .cvd-math__sub { font-size: 17px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.cvd-math__row {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) auto minmax(0, 1.3fr) auto minmax(0, 1.3fr) auto minmax(0, 2.6fr);
  column-gap: clamp(10px, 1.6vw, 24px); row-gap: 18px; align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 0 clamp(16px, 2vw, 24px); border-top: 1px solid rgba(255, 255, 255, .2);
}
.cvd-math__who { display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.cvd-mv { flex: none; overflow: visible; }
.cvd-mv__ink { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cvd-mv__o { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.cvd-mv__s { fill: var(--accent-ice); }
.cvd-mv__m { fill: var(--accent-ice); transform-box: fill-box; transform-origin: center; }
.cvd-js [data-r="math"] .cvd-mv__m { transition: transform 420ms var(--cvd-ease) calc(700ms + var(--k) * 45ms), opacity 300ms ease calc(700ms + var(--k) * 45ms); }
.cvd-js [data-r="math"]:not(.is-in) .cvd-mv__m { transform: scale(0); opacity: 0; }
.cvd-math__who b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: #fff; }
.cvd-math__row > i { font-style: normal; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--accent-ice); }
.cvd-math__t, .cvd-math__res { display: block; }
.cvd-math :is(.cvd-math__t, .cvd-math__res, .cvd-math__gap) small { display: block; font-size: 14px; color: rgba(255, 255, 255, .72); margin-bottom: 2px; }
.cvd-math__t b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.cvd-math__res b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cvd-math__row--b .cvd-math__res b { color: #a9cbea; }
.cvd-math__res em { display: block; font-style: normal; font-size: 15px; color: rgba(255, 255, 255, .72); margin-top: 4px; }
/* each result drawn to the same scale: the first is too thin to see */
.cvd-math__bar { grid-column: 1 / -1; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cvd-math__bar span { display: block; height: 100%; width: 100%; background: var(--accent-ice); transform-origin: left; }
.cvd-math__row--a .cvd-math__bar span { width: 2px; background: #fff; }
.cvd-math__gap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(14px, 2vw, 28px); padding-top: clamp(22px, 3vw, 36px); border-top: 1px solid rgba(255, 255, 255, .2); }
.cvd-math .cvd-math__gap small { display: inline; margin: 0; font-size: 16px; }
.cvd-math__gap b { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; color: #fff; }
.cvd-note--dark { margin-top: clamp(36px, 4.4vw, 64px); border-left-color: var(--accent-ice); max-width: 62rem; }
.cvd main .cvd-note--dark h3 { color: #fff; }
/* the sum is worked across, a term at a time, and then its bar is drawn */
.cvd-js [data-r="math"] .cvd-math__row > * { transition: opacity 500ms ease, transform 700ms var(--cvd-ease); }
.cvd-js [data-r="math"]:not(.is-in) .cvd-math__row > * { opacity: 0; transform: translateX(-12px); }
.cvd-js [data-r="math"]:not(.is-in) .cvd-math__bar span { transform: scaleX(0); }
.cvd-js [data-r="math"] .cvd-math__bar span { transition: transform 1400ms var(--cvd-ease) 1100ms; }
.cvd-js [data-r="math"] .cvd-math__row > :nth-child(2) { transition-delay: 120ms; }
.cvd-js [data-r="math"] .cvd-math__row > :nth-child(3), .cvd-js [data-r="math"] .cvd-math__row > :nth-child(4) { transition-delay: 300ms; }
.cvd-js [data-r="math"] .cvd-math__row > :nth-child(5), .cvd-js [data-r="math"] .cvd-math__row > :nth-child(6) { transition-delay: 480ms; }
.cvd-js [data-r="math"] .cvd-math__row > :nth-child(7), .cvd-js [data-r="math"] .cvd-math__row > :nth-child(8) { transition-delay: 720ms; }
.cvd-js [data-r="math"] .cvd-math__row--b > * { transition-duration: 500ms, 700ms; }
.cvd-js [data-r="math"] .cvd-math__gap { transition: opacity 700ms ease 1500ms; }
.cvd-js [data-r="math"]:not(.is-in) .cvd-math__gap { opacity: 0; }
.cvd-js [data-r="math"] .cvd-math__gap b { display: inline-block; transition: transform 900ms var(--cvd-ease) 1500ms; transform-origin: left bottom; }
.cvd-js [data-r="math"]:not(.is-in) .cvd-math__gap b { transform: scale(.6); }

/* ============ WHAT THE CELLS DELIVER ============ */
.cvd-sec { padding-block: var(--cvd-pad); }
.cvd-sec__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cvd-sec__text > p + p { margin-top: 18px; }
.cvd-cell { margin: 0 0 clamp(20px, 2.4vw, 32px); }
.cvd-cell svg { display: block; width: min(100%, 360px); height: auto; overflow: visible; }
.cvd-cell__body { fill: var(--accent-wash); stroke: var(--ink); stroke-width: 1.8; }
.cvd-cell__nuc { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.cvd-cell__out circle { fill: var(--cvd-msc); transform-box: fill-box; transform-origin: center; }
.cvd-cell__out .is-ring { fill: #fff; stroke: var(--cvd-msc); stroke-width: 1.6; }
/* what the cell lets go of drifts out and is replaced */
@keyframes cvd-drift { 0% { transform: translateX(-34px) scale(.3); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(72px) scale(1); opacity: 0; } }
.cvd-js .cvd-cell.is-live .cvd-cell__out circle { animation: cvd-drift 5200ms linear calc(var(--k) * -650ms) infinite; }

/* ============ WEIGHT-ADJUSTED ============ */
.cvd-wt { padding-block: var(--cvd-pad); border-top: 1px solid var(--border); }
.cvd-wt__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 88px); align-items: start; }
.cvd-kg { margin: clamp(40px, 5vw, 72px) 0; padding: clamp(28px, 3.4vw, 48px) 0 0; border-top: 1px solid var(--border-strong); }
.cvd-kg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.cvd main .cvd-kg__head p { font-size: 17px; color: var(--ink-muted); }
.cvd-kg__people, .cvd-kg__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr) minmax(0, 2.4fr) minmax(0, 4.4fr); column-gap: clamp(16px, 2.6vw, 40px); }
.cvd-kg__people { align-items: end; padding-bottom: 14px; }
.cvd-kg__person { display: flex; align-items: flex-end; gap: 12px; }
.cvd-kg__person svg { display: block; flex: none; }
.cvd-kg__person path { fill: var(--accent-wash); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.cvd-kg__person b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.cvd-kg__row { align-items: start; padding: clamp(18px, 2.2vw, 26px) 0; border-top: 1px solid var(--border); }
.cvd-kg__name { font-size: 16px; line-height: 1.45; color: var(--ink-muted); }
.cvd-kg__name b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; color: var(--ink); }
.cvd-kg__cell { display: block; font-size: 15px; color: var(--ink-muted); }
.cvd-kg__cell b { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
/* every bar sits on the same scale, nothing to two hundred million cells */
.cvd-kg__bar { position: relative; display: block; height: 12px; margin: 6px 0 10px; border-radius: 2px; background: var(--accent-wash); overflow: hidden; }
.cvd-kg__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--a) / 200 * 100%); width: calc((var(--b) - var(--a)) / 200 * 100%); background: var(--cvd-other); border-radius: 2px; transform-origin: left; }
.cvd-kg__row--kg .cvd-kg__bar::before { background: var(--cvd-msc); }
.cvd main .cvd-kg__note p { font-size: 16px; line-height: 1.6; }
.cvd-js [data-r="bars"] .cvd-kg__bar::before { transition: transform 1100ms var(--cvd-ease) 200ms; }
.cvd-js [data-r="bars"]:not(.is-in) .cvd-kg__bar::before { transform: scaleX(0); }
.cvd-js [data-r="bars"] .cvd-kg__row:nth-child(3) .cvd-kg__bar::before { transition-delay: 420ms; }
.cvd-js [data-r="bars"] .cvd-kg__row:nth-child(4) .cvd-kg__bar::before { transition-delay: 640ms; }
@keyframes cvd-stand { from { transform: scaleY(.4); opacity: 0; } }
.cvd-kg__person svg { transform-origin: bottom; }
.cvd-js [data-r="bars"].is-in .cvd-kg__person svg { animation: cvd-stand 700ms var(--cvd-ease) both; }
.cvd-js [data-r="bars"].is-in .cvd-kg__person:last-child svg { animation-delay: 140ms; }

/* ============ AN HONEST DOSE STATEMENT (the one tinted band) ============ */
.cvd-ask { padding-block: var(--cvd-pad); background: var(--accent-wash); }
.cvd-ask__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cvd-ask__side { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 24px); }
.cvd-coa { margin: clamp(20px, 2.6vw, 36px) 0 0; }
.cvd-coa svg { display: block; width: min(100%, 230px); height: auto; overflow: visible; }
.cvd-coa__paper { fill: #fff; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.cvd-coa__fold { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.cvd-coa__lines path { fill: none; stroke: var(--border-strong); stroke-width: 6; stroke-linecap: round; }
.cvd-coa__ticks path { fill: none; stroke: var(--accent-blue); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* a line on the sheet is ticked as its number is read */
.cvd-js .cvd-coa__ticks path { transition: stroke-dashoffset 520ms var(--cvd-ease) 200ms; }
.cvd-js .cvd-coa__ticks path:not(.is-ticked) { stroke-dashoffset: 1; }
.cvd main .cvd-ask__main > h3 { margin-bottom: 14px; }
.cvd-five { list-style: none; margin: 0; padding: 0; counter-reset: five; border-top: 1px solid var(--border-strong); }
.cvd-five li { counter-increment: five; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cvd-five li::before { content: counter(five); grid-column: 1; grid-row: 1 / span 2; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--ink-muted); }
.cvd-five b { grid-column: 2; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.cvd-five li > span { grid-column: 3; grid-row: 1; font-size: 15px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.cvd main .cvd-five p { grid-column: 2 / -1; grid-row: 2; font-size: 17px; line-height: 1.6; margin-top: 4px; }
.cvd main .cvd-ask__close { margin-top: clamp(20px, 2.6vw, 32px); }

/* ============ THE BOTTOM LINE (navy) ============ */
.cvd-verdict { padding-block: var(--cvd-pad); background: var(--ink); color: #fff; }
.cvd-verdict__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cvd main .cvd-verdict h2 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin-bottom: clamp(20px, 2.6vw, 32px); }
.cvd main .cvd-verdict p { color: rgba(255, 255, 255, .8); }
.cvd main .cvd-verdict p strong { color: #fff; }
.cvd-verdict__text p + p { margin-top: 18px; }
.cvd-asks { list-style: none; margin: 0; padding: 0; }
.cvd-asks li { padding: 0 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2vw, 28px); border-left: 2px solid var(--accent-ice); }
.cvd-asks li + li { padding-top: clamp(18px, 2.2vw, 26px); }
.cvd-asks li:last-child { padding-bottom: 0; }
.cvd main .cvd-asks h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; color: #fff; margin-bottom: 6px; }
.cvd main .cvd-asks p { font-size: 17px; line-height: 1.6; }
.cvd-js .cvd-asks li:nth-child(2) { transition-delay: 120ms; }
.cvd-js .cvd-asks li:nth-child(3) { transition-delay: 240ms; }

/* the bigger-looking count, outweighed */
.cvd-scale { margin: clamp(24px, 3vw, 40px) 0 0; }
.cvd-scale svg { display: block; width: min(100%, 250px); height: auto; overflow: visible; }
.cvd-scale__ink { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cvd-scale__pin { fill: #fff; }
.cvd-scale__beam { transform-origin: 120px 44px; transform: rotate(9.9deg); }
.cvd-scale__pan--up { transform: translateY(-12px); }
.cvd-scale__pan--down { transform: translateY(12px); }
.cvd-scale__big { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.6; stroke-dasharray: 4 4; }
.cvd-scale__small { fill: var(--accent-ice); }
/* level until it is seen, then it settles */
.cvd-js .cvd-scale :is(.cvd-scale__beam, .cvd-scale__pan) { transition: transform 1500ms cubic-bezier(.3, 1.5, .5, 1) 300ms; }
.cvd-js .cvd-scale:not(.is-in) :is(.cvd-scale__beam, .cvd-scale__pan) { transform: none; }

/* ============ READ ON ============ */
.cvd-rel { padding-block: var(--cvd-pad); }
.cvd-rel__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.cvd-rel__list li { border-bottom: 1px solid var(--border); }
.cvd-rel__list a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto; column-gap: clamp(20px, 5vw, 88px); align-items: baseline;
  min-height: 64px; padding: clamp(18px, 2.2vw, 26px) 4px; color: var(--ink);
  transition: background-color 260ms, padding 360ms var(--cvd-ease);
}
.cvd-rel__list b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; }
.cvd-rel__list span { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.cvd-rel__list i { font-style: normal; font-size: 18px; color: var(--accent-blue-hover); transition: transform 360ms var(--cvd-ease); }
.cvd-rel__list a:hover { background: var(--accent-wash); padding-inline: 16px; }
.cvd-rel__list a:hover i { transform: translateX(6px); }
.cvd-js .cvd-rel__list li:nth-child(2) { transition-delay: 90ms; }
.cvd-js .cvd-rel__list li:nth-child(3) { transition-delay: 180ms; }
.cvd-rel__up { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: clamp(24px, 3vw, 40px); }

/* ============ SMALL CONSIDERATIONS ============ */
/* where a jump has just landed: a short rule is drawn under the heading reached */
.cvd main h2.is-landed { position: relative; }
.cvd main h2.is-landed::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 72px; height: 2px; background: var(--accent-blue); transform-origin: left; animation: cvd-landed 1800ms var(--cvd-ease) both; }
.cvd :is(.cvd-dose, .cvd-verdict) h2.is-landed::after { background: var(--accent-ice); }
@keyframes cvd-landed { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* a line of the key, pointed at, quiets the dots it does not name */
@media (hover: hover) {
  .cvd-pellet__one .cvd-p { transition: opacity 260ms ease; }
  .cvd-pellet__one:has(.cvd-row--other:hover) .cvd-p--msc,
  .cvd-pellet__one:has(.cvd-row--other:hover) .cvd-p--speck,
  .cvd-pellet__one:has(.cvd-row--msc:hover) .cvd-p--other:not(.cvd-p--holds) { opacity: .16; }
  .cvd-pellet__data dl > div:is(.cvd-row--other, .cvd-row--msc) { transition: background-color 200ms; }
  .cvd-pellet__data dl > div:is(.cvd-row--other, .cvd-row--msc):hover { background: var(--accent-wash); box-shadow: -8px 0 0 var(--accent-wash), 8px 0 0 var(--accent-wash); }
}
/* a counting figure is read out once, as its final value */
.cvd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cvd ::selection { background: #cfe0f2; color: var(--ink); }

/* ============ NARROWER ============ */
@media (max-width: 1100px) {
  .cvd-math__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.8fr); }
  .cvd-math__who { grid-column: 1 / -1; }
  .cvd-kg__people, .cvd-kg__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); }
  .cvd-kg__corner { display: none; }
  .cvd-kg__people > .cvd-kg__person:last-child { grid-column: 2; }
  .cvd-kg__name { grid-column: 1 / -1; margin-bottom: 10px !important; }
}
@media (max-width: 900px) {
  .cvd-hero__row, .cvd-head__grid, .cvd-count__top, .cvd-via__grid, .cvd-dose__head, .cvd-sec__grid, .cvd-wt__top, .cvd-ask__grid, .cvd-verdict__grid, .cvd-pellet__head { grid-template-columns: minmax(0, 1fr); }
  .cvd-wt__top { row-gap: 18px; }
  .cvd-hero__fig { max-width: 520px; }
  .cvd-pellet__pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 32px; }
  .cvd-pellet__one { grid-row: auto; grid-template-rows: none; }
  .cvd-pellet__one svg { grid-row: 1 / span 4; }
  .cvd-thaw svg { max-width: 420px; }
  .cvd-ask__side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 20px; align-items: center; }
  .cvd-coa { margin: 0; }
  .cvd-cell svg { width: 200px; }
  .cvd-rel__list a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .cvd-rel__list span { grid-column: 1; grid-row: 2; }
  .cvd-rel__list i { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  .cvd-kg__people, .cvd-kg__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cvd-kg__people > .cvd-kg__person:last-child { grid-column: auto; }
  .cvd-kg__note { grid-column: 1 / -1; margin-top: 12px !important; }
  /* the table becomes one block per assay */
  .cvd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cvd-table, .cvd-table tbody { display: block; }
  .cvd-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .cvd-table :is(th, td) { display: block; padding: 0; border: 0; }
  .cvd-table tbody th { grid-column: 1; }
  .cvd-table td:last-child { grid-column: 2; grid-row: 1; align-self: baseline; }
  .cvd-table td:nth-child(2), .cvd-table__p { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cvd main section p { font-size: 17px; }
  .cvd main h2 { font-size: 1.8rem; }
  .cvd-hero__fig { grid-template-columns: minmax(0, 9fr) minmax(0, 13fr); }
  .cvd-pellet__one { grid-template-columns: 112px minmax(0, 1fr); }
  .cvd-pellet__one svg { align-self: start; }
  .cvd-math__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 14px; }
  .cvd-math__row > i:nth-of-type(3) { grid-column: 1; justify-self: start; }
  .cvd-math__res { grid-column: 2 / -1; }
  .cvd-math__row > i:nth-of-type(3) { align-self: center; }
  .cvd-five li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .cvd-five li > span { grid-column: 2; grid-row: 3; margin-top: 4px; }
  .cvd main .cvd-five p { grid-column: 2; }
  .cvd-band { width: 96px; }
}

/* ============ REDUCED MOTION: every figure rests in its end state ============ */
@media (prefers-reduced-motion: reduce) {
  .cvd *, .cvd *::before, .cvd *::after { animation: none !important; transition: none !important; }
  .cvd-go:hover span, .cvd-four__list a:hover::after, .cvd-rel__list a:hover i { transform: none; }
}

@media print {
  @page { margin: 16mm 14mm; }
  .cvd .hc-bar, .cvd-more summary, .cvd-go[href^="#"] { display: none; }
  /* a printout is one still frame: nothing may be caught part way through moving */
  .cvd main *, .cvd main *::before, .cvd main *::after { animation: none !important; transition: none !important; }
  .cvd main section { padding-block: 18pt; break-inside: auto; }
  .cvd main :is(h2, h3) { break-after: avoid; }
  .cvd main :is(figure, aside, li, tr, .cvd-math__row, .cvd-kg__row) { break-inside: avoid; }
  .cvd-ask { background: #fff; }
  .cvd-mv__ink, .cvd-scale__ink { stroke: #000; }
  .cvd-math__bar { border: 1px solid #000; }
  .cvd-math__bar span { background: #000; }
  .cvd [data-r] { opacity: 1 !important; transform: none !important; }
  .cvd-dose, .cvd-verdict { background: #fff; color: #000; }
  .cvd main :is(.cvd-dose, .cvd-verdict) :is(h2, h3, p, b, small, em, strong) { color: #000 !important; }
  .cvd-ask__side { position: static; }
}

/* Parts waiting to slide in sit a little to one side; without this a phone
   could be scrolled sideways until they arrive. clip keeps sticky working. */
main { overflow-x: clip; }
