/* /joe-rogan-stem-cells-tijuana: its own sheet, loaded after site.css.
   One object runs the page: a recording. The hero draws it coming out of a
   microphone with three stretches skipped; the navy band fills the three
   in, one per thing a show leaves out; the white part after it is the
   reader's own four questions, on a line they walk down.
   Script: scripts/joe-rogan-stem-cells-tijuana.js. With that script absent
   every part is visible, every drawing holds its finished state and every
   link jumps. The fit quiz (#fit) is a shared component: nothing here styles
   its inside. */

html:has(body.jr) {
  --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);
}
.jr {
  --jr-ease: cubic-bezier(.16, 1, .3, 1);
  --jr-gut: clamp(20px, 4vw, 56px);
}
.jr main { overflow-x: clip; }

/* ============ GROUND RULES ============ */
.jr-wrap { max-width: calc(1240px + 2 * var(--jr-gut)); margin-inline: auto; padding-inline: var(--jr-gut); }
/* text fills its column; the column sets the measure */
:where(.jr main) p { max-width: none; margin: 0; }
.jr main a:not(.btn) { border-bottom: 0; }
:where(.jr main) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.jr 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: 0; max-width: none; text-wrap: wrap;
}
:where(.jr main) h3 { margin: 0; max-width: none; text-wrap: wrap; }
/* a heading that has to wrap breaks where the styling changes */
.jr main :is(h1, h2) > :is(.h-lead, em) { display: inline-block; }
.jr main :is(a, button):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.jr :is(.jr-skip, .jr-close) :is(a, button):focus-visible { outline-color: var(--accent-ice); }
/* a part that receives focus after a jump is not itself a control */
.jr main :is(h1, h2, h3, section)[tabindex="-1"]:focus { outline: none; }
.jr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the onward link: the arrow leans the way it points */
.jr-go { display: inline-block; padding-block: 10px; font-size: 16px; line-height: 1.5; 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; }
/* the arrow stays with the last word when the label wraps */
.jr-go span { display: inline-block; margin-left: 8px; transition: transform 360ms var(--jr-ease); }
.jr-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.jr-go:hover span { transform: translateX(6px); }
.jr-go[href^="#"]:hover span { transform: translateY(4px) rotate(90deg); }
.jr :is(.jr-skip, .jr-close) .jr-go { color: var(--accent-ice); }
.jr :is(.jr-skip, .jr-close) .jr-go:hover { color: #fff; }

/* a word set on a drawing: HTML, so it keeps its size when the drawing shrinks */
.jr-lab { position: absolute; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.2; font-weight: 500; color: var(--ink); white-space: nowrap; }
.jr-lab::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--ink); }
.jr-lab--cut { color: var(--accent-blue-hover); }
.jr-lab--cut::before { background: rgba(45, 110, 177, .07); border: 1.5px dashed var(--accent-blue); box-sizing: border-box; }

/* ============ REVEALS ============
   Hidden only once the script has said it is running (jr-js on <html>), so
   with no script nothing is ever hidden. Each part comes in its own way. */
.jr-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--jr-ease); }
.jr-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.jr-js [data-r="point"]:not(.is-in) { transform: translateX(32px); }
.jr-js [data-r="point"]:nth-child(2) { transition-delay: 110ms; }
.jr-js [data-r="point"]:nth-child(3) { transition-delay: 220ms; }

@keyframes jr-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes jr-fade { from { opacity: 0; } }
@keyframes jr-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* a bar of the recording rises from its middle, as sound does */
@keyframes jr-grow { from { opacity: 0; transform: scaleY(.06); } 70% { opacity: 1; transform: scaleY(1.08); } }
/* the playhead: across the recording and back */
@keyframes jr-play { from { transform: translateX(0); } to { transform: translateX(532px); } }
/* an editor's selection: the dashes round a cut move while the recording plays */
@keyframes jr-ants { to { stroke-dashoffset: -20; } }
@keyframes jr-pop { from { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.08); } }
@keyframes jr-lit { 0% { transform: scale(1); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes jr-back { from { opacity: 0; transform: scaleY(.2); } 70% { transform: scaleY(1.12); } }

/* ============ HERO ============ */
.jr-hero { padding-block: clamp(20px, 3vw, 36px) clamp(36px, 4.5vw, 64px); }
.jr-hero__h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); margin: 0 0 clamp(28px, 4vw, 56px); max-width: none; text-wrap: wrap; }
.jr-hero__h1 > em { color: var(--accent-blue); }
.jr-hero__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.jr-hero__answer { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink); }
.jr-hero__for { margin-top: 18px !important; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.jr-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.jr-hero__reviewed { margin-top: 22px !important; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

.jr-hero__fig { position: relative; margin: 0; padding-block: 34px; }
.jr-lab--air { top: 0; left: 16.9%; }
.jr-lab--cut { bottom: 0; right: 0; }
.jr-tape { display: block; width: 100%; height: auto; overflow: visible; }
.jr-tape__mic path { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jr-tape__bar { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.jr-tape__bar--cut { fill: none; stroke: var(--accent-blue); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.jr-tape__cut { fill: rgba(45, 110, 177, .07); stroke: var(--accent-blue); stroke-width: 1.3; stroke-dasharray: 5 5; }
/* the playhead exists only while the recording is playing */
.jr-tape__head { fill: none; stroke: var(--accent-blue); stroke-width: 1.6; stroke-linecap: round; opacity: 0; transition: opacity 500ms; }

/* first paint: the heading, the answer, then the microphone is drawn, the
   recording comes out of it bar by bar, and the three skipped stretches are marked */
.jr-js .jr-hero__h1 > * { animation: jr-up 900ms var(--jr-ease) both; }
.jr-js .jr-hero__h1 > em { animation-delay: 110ms; }
.jr-js .jr-hero__text > * { animation: jr-up 900ms var(--jr-ease) 240ms both; }
.jr-js .jr-hero__text > .jr-hero__for { animation-delay: 320ms; }
.jr-js .jr-hero__text > .jr-hero__actions { animation-delay: 400ms; }
.jr-js .jr-hero__text > .jr-hero__reviewed { animation-delay: 480ms; }
.jr-js .jr-tape__mic path { stroke-dasharray: 1; animation: jr-draw 800ms var(--jr-ease) 200ms both; }
.jr-js .jr-tape__bar { animation: jr-grow 520ms var(--jr-ease) calc(650ms + var(--i) * 26ms) both; }
.jr-js .jr-tape__cut { animation: jr-fade 600ms ease calc(1900ms + var(--k) * 260ms) both; }
.jr-js .jr-lab--air { animation: jr-fade 500ms ease 900ms both; }
.jr-js .jr-lab--cut { animation: jr-fade 600ms ease 2300ms both; }
/* the fade is named again here, or the loop would replace it and the outlines would be there before the bars */
.jr-hero__fig.is-live .jr-tape__cut { animation: jr-fade 600ms ease calc(1900ms + var(--k) * 260ms) both, jr-ants 3.2s linear 2800ms infinite; }
.jr-hero__fig.is-live .jr-tape__head { opacity: 1; animation: jr-play 16s linear 2600ms infinite alternate both; }

/* ============ CONTENTS BAR (follows the reader) ============ */
.jr .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(--jr-ease), visibility 0s 360ms;
}
.jr .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--jr-ease); }
body.jr.nav-open .hc-bar, html.qz-lock .jr .hc-bar { opacity: 0; visibility: hidden; }
.jr .hc-bar__track {
  max-width: calc(1240px + 2 * var(--jr-gut)); margin: 0 auto; padding: 0 var(--jr-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;
}
.jr .hc-bar__track::-webkit-scrollbar { display: none; }
.jr .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;
}
.jr .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(--jr-ease);
}
.jr .hc-bar__track a:hover, .jr .hc-bar__track a[aria-current] { color: var(--ink); }
.jr .hc-bar__track a:hover::after { transform: scaleX(.35); }
.jr .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.jr .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.jr .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));
}
/* the track runs off a phone's edge: a fade says there is more */
.jr .hc-bar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 80%); pointer-events: none; opacity: 0; transition: opacity 200ms; }
.jr .hc-bar.has-more::after { opacity: 1; }

/* ============ WHAT THEY GET RIGHT: three lines of a ledger, each ticked ============ */
.jr-right { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.jr-right__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.jr-right__head p { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); }
.jr-points { border-top: 1px solid var(--border-strong); }
.jr-point { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(20px, 3vw, 48px); align-items: start; padding-block: clamp(22px, 2.6vw, 34px); border-bottom: 1px solid var(--border); }
.jr-point:last-child { border-bottom-color: var(--border-strong); }
.jr-point h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.18; color: var(--ink); padding-top: 10px; }
.jr-point p { font-size: 17px; line-height: 1.68; color: var(--ink-soft); padding-top: 12px; }
.jr-point__badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--accent-blue); background: #fff; }
.jr-point__badge svg { width: 32px; height: 32px; }
.jr-point__badge path { fill: none; stroke: var(--accent-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* the tick is drawn as its line arrives */
.jr-js [data-r="point"]:not(.is-in) .jr-point__badge path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.jr-js [data-r="point"].is-in .jr-point__badge { animation: jr-pop 520ms var(--jr-ease) 180ms both; }
.jr-js [data-r="point"].is-in .jr-point__badge path { stroke-dasharray: 1; animation: jr-draw 520ms var(--jr-ease) 520ms both; }
.jr-js [data-r="point"]:nth-child(2).is-in .jr-point__badge { animation-delay: 290ms; }
.jr-js [data-r="point"]:nth-child(2).is-in .jr-point__badge path { animation-delay: 630ms; }
.jr-js [data-r="point"]:nth-child(3).is-in .jr-point__badge { animation-delay: 400ms; }
.jr-js [data-r="point"]:nth-child(3).is-in .jr-point__badge path { animation-delay: 740ms; }

/* ============ WHAT THEY SKIP (navy): the recording, with three pieces put back ============ */
.jr-skip { background: var(--navy-brand); color: #fff; padding-block: clamp(56px, 7vw, 104px); }
.jr-skip h2 { color: #fff !important; margin-bottom: clamp(14px, 1.6vw, 22px) !important; }
.jr-skip__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.28; color: var(--accent-ice); }
.jr-cuts { --jr-gap: clamp(28px, 4vw, 64px); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 64px) !important; }
.jr-cut { display: grid; align-content: start; justify-items: start; padding-right: var(--jr-gap); }
.jr-cut:last-child { padding-right: 0; }
/* side by side the three strips meet edge to edge: one recording, cut three times */
.jr-strip { display: block; width: calc(100% + var(--jr-gap)); max-width: none; height: 72px; overflow: visible; margin-bottom: 26px; }
.jr-cut:last-child .jr-strip { width: 100%; }
.jr-strip__bar { fill: rgba(255, 255, 255, .5); }
.jr-strip__bar--cut { fill: var(--accent-ice); stroke: var(--accent-ice); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.jr-strip__cut { fill: rgba(124, 169, 209, .1); stroke: var(--accent-ice); stroke-width: 1.2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.jr-cut h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.18; color: #fff; margin-bottom: 12px; }
.jr-cut p { font-size: 17px; line-height: 1.68; color: rgba(255, 255, 255, .84); }
.jr-cut .jr-go { margin-top: 10px; }
/* while the script is walking it, a piece not yet reached is still missing:
   its bars are outlines, and they fill as the playhead gets there */
.jr-cuts[data-live] .jr-cut:not(.is-passed) .jr-strip__bar--cut { fill: transparent; stroke-dasharray: 2.5 2; }
.jr-cuts[data-live] .jr-cut.is-passed .jr-strip__bar--cut { animation: jr-back 460ms var(--jr-ease) calc(var(--i) * 30ms) backwards; }
.jr-cuts[data-live] .jr-cut > :is(h3, p, a) { transition: opacity 500ms; }
.jr-cuts[data-live] .jr-cut:not(.is-passed) > :is(h3, p, a) { opacity: .8; }
.jr-cuts::before { content: ""; position: absolute; left: 0; top: -8px; width: 2px; height: 88px; background: #fff; border-radius: 1px; opacity: 0; transform: translateX(var(--jr-x, 0)); transition: opacity 300ms; pointer-events: none; }
.jr-cuts[data-live][data-across]::before { opacity: var(--jr-head, 0); }

/* ============ HOW TO VET: four questions on a line the reader walks down ============ */
.jr-vet { padding-block: clamp(56px, 7vw, 104px) clamp(8px, 2vw, 24px); }
.jr-vet h2 { margin-bottom: clamp(28px, 4vw, 52px) !important; }
.jr-vet__grid > h2 { grid-column: 1 / -1; }
.jr-vet__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 88px); align-items: start; }
.jr-vet__aside { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); display: grid; gap: 24px; justify-items: start; }
.jr-vet__aside p { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); }
.jr-stop { --jr-b: 64px; position: relative; display: grid; justify-items: start; padding-left: calc(var(--jr-b) + clamp(18px, 2.4vw, 32px)); padding-bottom: clamp(32px, 4vw, 52px); min-height: var(--jr-b); }
.jr-stop:last-child { padding-bottom: 0; }
.jr-stop__badge { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: var(--jr-b); height: var(--jr-b); border-radius: 50%; border: 1.5px solid var(--border-strong); background: #fff; transition: border-color 400ms; }
.jr-stop__badge svg { width: 34px; height: 34px; }
.jr-stop__badge :is(path, rect) { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 400ms; }
/* one connector per gap, badge to badge, and nothing after the last */
.jr-stop:not(:last-child)::before, .jr-stop:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--jr-b) / 2 - 1px); top: var(--jr-b); bottom: 0; width: 2px; }
.jr-stop:not(:last-child)::before { background: var(--border); }
.jr-stop:not(:last-child)::after { background: var(--accent-blue); transform-origin: top; transition: transform 700ms var(--jr-ease); }
.jr-route[data-live] .jr-stop:not(:has(+ .jr-stop.is-passed))::after { transform: scaleY(0); }
.jr-route:not([data-live]) .jr-stop__badge, .jr-stop.is-passed .jr-stop__badge { border-color: var(--accent-blue); }
.jr-route:not([data-live]) .jr-stop__badge :is(path, rect), .jr-stop.is-passed .jr-stop__badge :is(path, rect) { stroke: var(--accent-blue-hover); }
.jr-route[data-live] .jr-stop.is-passed .jr-stop__badge { animation: jr-lit 520ms var(--jr-ease); }
.jr-stop h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.2; color: var(--ink); margin-bottom: 10px; padding-top: 4px; }
.jr-stop p { font-size: 17px; line-height: 1.68; color: var(--ink-soft); }
.jr-stop .jr-go { margin-top: 6px; }

/* the four questions, to take to another clinic */
.jr-copy { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px 0 16px; border: 1px solid var(--border-strong); border-radius: 4px; background: #fff; font: 600 15px/1 var(--font-body); color: var(--ink); cursor: pointer; transition: border-color 200ms, color 200ms, transform 200ms var(--jr-ease); }
.jr-copy[hidden] { display: none; }
.jr-copy:hover { border-color: var(--accent-blue); color: var(--accent-blue-hover); }
.jr-copy:active { transform: scale(.97); }
.jr-copy__ic { flex: none; width: 24px; height: 24px; }
.jr-copy__ic :is(path, rect) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms, transform 360ms var(--jr-ease); transform-box: fill-box; transform-origin: center; }
.jr-copy:hover .jr-copy__sheet { transform: translate(1.5px, 1.5px); }
.jr-copy:hover .jr-copy__back { transform: translate(-1px, -1px); }
.jr-copy__tick { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 2 !important; }
.jr-copy.is-done { border-color: var(--accent-blue); color: var(--accent-blue-hover); }
.jr-copy.is-done :is(.jr-copy__sheet, .jr-copy__back) { opacity: 0; }
.jr-copy.is-done .jr-copy__tick { animation: jr-draw 420ms var(--jr-ease) 80ms both; }
.jr-copy.is-refused { border-color: var(--ink); }
/* copied: the four badges answer in turn, so the eye sees which four went */
.jr-route.is-copied .jr-stop__badge { animation: jr-lit 520ms var(--jr-ease) calc(var(--n) * 90ms); }

/* ============ THE FIT QUIZ (shared): only where a jump to it comes to rest ============ */
.jr .qz { scroll-margin-top: -40px; }

/* ============ CLOSING (navy) ============ */
.jr-close { background: var(--navy-brand); color: #fff; padding-block: clamp(64px, 8vw, 120px) clamp(48px, 6vw, 72px); text-align: center; }
.jr-close__inner { display: grid; justify-items: center; }
.jr-close h2 { color: #fff !important; font-size: clamp(2.1rem, 4vw, 3.4rem) !important; margin-bottom: 20px !important; }
.jr-close h2 em { color: var(--accent-ice); }
/* the one narrow, centred block on the page: the call */
.jr-close__inner > p { max-width: 640px !important; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .84); }
.jr-close__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; margin-top: 32px; }
.jr-close .jr-close__fine { max-width: none !important; margin-top: 30px !important; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .74); }

/* a press is felt before the page answers it; the page's own press states stand in for the grey tap flash */
.jr main :is(a, button):not(.qz *) { -webkit-tap-highlight-color: transparent; }
.jr-go:active span { transform: translateX(2px) scale(.94); }
.jr .hc-bar__track a:active { color: var(--accent-blue-hover); }
/* selected text takes the page's own blue, and stays legible on navy */
.jr main ::selection { background: var(--accent-blue); color: #fff; }

/* a part reached by a jump says so, once */
@keyframes jr-here { from { background-size: 100% .12em; } to { background-size: 0 .12em; } }
.jr-js main h2.is-landed { background: linear-gradient(var(--accent-ice), var(--accent-ice)) left 100% / 0 .12em no-repeat; animation: jr-here 1400ms var(--jr-ease) 200ms backwards; }

/* ============ NARROWER ============ */
@media (max-width: 899px) {
  .jr-hero__row, .jr-vet__grid { grid-template-columns: minmax(0, 1fr); }
  .jr-vet__aside { position: static; margin-bottom: 36px; }
  .jr-point { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; }
  .jr-point__badge { width: 48px; height: 48px; grid-row: 1 / span 2; }
  .jr-point__badge svg { width: 28px; height: 28px; }
  .jr-point h3 { padding-top: 8px; }
  .jr-point p { grid-column: 2; padding-top: 10px; }
  /* stacked, each piece has its own strip */
  .jr-cuts { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .jr-cut { padding-right: 0; }
  .jr-strip { width: 100%; height: 60px; margin-bottom: 20px; }
}
@media (max-width: 599px) {
  .jr-hero__actions .btn { width: 100%; }
  .jr-lab { font-size: 13px; }
  .jr-lab--air { left: 0; }
  .jr-stop { --jr-b: 52px; padding-left: calc(var(--jr-b) + 16px); }
  .jr-stop__badge svg { width: 28px; height: 28px; }
  .jr-copy { width: 100%; justify-content: center; }
  .jr-close { text-align: left; }
  .jr-close__inner { justify-items: start; }
  .jr-close__actions { justify-content: flex-start; width: 100%; }
  .jr-close .btn { width: 100%; }
}

/* ============ REDUCED MOTION: the end states, held ============ */
@media (prefers-reduced-motion: reduce) {
  .jr main :not(.qz, .qz *), .jr main :not(.qz, .qz *)::before, .jr main :not(.qz, .qz *)::after { animation: none !important; transition: none !important; }
  .jr-js [data-r] { opacity: 1 !important; transform: none !important; }
  .jr-js [data-r] .jr-point__badge path { stroke-dashoffset: 0 !important; }
  .jr-tape__head { opacity: 0 !important; }
  .jr-cuts .jr-cut > * { opacity: 1 !important; }
  .jr-cuts::before { display: none; }
}

/* ============ PRINT: the finished page, dark on white ============ */
@media print {
  .jr .hc-bar, .jr-go[href^="#"], .jr-copy, .jr-tape__head, .jr-cuts::before { display: none !important; }
  .jr main :not(.qz, .qz *), .jr main :not(.qz, .qz *)::before, .jr main :not(.qz, .qz *)::after { animation: none !important; transition: none !important; }
  .jr-js [data-r] { opacity: 1 !important; transform: none !important; }
  .jr-js [data-r] .jr-point__badge path { stroke-dashoffset: 0 !important; }
  .jr-skip, .jr-close { background: none !important; color: var(--ink) !important; }
  .jr :is(.jr-skip, .jr-close) :is(h2, h3, p, em, a) { color: var(--ink) !important; opacity: 1 !important; }
  .jr-strip__bar { fill: var(--ink-muted) !important; }
  .jr-strip__bar--cut { fill: var(--ink) !important; stroke: var(--ink) !important; stroke-dasharray: none !important; }
  .jr-strip__cut { stroke: var(--ink) !important; fill: none !important; }
  .jr-stop::after { transform: none !important; background: var(--ink) !important; }
  .jr-stop__badge { border-color: var(--ink) !important; }
  .jr-stop__badge :is(path, rect) { stroke: var(--ink) !important; }
  .jr-vet__aside { position: static; }
  .jr-point, .jr-cut, .jr-stop { break-inside: avoid; }
  /* on paper each question is followed by a ruled line: room for the clinic's answer */
  .jr-stop > p::after { content: ""; display: block; height: 34px; border-bottom: 1px solid var(--ink-muted); }
}
