/* /iv-joint-add-on: its own sheet, loaded after site.css.
   The page answers one question (IV or injection) by showing that a visit can
   hold both. Four pictures carry it: a person with a syringe at the knee and
   a drip in the arm, a two-column table, a chart with three boxes ticked, and
   the day's route from San Diego to the hospital and back.
   Script: scripts/iv-joint-add-on.js. With that script absent every part is
   visible, every drawing holds its finished state and every link still jumps. */

html:has(body.ja) {
  --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);
}
.ja {
  --ja-ease: cubic-bezier(.16, 1, .3, 1);
  --ja-gut: clamp(20px, 4vw, 56px);
  --ja-skin: color-mix(in srgb, var(--accent-ice) 30%, #fff);   /* the figure's body */
}
/* parts waiting to slide in never cause sideways scroll */
.ja main { overflow-x: clip; }

/* ============ GROUND RULES ============ */
.ja-wrap { max-width: calc(1240px + 2 * var(--ja-gut)); margin-inline: auto; padding-inline: var(--ja-gut); }
/* text fills its column; the column sets the measure */
.ja main p { max-width: none; margin: 0; }
.ja main a:not(.btn) { border-bottom: 0; }
.ja main :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
.ja main h1, .ja main h2 {
  font-family: var(--font-display); font-weight: 300; color: var(--ink);
  margin: 0; max-width: none; text-wrap: wrap;
}
.ja main h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.01em; }
.ja main h3 { margin: 0; max-width: none; }
.ja main :is(a, button, summary):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.ja .ja-close :is(a, button):focus-visible { outline-color: var(--accent-ice); }
/* a part that receives focus after a jump is not itself a control */
.ja main :is(h1, h2, h3, section)[tabindex="-1"]:focus { outline: none; }

.ja-lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); margin-top: clamp(16px, 2vw, 24px) !important; }

/* drawn lines, one weight everywhere */
.ja-ink { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ja-fillw { fill: #fff; }

/* the onward link: the arrow leans the way it points */
.ja-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; }
.ja-go span { display: inline-block; transition: transform 360ms var(--ja-ease); }
.ja-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.ja-go:hover span { transform: translateX(6px); }
.ja-go[href^="#"] span { transform: rotate(90deg); }
.ja-go[href^="#"]:hover span { transform: translateY(4px) rotate(90deg); }
.ja-go--inline { display: inline; min-height: 0; white-space: nowrap; }
/* once the hero has drawn itself, the arrow nods twice: there is more below */
.ja-js .ja-hero__actions .ja-go span { animation: ja-nod 900ms ease-in-out 3400ms 2; }
.ja ::selection { background: var(--accent-wash); color: var(--ink); }

/* ============ REVEALS ============
   Hidden only once the script has said it is running (ja-js on <html>), so
   with no script nothing is ever hidden. Each part comes in its own way. */
.ja-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--ja-ease); }
.ja-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.ja-js [data-r="right"]:not(.is-in) { transform: translateX(36px); }
.ja-js :is([data-r="vs"], [data-r="map"]):not(.is-in) { opacity: 1; transform: none; }

@keyframes ja-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes ja-fade { from { opacity: 0; } }
@keyframes ja-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ja-pop { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.25); } }
@keyframes ja-reach { from { opacity: 0; transform: translate(-40px, -12px); } }
@keyframes ja-push { from { transform: translateX(0); } }
@keyframes ja-empty { from { transform: scaleX(1); } }
@keyframes ja-drip { 0% { opacity: 0; transform: translateY(-2px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes ja-flow { to { stroke-dashoffset: -34; } }
@keyframes ja-halo { 0% { opacity: .55; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes ja-unfold { from { opacity: 0; transform: translateY(-8px); } }
@keyframes ja-clip { from { opacity: 0; transform: translateY(-14px); } }
@keyframes ja-nod { 0%, 100% { transform: rotate(90deg); } 45% { transform: translateY(5px) rotate(90deg); } }
@keyframes ja-arrive { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ============ HERO ============ */
.ja-hero { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.ja-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.ja-hero h1 { font-size: clamp(2.2rem, 4.1vw, 3.75rem); line-height: 1.06; letter-spacing: -.015em; }
/* a heading that has to wrap breaks where the styling changes */
.ja-hero h1 > .h-lead, .ja-hero h1 > em { display: inline-block; }
.ja-hero h1 > em { color: var(--accent-blue); }
.ja-hero__answer { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink); margin-top: clamp(20px, 2.4vw, 32px) !important; }
.ja-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: clamp(24px, 3vw, 36px); }
.ja-hero__fig { margin: 0; }

.ja-two { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; overflow: visible; }
.ja-two__body circle { fill: var(--ja-skin); }
.ja-two__body path { fill: none; stroke: var(--ja-skin); stroke-linecap: round; }
.ja-two__fluid { fill: var(--accent-ice); opacity: .45; }
.ja-two__drop { fill: var(--accent-blue); opacity: 0; transform-box: fill-box; }
.ja-two__flow { fill: none; stroke: var(--accent-blue); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 15; }
.ja-two__circuit { fill: none; stroke: none; }
.ja-cell, .ja-two__dose { fill: var(--accent-blue); }
.ja-two__dose { transform-box: fill-box; transform-origin: center; }
.ja-two__ring { fill: rgba(255, 255, 255, .78); stroke: var(--accent-blue); stroke-width: 1.8; }
.ja-two__halo { fill: none; stroke: var(--accent-blue); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ja-two__load { fill: var(--accent-ice); transform-box: fill-box; transform-origin: right center; transform: scaleX(.41); }
.ja-two__bag, .ja-two__tube { stroke-dasharray: 1; }
/* at rest the syringe has been pressed */
.ja-two__plunger { transform: translateX(23px); }

/* first paint: the words, then the person, then the drip is hung and the
   syringe arrives and is pressed; only then do the cells start to move */
.ja-js .ja-hero h1 > * { animation: ja-up 900ms var(--ja-ease) both; }
.ja-js .ja-hero h1 > em { animation-delay: 110ms; }
.ja-js .ja-hero__answer { animation: ja-up 900ms var(--ja-ease) 240ms both; }
.ja-js .ja-hero__actions { animation: ja-up 900ms var(--ja-ease) 340ms both; }
.ja-js .ja-two__body { animation: ja-fade 700ms ease 150ms both; }
.ja-js .ja-two__iv > * { animation: ja-fade 500ms ease 500ms both; }
.ja-js .ja-two__iv > .ja-two__bag { animation: ja-draw 800ms var(--ja-ease) 600ms both; }
.ja-js .ja-two__iv > .ja-two__tube { animation: ja-draw 900ms ease-in-out 1000ms both; }
.ja-js .ja-two__iv > .ja-two__flow { animation: ja-fade 400ms ease 1800ms both; }
.ja-js .ja-two__iv > .ja-two__drop { animation: none; }
.ja-js .ja-two__syr { animation: ja-reach 800ms var(--ja-ease) 900ms both; }
.ja-js .ja-two__plunger { animation: ja-push 900ms cubic-bezier(.4, 0, .2, 1) 1700ms both; }
.ja-js .ja-two__load { animation: ja-empty 900ms cubic-bezier(.4, 0, .2, 1) 1700ms both; }
.ja-js .ja-two__ring { animation: ja-fade 500ms ease 1500ms both; }
.ja-js .ja-two__dose { animation: ja-pop 420ms var(--ja-ease) both; }
.ja-js .ja-two__dose:nth-of-type(3) { animation-delay: 2000ms; }
.ja-js .ja-two__dose:nth-of-type(4) { animation-delay: 2140ms; }
.ja-js .ja-two__dose:nth-of-type(5) { animation-delay: 2280ms; }
.ja-js .ja-two__dose:nth-of-type(6) { animation-delay: 2420ms; }
.ja-js .ja-cell { animation: ja-fade 700ms ease 1900ms both; }
/* what loops, loops only while the figure is on screen */
.ja-hero__fig.is-live .ja-two__flow { animation: ja-fade 400ms ease 1800ms backwards, ja-flow 2600ms linear 1800ms infinite; }
.ja-js .ja-hero__fig.is-live .ja-two__iv > .ja-two__drop { animation: ja-drip 2200ms ease-in 2000ms infinite; }
.ja-hero__fig.is-live .ja-two__halo { animation: ja-halo 2800ms ease-out 2600ms infinite; }

/* ============ CONTENTS BAR (follows the reader) ============ */
.ja .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(--ja-ease), visibility 0s 360ms;
}
.ja .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--ja-ease); }
body.ja.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.ja .hc-bar__track {
  max-width: calc(1240px + 2 * var(--ja-gut)); margin: 0 auto; padding: 0 var(--ja-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;
}
.ja .hc-bar__track::-webkit-scrollbar { display: none; }
.ja .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;
  border-bottom: 0; text-decoration: none; transition: color 200ms;
}
.ja .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(--ja-ease);
}
.ja .hc-bar__track a:hover, .ja .hc-bar__track a[aria-current] { color: var(--ink); }
.ja .hc-bar__track a:hover::after { transform: scaleX(.35); }
.ja .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.ja .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.ja .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 */
.ja .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; }
.ja .hc-bar.has-more::after { opacity: 1; }

/* ============ IV VS INJECTION: the table ============ */
.ja-diff { padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px); border-top: 1px solid var(--border); }
.ja-vs { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: clamp(32px, 4vw, 56px); }
.ja-vs thead td { width: 21%; padding: 0; }
.ja-vs__col { text-align: left; vertical-align: bottom; padding: 0 clamp(16px, 2.4vw, 36px) 22px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.15; color: var(--ink); }
.ja-badge { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border: 1.7px solid currentColor; border-radius: 50%; background: #fff; }
.ja-badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ja-vs__col--iv .ja-badge { color: var(--accent-blue); }
.ja-vs tbody :is(th, td) { text-align: left; vertical-align: top; border-top: 1px solid var(--border-strong); padding-block: clamp(18px, 2vw, 26px); }
.ja-vs tbody th { padding-right: 16px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink-muted); }
.ja-vs tbody td { padding-inline: clamp(16px, 2.4vw, 36px); font-size: 18px; line-height: 1.55; color: var(--ink); }
/* one rule between the two routes, top to bottom */
.ja-vs :is(td, th):nth-child(2) { border-right: 1px solid var(--border-strong); }
.ja-vs tbody tr:last-child :is(th, td) { border-bottom: 1px solid var(--border-strong); }
.ja-diff__note { margin-top: clamp(24px, 3vw, 36px) !important; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.ja-diff__note strong { font-weight: 600; color: var(--ink); }

/* the two columns come in from their own sides, a row at a time */
.ja-js .ja-vs :is(thead th, tbody td) { transition: opacity 560ms ease, transform 760ms var(--ja-ease); transition-delay: calc(var(--n, 0) * 90ms); }
.ja-js .ja-vs tbody th { transition: opacity 560ms ease; transition-delay: calc(var(--n, 0) * 90ms); }
.ja-js .ja-vs:not(.is-in) :is(thead th, tbody th, tbody td) { opacity: 0; }
.ja-js .ja-vs:not(.is-in) :is(thead th, tbody td):nth-child(2) { transform: translateX(-28px); }
.ja-js .ja-vs:not(.is-in) :is(thead th, tbody td):nth-child(3) { transform: translateX(28px); }
.ja-vs tbody tr:nth-child(1) { --n: 1; }
.ja-vs tbody tr:nth-child(2) { --n: 2; }
.ja-vs tbody tr:nth-child(3) { --n: 3; }
.ja-vs tbody tr:nth-child(4) { --n: 4; }

/* ============ WHO GETS BOTH (the one tinted band): a chart, three boxes ticked ============ */
.ja-who { background: var(--accent-wash); padding-block: clamp(56px, 7vw, 104px); }
.ja-who__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.ja-who__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.3; color: var(--ink); margin-top: clamp(18px, 2vw, 28px) !important; }
.ja-who__text p:not(.ja-who__lead) { font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin-top: 18px; }

.ja-review { position: relative; background: #fff; border: 1.7px solid var(--ink); border-radius: 16px; padding: clamp(44px, 4vw, 56px) clamp(22px, 3vw, 40px) clamp(14px, 2vw, 22px); }
.ja-review__clip { position: absolute; left: 50%; top: -19px; width: 112px; height: 38px; margin-left: -56px; overflow: visible; }
.ja-review__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px clamp(14px, 2vw, 22px); padding-block: clamp(16px, 2vw, 22px); }
.ja-review__list li + li { border-top: 1px solid var(--border); }
.ja-tick { grid-row: span 2; width: 48px; height: 48px; overflow: visible; }
.ja-tick__mark { fill: none; stroke: var(--accent-blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.ja-review__list h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--ink); align-self: end; }
.ja-review__list p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* the chart is set down, then each box is ticked in turn */
.ja-js .ja-review { transition: opacity 620ms ease, transform 820ms var(--ja-ease); }
.ja-js .ja-review:not(.is-in) { opacity: 0; transform: translateY(26px) rotate(1.2deg); }
.ja-js .ja-review:not(.is-in) .ja-tick__mark { stroke-dashoffset: 1; }
.ja-js .ja-review.is-in .ja-tick__mark { animation: ja-draw 520ms var(--ja-ease) calc(520ms + var(--n, 0) * 260ms) backwards; }
.ja-js .ja-review.is-in .ja-review__clip { animation: ja-clip 520ms var(--ja-ease) 200ms backwards; }
.ja-review__list li:nth-child(2) { --n: 1; }
.ja-review__list li:nth-child(3) { --n: 2; }

/* ============ THE DAY: a route, and six stops ============ */
.ja-day { padding-block: clamp(56px, 7vw, 104px); }
.ja-day__grid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.ja-day__fig { margin: 0; position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 24px); }
.ja-map { display: block; width: 100%; height: auto; max-height: calc(100vh - var(--hc-nav-h) - var(--hc-bar-h) - 48px); overflow: visible; }
.ja-map__pane { fill: #fff; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; transition: fill 500ms ease; }
.ja-map__border { fill: none; stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.ja-map__road { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; }
.ja-map__done { fill: none; stroke: var(--accent-blue); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ja-map__cross { fill: none; stroke: var(--accent-blue); stroke-width: 3; stroke-linecap: round; }
.ja-map__car .ja-ic { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* while the reader is on the hours spent inside, the hospital's lights are on */
.ja-day__fig.is-inside .ja-map__win { fill: var(--accent-ice); }
/* and the cross answers the car's arrival, once */
.ja-map__cross { transform-box: fill-box; transform-origin: center; }
.ja-js .ja-day__fig.is-inside .ja-map__cross { animation: ja-arrive 700ms var(--ja-ease) 500ms; }

.ja-steps { --when: clamp(104px, 10vw, 136px); --node: 52px; }
.ja-step { position: relative; display: grid; grid-template-columns: var(--when) var(--node) minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); align-items: start; padding-bottom: clamp(28px, 3.4vw, 44px); }
.ja-step:last-child { padding-bottom: 0; }
.ja-step__when { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: var(--node); color: var(--ink); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.ja-step__node { display: grid; place-items: center; width: var(--node); height: var(--node); border: 1.7px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); transition: background-color 360ms ease, border-color 360ms ease, color 360ms ease, transform 520ms var(--ja-ease); }
.ja-step__node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* one connector per gap, circle to circle, and nothing after the last */
.ja-step:not(:last-child)::before, .ja-step:not(:last-child)::after {
  content: ""; position: absolute; width: 2px; top: calc(var(--node) + 5px); bottom: 5px;
  left: calc(var(--when) + clamp(16px, 2vw, 28px) + var(--node) / 2 - 1px);
  background: var(--border-strong);
}
.ja-step:not(:last-child)::after { background: var(--accent-blue); transform: scaleY(0); transform-origin: top; transition: transform 520ms var(--ja-ease); }
.ja-step.is-past::after { transform: scaleY(1); }
.ja-step.is-past .ja-step__node { border-color: var(--accent-blue); color: var(--accent-blue); }
.ja-step.is-now .ja-step__node { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; transform: scale(1.08); }
.ja-step__body { padding-top: 10px; }
.ja-step__body h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--ink); }
.ja-step__body p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin-top: 6px; }
.ja-step__body .ja-step__len { font-size: 16px; color: var(--ink-muted); }

/* the road is laid when the map is first seen */
.ja-js .ja-day__fig:not(.is-in) :is(.ja-map__hotel, .ja-map__hosp, .ja-map__car) { opacity: 0; }
.ja-js .ja-day__fig:not(.is-in) .ja-map__road { opacity: 0; }
.ja-js .ja-day__fig :is(.ja-map__hotel, .ja-map__hosp, .ja-map__car, .ja-map__road) { transition: opacity 700ms ease; }
.ja-js .ja-day__fig .ja-map__road { transition-delay: 250ms; }
.ja-js .ja-day__fig .ja-map__hosp { transition-delay: 450ms; }
.ja-js .ja-day__fig .ja-map__car { transition-delay: 650ms; }

/* ============ QUESTIONS ============ */
.ja-faq { padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px); border-top: 1px solid var(--border); }
.ja-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
/* the questions sit to the right of the page's left edge, under the heading */
.ja-faq__list { margin-left: clamp(0px, 18vw, 260px); }
.ja-q { border-top: 1px solid var(--border-strong); }
.ja-q:last-child { border-bottom: 1px solid var(--border-strong); }
.ja-q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding-block: 14px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.25; color: var(--ink); transition: color 200ms; }
.ja-q summary::-webkit-details-marker { display: none; }
.ja-q summary:hover { color: var(--accent-blue-hover); }
/* a press is answered before the answer opens */
.ja-q summary { -webkit-tap-highlight-color: transparent; }
.ja-q summary:active { color: var(--accent-blue); }
.ja-q summary:active .ja-q__ic { background-color: var(--accent-wash); }
.ja-q__ic { position: relative; flex: none; width: 32px; height: 32px; border: 1.5px solid currentColor; border-radius: 50%; transition: transform 420ms var(--ja-ease), background-color 260ms; }
.ja-q__ic::before, .ja-q__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform 420ms var(--ja-ease); }
.ja-q__ic::after { transform: rotate(90deg); }
.ja-q summary:hover .ja-q__ic { transform: rotate(90deg); }
.ja-q[open] .ja-q__ic { transform: rotate(180deg); }
.ja-q[open] .ja-q__ic::after { transform: rotate(0deg); }
.ja-q__a { padding: 0 52px 26px 0; }
.ja-q__a p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.ja-q[open] .ja-q__a { animation: ja-unfold 420ms var(--ja-ease); }
.ja-js .ja-q[data-r] { transition-delay: calc(var(--n, 0) * 110ms); }
.ja-q:nth-child(2) { --n: 1; }
.ja-q:nth-child(3) { --n: 2; }

/* ============ CLOSING (navy) ============ */
.ja-close { background: var(--navy-brand); color: #fff; padding-block: clamp(64px, 8vw, 120px); }
.ja-close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.ja .ja-close h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.ja .ja-close h2 em { color: var(--accent-ice); }
.ja-close__ask p { font-size: clamp(1.06rem, 1.3vw, 1.19rem); line-height: 1.65; color: rgba(255, 255, 255, .8); margin-block: 20px 32px !important; }
.ja-close__next li { border-top: 1px solid rgba(255, 255, 255, .2); }
.ja-close__next li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.ja-close__next a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; min-height: 72px; padding-block: 14px; color: #fff; text-decoration: none; }
.ja-close__next strong { font-size: 18px; font-weight: 600; line-height: 1.35; }
.ja-close__next span { grid-column: 1; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .74); }
.ja-close__next i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 20px; color: var(--accent-ice); transition: transform 360ms var(--ja-ease); }
.ja-close__next a:hover strong { text-decoration: underline; text-decoration-color: var(--accent-ice); text-underline-offset: 5px; }
.ja-close__next a:hover i { transform: translateX(6px); }
.ja-close__next a { -webkit-tap-highlight-color: transparent; transition: background-color 200ms; }
.ja-close__next a:active { background-color: rgba(255, 255, 255, .06); }
.ja-close__up a { grid-template-columns: auto minmax(0, 1fr); min-height: 60px; }
.ja-close__up i { grid-row: 1; grid-column: 1; }
.ja-close__up strong { grid-column: 2; font-weight: 500; color: rgba(255, 255, 255, .86); }
.ja-close__up a:hover i { transform: translateX(-6px); }
.ja-js .ja-close__next li[data-r] { transition-delay: calc(var(--n, 0) * 90ms); }
.ja-close__next li:nth-child(2) { --n: 1; }
.ja-close__next li:nth-child(3) { --n: 2; }
.ja-close__next li:nth-child(4) { --n: 3; }

/* ============ NARROWER ============ */
@media (max-width: 1000px) {
  .ja-who__grid, .ja-close__grid { grid-template-columns: minmax(0, 1fr); }
  .ja-faq__list { margin-left: 0; }
}
@media (max-width: 860px) {
  .ja-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ja-two { max-width: 340px; }
  .ja-day__grid { grid-template-columns: minmax(0, 1fr); }
  .ja-day__fig { position: static; }
  .ja-map { max-width: 210px; max-height: none; margin-inline: auto; }
}
@media (max-width: 720px) {
  /* the table becomes four short blocks: what is compared, then the two answers side by side */
  .ja-vs, .ja-vs thead, .ja-vs tbody { display: block; }
  .ja-vs tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  /* the empty corner leaves the layout but stays in the row, so each head still sits over its own column */
  .ja-vs thead td { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  /* on a phone the table is longer than the screen: the two column heads follow the reader down it */
  .ja-vs thead { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h)); z-index: 2; background: #fff; border-bottom: 1px solid var(--border-strong); }
  .ja-vs__col { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 1.2rem; }
  .ja-vs tbody tr:first-child th { border-top: 0; }
  .ja-vs :is(td, th):nth-child(2) { border-right: 0; }
  .ja-vs tbody th { grid-column: 1 / -1; padding: 16px 0 4px; }
  .ja-vs tbody td { border-top: 0; padding: 0 0 18px; font-size: 16px; }
  .ja-vs tbody tr:last-child th { border-bottom: 0; }
  .ja-badge { flex: none; width: 48px; height: 48px; margin-bottom: 0; }
  .ja-badge svg { width: 26px; height: 26px; }

  .ja-steps { --node: 48px; }
  .ja-step { grid-template-columns: var(--node) minmax(0, 1fr); grid-template-areas: "node when" "node body"; column-gap: 16px; }
  .ja-step__when { grid-area: when; text-align: left; line-height: 1.2; padding-top: 10px; }
  .ja-step__node { grid-area: node; }
  .ja-step__body { grid-area: body; padding-top: 4px; }
  .ja-step:not(:last-child)::before, .ja-step:not(:last-child)::after { left: calc(var(--node) / 2 - 1px); }
  .ja-step__body p, .ja-q__a p, .ja-diff__note, .ja-who__text p:not(.ja-who__lead) { font-size: 17px; }
  .ja-q__a { padding-right: 0; }
  .ja-hero__actions .btn { width: 100%; }
  .ja main h2 { text-wrap: balance; }
}

/* ============ REDUCED MOTION: every picture holds its finished state ============ */
@media (prefers-reduced-motion: reduce) {
  .ja *, .ja *::before, .ja *::after { animation: none !important; transition: none !important; }
  .ja-js [data-r], .ja-js .ja-review, .ja-js .ja-vs :is(th, td) { opacity: 1 !important; transform: none !important; }
  .ja-js .ja-day__fig * { opacity: 1 !important; }
  .ja-js .ja-review .ja-tick__mark { stroke-dashoffset: 0 !important; }
  .ja-go[href^="#"] span { transform: rotate(90deg) !important; }
  .ja-step.is-now .ja-step__node, .ja-go:hover span, .ja-close__next a:hover i, .ja-q summary:hover .ja-q__ic { transform: none; }
  .ja-go[href^="#"]:hover span { transform: rotate(90deg); }
}

/* ============ PRINT: the comparison and the day, as a document ============ */
@media print {
  .ja .hc-bar, .ja-q__ic, .ja-go[href^="#"] { display: none !important; }
  .ja main *, .ja main *::before, .ja main *::after { animation: none !important; transition: none !important; }
  .ja-js [data-r], .ja-js .ja-review, .ja-js .ja-vs :is(th, td) { opacity: 1 !important; transform: none !important; }
  .ja-js .ja-day__fig * { opacity: 1 !important; }
  .ja-js .ja-review .ja-tick__mark { stroke-dashoffset: 0 !important; }
  .ja-who, .ja-close { background: none; color: var(--ink); }
  .ja .ja-close :is(h2, h2 em, p, a, strong, span, i) { color: var(--ink) !important; }
  .ja-close__next li { border-color: var(--border-strong) !important; }
  .ja-close .btn { border: 1px solid var(--ink); background: none; color: var(--ink); }
  .ja-day__fig { position: static; }
  .ja-map { max-width: 180px; max-height: none; }
  .ja-map__done { stroke-dashoffset: 0 !important; }
  .ja-step .ja-step__node { background: #fff !important; border-color: var(--ink) !important; color: var(--ink) !important; transform: none !important; }
  .ja-step::after { display: none; }
  .ja-step, .ja-vs tr, .ja-review, .ja-q { break-inside: avoid; }
  .ja-hero, .ja-diff, .ja-who, .ja-day, .ja-faq, .ja-close { padding-block: 20px; }
  /* a question still closed is printed with its answer */
  .ja-q::details-content { content-visibility: visible; display: block; }
}
