/* /research-how-to-compare: its own sheet, loaded after site.css.
   One idea runs the page: every check is something a clinic can put on paper.
   The hero is a clipboard of the six, each check is drawn as the document you
   would ask to see, and the reader can tick each one off as a clinic answers.
   Script: scripts/research-how-to-compare.js. With that script absent every
   part is visible, every link still jumps and the tick boxes still tick. */

html:has(body.rhc) {
  --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);
}
.rhc {
  --rhc-ease: cubic-bezier(.16, 1, .3, 1);
  --rhc-gut: clamp(20px, 4vw, 56px);
  --rhc-faint: rgba(11, 29, 58, .4);
  --rhc-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

/* a word that opens the page that explains it */
.rhc-term, .rhc-same__text a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent-blue); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 200ms, text-decoration-color 200ms; }
.rhc-term { text-decoration-style: dotted; }
.rhc-term:hover, .rhc-same__text a:hover { color: var(--accent-blue-hover); text-decoration-style: solid; }

/* the onward link: the arrow leans the way it points */
.rhc-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; }
.rhc-go span { display: inline-block; transition: transform 360ms var(--rhc-ease); }
.rhc-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.rhc-go:hover span { transform: translateX(6px); }
.rhc-go[href^="#"]:hover span { transform: translateY(4px) rotate(90deg); }
.rhc-go--back:hover span { transform: translateX(-6px); }
.rhc-go:active { color: var(--ink); }

/* ============ REVEALS ============
   Hidden only once the script has said motion is on (rhc-js on <html>), so
   with no script, or with reduced motion, nothing is ever hidden. */
.rhc-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--rhc-ease); }
.rhc-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
/* these keep their box and bring their parts in themselves */
.rhc-js [data-r="draw"]:not(.is-in), .rhc-js [data-r="say"]:not(.is-in), .rhc-js [data-r="scale"]:not(.is-in) { opacity: 1; transform: none; }
.rhc-js [data-r="q"]:not(.is-in) { transform: translateX(28px); }
.rhc-js .rhc-check__body > p[data-r] { transition-delay: 80ms; }
.rhc-js .rhc-check__body > ul[data-r] { transition-delay: 160ms; }

@keyframes rhc-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes rhc-draw { from { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes rhc-pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.22); opacity: 1; } }
@keyframes rhc-fade { from { opacity: 0; } }

/* ============ HERO ============ */
.rhc-hero { padding-block: clamp(20px, 3vw, 36px) clamp(44px, 5.5vw, 80px); }
.rhc-hero__h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); margin: 0 0 clamp(36px, 4.5vw, 64px); max-width: none; text-wrap: wrap; }
/* a heading that has to wrap breaks where the styling changes */
.rhc-hero__h1 > .h-lead, .rhc-hero__h1 > em { display: inline-block; }
.rhc-hero__h1 > em { color: var(--accent-blue); }
.rhc-hero__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.rhc-hero__answer { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink); text-wrap: wrap; }
.rhc-hero__note { margin-top: 18px !important; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.rhc-hero .rhc-go { margin-top: 14px; }

/* the clipboard: the six checks, and which of them a clinic has answered */
.rhc-board { position: relative; background: #fff; border: 1.6px solid var(--ink); border-radius: 14px; padding: 30px 0 6px; box-shadow: 0 26px 48px -32px rgba(11, 29, 58, .42); }
.rhc-board__clip { position: absolute; left: 50%; top: -24px; width: 120px; height: 44px; margin-left: -60px; overflow: visible; }
.rhc-board__clip path { fill: #fff; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.rhc-board__clip circle { fill: none; stroke: var(--ink); stroke-width: 1.7; }
.rhc-board li + li { border-top: 1px solid var(--border); }
.rhc-board a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 18px; align-items: center; min-height: 64px; padding: 8px clamp(16px, 2.2vw, 28px); font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--ink); transition: background-color 220ms, color 220ms; }
.rhc-board a svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms var(--rhc-ease); }
.rhc-board a i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--rhc-faint); background: transparent center / 14px no-repeat; transition: background-color 260ms, border-color 260ms, transform 420ms var(--rhc-ease); }
.rhc-board a.is-done i { background-color: var(--accent-blue); background-image: var(--rhc-tick); border: 1.5px solid var(--accent-blue); }
.rhc-board a:hover { background-color: var(--accent-wash); color: var(--accent-blue-hover); }
.rhc-board a:hover svg { transform: translateX(4px) rotate(-3deg); }
.rhc-board a:active { background-color: #dce8f4; }
.rhc-board a:focus-visible { outline-offset: -4px; }
.rhc-board li:last-child a { border-radius: 0 0 12px 12px; }
.rhc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* first paint: the headline, the answer, then the clipboard is filled in row by row */
@keyframes rhc-row { from { opacity: 0; transform: translateX(26px); } }
@keyframes rhc-clip { from { opacity: 0; transform: translateY(-16px); } 60% { transform: translateY(3px); } }
.rhc-js .rhc-hero__h1 > * { animation: rhc-up 900ms var(--rhc-ease) both; }
.rhc-js .rhc-hero__h1 > em { animation-delay: 110ms; }
.rhc-js .rhc-hero__text > * { animation: rhc-up 900ms var(--rhc-ease) 240ms both; }
.rhc-js .rhc-hero__text > :nth-child(2) { animation-delay: 330ms; }
.rhc-js .rhc-hero__text > :nth-child(3) { animation-delay: 420ms; }
.rhc-js .rhc-board { animation: rhc-up 900ms var(--rhc-ease) 320ms both; }
.rhc-js .rhc-board__clip { animation: rhc-clip 620ms var(--rhc-ease) 900ms both; }
.rhc-js .rhc-board li { animation: rhc-row 640ms var(--rhc-ease) both; animation-delay: calc(620ms + var(--n, 0) * 90ms); }

/* ============ CONTENTS BAR (follows the reader) ============ */
.rhc .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(--rhc-ease), visibility 0s 360ms;
}
.rhc .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--rhc-ease); }
body.rhc.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.rhc .hc-bar__track {
  max-width: calc(1240px + 2 * var(--rhc-gut)); margin: 0 auto; padding: 0 var(--rhc-gut);
  height: 100%; display: flex; align-items: stretch; gap: clamp(18px, 2.2vw, 30px);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 28px;
}
.rhc .hc-bar__track::-webkit-scrollbar { display: none; }
.rhc .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;
}
.rhc .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(--rhc-ease);
}
.rhc .hc-bar__track a:hover, .rhc .hc-bar__track a[aria-current] { color: var(--ink); }
.rhc .hc-bar__track a:hover::after { transform: scaleX(.35); }
.rhc .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.rhc .hc-bar__track a:active { color: var(--accent-blue-hover); }
.rhc .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
/* a check the reader has ticked carries a small mark in the bar too */
.rhc .hc-bar__track a.is-done { padding-right: 14px; }
.rhc .hc-bar__track a.is-done::before { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; background: var(--accent-blue); }
.rhc .hc-bar__tally { display: none; margin-left: auto; flex: none; align-items: center; font-size: 14px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rhc .hc-bar__tally b { display: inline-block; margin-right: .3em; font-weight: 600; color: var(--ink); }
.rhc-on .rhc .hc-bar__tally { display: flex; }
.rhc .hc-bar__tally b.is-new { animation: rhc-pop 420ms var(--rhc-ease); }
.rhc .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 SIX CHECKS ============ */
.rhc-checks { padding-block: clamp(40px, 5vw, 72px) clamp(36px, 4.4vw, 60px); border-top: 1px solid var(--border); }
.rhc-checks__head { padding-bottom: clamp(28px, 3.4vw, 48px); }
.rhc-checks__head p { margin-top: 16px !important; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }

/* drawing | what to look for | what you will hear */
.rhc-check { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4.5vw, 72px); align-items: start; padding-block: clamp(36px, 4.4vw, 60px); border-top: 1px solid var(--border); }
.rhc-check:not(:has(.rhc-check__hear)) .rhc-check__body { grid-column: span 2; }
.rhc-check__fig { margin: 0; position: relative; }
/* answered: the drawing is marked where the eye already is */
.rhc-check__fig::after { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-blue) var(--rhc-tick) center / 20px no-repeat; opacity: 0; transform: scale(.4); transition: opacity 240ms, transform 520ms var(--rhc-ease); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rhc-check.is-answered .rhc-check__fig::after { opacity: 1; transform: none; }
.rhc-check__fig svg { display: block; width: 100%; max-width: 400px; height: auto; overflow: visible; }
.rhc-check__fig svg :is(path, rect, circle) { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke 320ms; }
.rhc-check__fig svg g[data-part] { transition: opacity 320ms; }
.rhc-check__fig svg .thin { stroke: var(--rhc-faint); stroke-width: 1.5; }
.rhc-check__fig svg .dash { stroke-dasharray: 3 6; }
.rhc-check__fig svg :is(.dot, .node, .tick-o) { fill: var(--accent-blue); stroke: none; }
.rhc-check__fig svg .tick { stroke: #fff; stroke-width: 2; }
.rhc-check__fig svg .tick.bare { stroke: var(--accent-blue); }
.rhc-check__fig svg :is(.seal, .seal-t, .ring, .sign) { stroke: var(--accent-blue); }
.rhc-check__fig svg .trace { stroke: var(--accent-blue); stroke-width: 2; }
.rhc-check__fig svg .months rect { fill: #fff; stroke-linejoin: miter; }
.rhc-check__fig svg .months .mark { fill: var(--accent-wash); }
.rhc-check__fig svg :is(.dot, .node, .tick-o, .tick, .seal, .seal-t, .back, .ring) { transform-box: fill-box; transform-origin: center; }

/* each drawing is drawn when it is reached: outline first, then what a clinic fills in */
.rhc-js [data-r="draw"] .d { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.rhc-js [data-r="draw"].is-in .d { animation: rhc-draw 820ms var(--rhc-ease) both; animation-delay: calc(var(--i, 0) * 38ms); }
.rhc-js [data-r="draw"]:not(.is-in) :is(.dot, .node, .tick-o, .tick, .seal, .seal-t, .dash, .trace, .ring, .months) { opacity: 0; }
.rhc-js [data-r="draw"].is-in :is(.dot, .node, .tick-o, .tick) { animation: rhc-pop 420ms var(--rhc-ease) both; animation-delay: calc(820ms + var(--k, 0) * 130ms); }
.rhc-js [data-r="draw"].is-in .tick { animation-name: rhc-draw; stroke-dasharray: 1; animation-delay: calc(960ms + var(--k, 0) * 130ms); }
.rhc-js [data-r="draw"].is-in :is(.dash, .ring) { animation: rhc-fade 600ms ease 1000ms both; }
/* the seal is stamped onto the card */
@keyframes rhc-stamp { from { opacity: 0; transform: scale(1.9) rotate(-14deg); } 60% { opacity: 1; transform: scale(.94) rotate(2deg); } }
.rhc-js [data-r="draw"].is-in :is(.seal, .seal-t) { animation: rhc-stamp 520ms var(--rhc-ease) 1200ms both; }
/* the case that is handed back leaves the pile */
@keyframes rhc-back { from { opacity: 0; transform: translateX(-150px); } 30% { opacity: 1; } }
.rhc-js [data-r="draw"].is-in .back { animation: rhc-back 1100ms var(--rhc-ease) 900ms both; }
/* the year is counted off, a month at a time */
@keyframes rhc-month { from { opacity: 0; transform: translateY(6px); } }
.rhc-js [data-r="draw"].is-in .months { opacity: 1; }
.rhc-js [data-r="draw"].is-in .months rect { animation: rhc-month 380ms var(--rhc-ease) both; animation-delay: calc(var(--m, 0) * 70ms); }
.rhc-js [data-r="draw"].is-in .months ~ :is(.tick-o, .tick, .d) { animation-delay: 1100ms; }
/* while it is on screen the monitor keeps reading and the telephone keeps ringing */
@keyframes rhc-trace { 0% { stroke-dashoffset: 1; opacity: 1; } 62% { stroke-dashoffset: 0; opacity: 1; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes rhc-ring { 0%, 100% { opacity: .25; transform: scale(.9); } 40% { opacity: 1; transform: scale(1.06); } }
.rhc-js [data-r="draw"].is-in .trace { opacity: 1; stroke-dasharray: 1; animation: rhc-draw 1400ms ease 700ms both; }
.rhc-js .rhc-check__fig--live.is-live.is-in .trace { animation: rhc-trace 3.2s ease-in-out 700ms infinite both; }
.rhc-js .rhc-check__fig--live.is-live.is-in .ring { animation: rhc-ring 2.4s ease-in-out 1200ms infinite both; transform-origin: 0% 100%; }
.rhc-js .rhc-check__fig--live.is-live.is-in .ring--2 { animation-delay: 1400ms; }

/* one line of the list, one part of the drawing */
.rhc-check[data-lit] g[data-part] { opacity: .28; }
.rhc-check[data-lit="1"] g[data-part="1"], .rhc-check[data-lit="2"] g[data-part="2"], .rhc-check[data-lit="3"] g[data-part="3"] { opacity: 1; }
.rhc-check[data-lit="1"] g[data-part="1"] :is(path, rect, circle):not(.tick, .tick-o, .dot, .node),
.rhc-check[data-lit="2"] g[data-part="2"] :is(path, rect, circle):not(.tick, .tick-o, .dot, .node),
.rhc-check[data-lit="3"] g[data-part="3"] :is(path, rect, circle):not(.tick, .tick-o, .dot, .node) { stroke: var(--accent-blue); }

.rhc-check__body h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.15; letter-spacing: -.005em; color: var(--ink); margin: 0 0 16px; text-wrap: wrap; }
.rhc-check__body > p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.rhc-parts { margin-top: 18px !important; }
.rhc-parts li { position: relative; padding: 7px 0 7px 30px; font-size: 17px; line-height: 1.5; color: var(--ink); transition: color 260ms; }
.rhc-parts li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid var(--ink); background: #fff; transition: background-color 260ms, border-color 260ms, box-shadow 260ms; }
.rhc-check[data-lit="1"] li[data-part="1"], .rhc-check[data-lit="2"] li[data-part="2"], .rhc-check[data-lit="3"] li[data-part="3"] { color: var(--accent-blue-hover); }
.rhc-check[data-lit="1"] li[data-part="1"]::before, .rhc-check[data-lit="2"] li[data-part="2"]::before, .rhc-check[data-lit="3"] li[data-part="3"]::before { background: var(--accent-blue); border-color: var(--accent-blue); box-shadow: 0 0 0 5px rgba(45, 110, 177, .16); }

/* what it sounds like: the answer to hope for, and the one to walk away from */
.rhc-say { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 6px; }
.rhc-say > div { position: relative; margin-left: 20px; }
.rhc-say > div::before { content: ""; position: absolute; left: -20px; top: 0; bottom: 0; width: 2px; background: var(--accent-blue); }
.rhc-say b { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--accent-blue-hover); }
.rhc-say__good p { font-family: var(--font-display); font-size: clamp(1.2rem, 1.6vw, 1.36rem); line-height: 1.4; color: var(--ink); }
.rhc-say > .rhc-say__bad::before { background: var(--border-strong); }
.rhc-say__bad b { color: var(--ink-muted); }
.rhc-say__bad p { font-size: 17px; line-height: 1.6; color: var(--ink-muted); }
.rhc-say__bad p.rhc-say__why { margin-top: 6px !important; color: var(--ink); }
.rhc-js [data-r="say"] > div { transition: opacity 620ms ease, transform 820ms var(--rhc-ease); }
.rhc-js [data-r="say"]:not(.is-in) > div { opacity: 0; transform: translateX(-20px); }
.rhc-js [data-r="say"] > .rhc-say__bad { transition-delay: 180ms; }

/* the tick box */
@keyframes rhc-check { 40% { transform: scale(.82); } 75% { transform: scale(1.12); } }
.rhc-tick { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 18px; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; -webkit-user-select: none; user-select: none; }
.rhc-tick input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.6px solid var(--ink); border-radius: 6px; background: #fff center / 16px no-repeat; cursor: pointer; transition: background-color 200ms, border-color 200ms; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rhc-tick:hover input { border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(45, 110, 177, .14); }
.rhc-tick input:checked { background-color: var(--accent-blue); border-color: var(--accent-blue); background-image: var(--rhc-tick); }
.rhc-tick input:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.rhc-tick:active input { transform: scale(.9); }
.rhc-js .rhc-tick input:checked { animation: rhc-check 380ms var(--rhc-ease); }
.rhc-tick input:checked + span { color: var(--accent-blue-hover); }

/* the count under the six */
.rhc-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; padding-top: 28px; border-top: 1px solid var(--border); }
.rhc-sum[hidden] { display: none; }
.rhc-sum__dots { display: flex; gap: 8px; }
.rhc-sum__dots li { width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid var(--ink); transition: background-color 260ms, border-color 260ms, transform 420ms var(--rhc-ease); }
.rhc-sum__dots li.is-done { background: var(--accent-blue); border-color: var(--accent-blue); transform: scale(1.12); }
.rhc-sum p { font-size: 17px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rhc-sum p b { color: var(--ink); font-weight: 600; }
.rhc-sum__open[hidden] { display: none; }
.rhc-sum__open a { display: inline-block; padding-block: 10px; color: var(--accent-blue-hover); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; transition: color 200ms; }
.rhc-sum__open a:hover { color: var(--accent-blue); }
.rhc-sum__open a:active { color: var(--ink); }
.rhc-sum__clear { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent-blue-hover); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color 200ms; }
.rhc-sum__clear:hover { color: var(--accent-blue); }
.rhc-sum__clear:active { color: var(--ink); }

/* ============ CELVA, BY THE SAME SIX (the page's one tinted band) ============ */
.rhc-same { background: var(--accent-wash); padding-block: clamp(44px, 5.5vw, 80px); }
.rhc-same__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.rhc-same__text h2 { margin-bottom: clamp(20px, 2.6vw, 32px) !important; }
.rhc-same__text p { font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.rhc-same__text p + p { margin-top: 16px !important; }
.rhc-same__note { margin-top: clamp(36px, 5vw, 64px) !important; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--border-strong); font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.72rem); line-height: 1.42; color: var(--ink); }
.rhc-scale { margin: 0; }
.rhc-scale svg { display: block; width: 100%; max-width: 360px; height: auto; margin-inline: auto; overflow: visible; }
.rhc-scale .s { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rhc-scale .s.thin { stroke: var(--rhc-faint); stroke-width: 1.4; }
.rhc-scale .s.fill { fill: var(--ink); }
.rhc-scale .s.paper { fill: #fff; }
.rhc-scale .s.acc { stroke: var(--accent-blue); stroke-width: 2; }
.rhc-scale .beam { transform-origin: 160px 56px; }
.rhc-scale .pan { transform-origin: 52px 56px; }
.rhc-scale .pan--r { transform-origin: 268px 56px; }
/* the beam tips one way, then the other, and settles level */
@keyframes rhc-tilt { 0% { transform: rotate(-7deg); } 38% { transform: rotate(4deg); } 68% { transform: rotate(-1.6deg); } 100% { transform: rotate(0); } }
@keyframes rhc-hang { 0% { transform: rotate(7deg); } 38% { transform: rotate(-4deg); } 68% { transform: rotate(1.6deg); } 100% { transform: rotate(0); } }
.rhc-js [data-r="scale"]:not(.is-in) .beam { transform: rotate(-7deg); }
.rhc-js [data-r="scale"]:not(.is-in) .pan { transform: rotate(7deg); }
.rhc-js [data-r="scale"].is-in .beam { animation: rhc-tilt 2200ms cubic-bezier(.4, 0, .2, 1) 200ms both; }
.rhc-js [data-r="scale"].is-in .pan { animation: rhc-hang 2200ms cubic-bezier(.4, 0, .2, 1) 200ms both; }

/* ============ QUESTIONS ============ */
.rhc-faq { padding-block: clamp(44px, 5.5vw, 80px); }
.rhc-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.rhc-faq__grid > h2 { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); }
.rhc-q { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; padding-block: 22px; }
.rhc-q:first-child { padding-top: 6px; }
.rhc-q + .rhc-q { border-top: 1px solid var(--border); }
.rhc-q svg { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rhc-q svg .acc { stroke: var(--accent-blue); stroke-width: 2; }
.rhc-q h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.25rem, 1.5vw, 1.36rem); line-height: 1.22; color: var(--ink); margin: 2px 0 10px; text-wrap: wrap; }
.rhc-q p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.rhc-js .rhc-q[data-r]:nth-child(2) { transition-delay: 110ms; }
.rhc-js .rhc-q[data-r]:nth-child(3) { transition-delay: 220ms; }

/* ============ THE OTHER TWO PAGES ============ */
.rhc-next { padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 72px); border-top: 1px solid var(--border); }
.rhc-route { --gap: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: clamp(28px, 3.6vw, 48px) 0 clamp(20px, 3vw, 36px) !important; }
.rhc-stop { position: relative; }
/* one connector per gap, node to node, and nothing after the last */
.rhc-stop:not(:last-child)::after { content: ""; position: absolute; left: 76px; right: calc(-1 * var(--gap) + 12px); top: 31px; height: 2px; background: linear-gradient(var(--accent-blue), var(--accent-blue)) left / 0% 100% no-repeat var(--border-strong); transition: background-size 900ms var(--rhc-ease); }
.rhc-stop.is-passed:not(:last-child)::after { background-size: 100% 100%; }
.rhc-stop__badge { display: grid; place-items: center; width: 64px; height: 64px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid var(--ink); background: #fff; color: var(--ink); transition: background-color 260ms, border-color 260ms, color 260ms, transform 420ms var(--rhc-ease); }
.rhc-stop__badge svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rhc-stop > a { display: block; color: var(--ink); border-radius: 8px; }
.rhc-stop b { display: block; margin: 20px 0 8px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.2; color: var(--ink); transition: color 220ms; }
.rhc-stop b span { display: inline-block; transition: transform 360ms var(--rhc-ease); }
.rhc-stop p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.rhc-stop > a:hover .rhc-stop__badge { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; transform: translateY(-4px); }
.rhc-stop > a:hover b { color: var(--accent-blue-hover); }
.rhc-stop > a:hover b span { transform: translateX(6px); }
.rhc-stop > a:active .rhc-stop__badge { transform: translateY(0) scale(.96); }

/* ============ THE CHECKLIST (the closing call; narrow and centred on purpose) ============ */
.rhc-end { background: var(--ink); color: #fff; text-align: center; padding-block: clamp(52px, 6vw, 88px); }
.rhc .rhc-end h2 { color: #fff; }
.rhc-end p { max-width: 38rem !important; margin: 18px auto 30px !important; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .84); }
.rhc-end__sheet { display: block; width: 64px; height: auto; margin: 0 auto 26px; fill: none; stroke: var(--accent-ice); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.rhc-end__sheet .front { fill: var(--ink); }

/* ============ NARROWER ============ */
@media (max-width: 1100px) {
  .rhc .hc-bar__tally { display: none !important; }
  /* the drawing beside the text, the two answers side by side under it */
  .rhc-check { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .rhc-check:not(:has(.rhc-check__hear)) .rhc-check__body { grid-column: auto; }
  .rhc-check__fig { grid-row: span 2; }
  .rhc-check__hear { grid-column: 2; margin-top: 22px; }
  .rhc-say { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
}
@media (max-width: 980px) {
  /* the bar's track can overflow: it fades at the edge it runs off */
  .rhc .hc-bar::before, .rhc .hc-bar::after { content: ""; position: absolute; top: 2px; bottom: 1px; width: 28px; z-index: 1; pointer-events: none; }
  .rhc .hc-bar::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
  .rhc .hc-bar::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
}
@media (max-width: 860px) {
  .rhc-hero__row, .rhc-check, .rhc-same__grid, .rhc-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .rhc-hero__row { gap: 48px; }
  .rhc-board a { min-height: 56px; }
  .rhc-check { gap: 20px; padding-block: 32px; }
  .rhc-check__fig { grid-row: auto; }
  .rhc-check__hear { grid-column: auto; margin-top: 0; }
  .rhc-check__fig svg { max-width: 240px; }
  .rhc-scale { order: 2; }
  .rhc-faq__grid > h2 { position: static; }
  .rhc-scale svg { max-width: 210px; }
  .rhc-route { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rhc-stop > a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-bottom: 36px; }
  .rhc-stop:last-child > a { padding-bottom: 8px; }
  .rhc-stop b { margin-top: 4px; }
  .rhc-stop:not(:last-child)::after { left: 31px; right: auto; top: 72px; bottom: 8px; width: 2px; height: auto; background-size: 100% 0%; background-position: top; }
  .rhc-stop.is-passed:not(:last-child)::after { background-size: 100% 100%; }
}
@media (max-width: 560px) {
  .rhc-say { grid-template-columns: minmax(0, 1fr); }
  .rhc-board a { gap: 14px; font-size: 16px; }
  .rhc-q { grid-template-columns: 48px minmax(0, 1fr); }
  .rhc-q svg { width: 48px; height: 48px; }
}

/* ============ PAPER ============
   Taken the instant the print dialog opens: nothing may still be drawing,
   fading or sliding, and the ticks print as the reader left them. */
@media print {
  .rhc .hc-bar, .rhc-sum__clear, .rhc-hero .rhc-go { display: none !important; }
  .rhc main *, .rhc main *::before, .rhc main *::after { animation: none !important; transition: none !important; }
  .rhc-js [data-r], .rhc-js [data-r] > div { opacity: 1 !important; transform: none !important; }
  .rhc-js [data-r="draw"] :is(.d, .dot, .node, .tick-o, .tick, .seal, .seal-t, .dash, .trace, .ring, .months, .back) { opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; }
  .rhc-js [data-r="draw"] .dash { stroke-dasharray: 3 6 !important; }
  .rhc-js [data-r="scale"] :is(.beam, .pan) { transform: none !important; }
  .rhc-check { break-inside: avoid; }
  .rhc-check[data-lit] g[data-part] { opacity: 1 !important; }
  .rhc-same, .rhc-end { background: #fff; }
  .rhc-end, .rhc .rhc-end h2, .rhc-end p { color: var(--ink) !important; }
  .rhc-end__sheet { stroke: var(--ink); }
  .rhc-end__sheet .front { fill: #fff; }
  .rhc-board { box-shadow: none; }
}

/* ============ REDUCED MOTION ============
   The script does not switch motion on at all when this is set at load; this
   is for a reader who sets it while the page is open. Every part holds its
   finished state. */
@media (prefers-reduced-motion: reduce) {
  .rhc main *, .rhc main *::before, .rhc main *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rhc-js [data-r], .rhc-js [data-r] > div { opacity: 1 !important; transform: none !important; }
  .rhc-js [data-r="draw"] :is(.d, .dot, .node, .tick-o, .tick, .seal, .seal-t, .dash, .trace, .ring, .months, .back) { opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; }
  .rhc-js [data-r="draw"] .dash { stroke-dasharray: 3 6 !important; }
  .rhc-js [data-r="scale"] :is(.beam, .pan) { transform: none !important; }
  .rhc .hc-bar { transition: none; }
}
