/*
Theme Name: Ramsay Research
Theme URI: https://ramsay.clinrol.com
Author: Clinrol
Author URI: https://clinrol.com
Description: Ramsay Health Care clinical trials site with the Ramsay Clinical Trial Hub sign-up and study pages. Built from the Ramsay x Clinrol Figma designs (registry v2, studies directory, study pages) and the Ramsay Research & Development Network design system. Studies load from the Clinrol dashboard API.
Version: 1.19.5
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: ramsay-research
*/

/* ---------- Tokens (Ramsay RRDN design system + Figma registry v2) ---------- */
:root {
  --rr-navy: #0d3050;
  --rr-navy-line: #254b6b;
  --rr-navy-rule: #41617a;
  --rr-blue: #0194d3;
  --rr-blue-action: #0077c8;
  --rr-blue-action-hover: #00629f;
  --rr-blue-soft: #e8f2fc;
  --rr-blue-pale: #8cccf2;
  --rr-surface-tint: #f0f4fa;
  --rr-white: #ffffff;
  --rr-ink: #454545; /* Ramsay body text */
  --rr-ink-strong: #152638;
  --rr-ink-grey: #454545;
  --rr-muted: #738094;
  --rr-muted-2: #63738c;
  --rr-muted-3: #657b96;
  --rr-border: #e2e8f0;
  --rr-border-2: #d9e3f0;
  --rr-nav-text: #c4d2df;
  --rr-footer-text: #9db1c4;
  --rr-success: #16854a;
  --rr-error: #d92e21;
  --rr-focus: #0d3050;

  --rr-font: "Roboto", Arial, Helvetica, sans-serif;
  --rr-container: 1200px;
  --rr-gutter: 80px;
  --rr-radius-sm: 4px;
  --rr-radius: 6px;
  --rr-radius-md: 12px;
  --rr-radius-lg: 16px;
  --rr-shadow-card: 0 8px 28px 0 rgba(13, 48, 80, 0.05);
  --rr-shadow-panel: 0 12px 32px 0 rgba(0, 0, 0, 0.18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--rr-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--rr-ink);
  background: var(--rr-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rr-blue); }
h1, h2, h3, h4 { color: var(--rr-navy); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--rr-focus); outline-offset: 2px; }
.rr-on-dark :focus-visible { outline-color: var(--rr-white); }
.screen-reader-text, .rr-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rr-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--rr-white); color: var(--rr-navy); padding: 12px 16px; }
.rr-skip:focus { left: 16px; top: 16px; }

.rr-container { width: 100%; max-width: var(--rr-container); margin: 0 auto; padding: 0 var(--rr-gutter); }
.rr-eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-blue); }
.rr-h2 { font-size: 36px; line-height: 40px; letter-spacing: -1px; font-weight: 600; color: var(--rr-navy); }
.rr-h3 { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--rr-navy); }
.rr-body { font-size: 16px; line-height: 24px; color: var(--rr-ink); }

/* ---------- Buttons ---------- */
.rr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/24px var(--rr-font); color: var(--rr-white); background: var(--rr-blue-action);
  border: 0; border-radius: 8px; padding: 16px 32px; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.rr-btn:hover { background: var(--rr-blue-action-hover); }
.rr-btn--light { background: var(--rr-white); color: var(--rr-navy); }
.rr-btn--light:hover { background: var(--rr-blue-soft); }
.rr-btn--ghost { background: transparent; color: var(--rr-white); border: 1px solid var(--rr-navy-line); box-shadow: none; padding: 10px; font-weight: 400; font-size: 14px; line-height: 20px; border-radius: var(--rr-radius-sm); }
.rr-btn--ghost:hover { background: var(--rr-navy-line); }
.rr-link-arrow { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--rr-blue-action); text-decoration: none; }
.rr-link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.rr-header { background: var(--rr-navy); color: var(--rr-white); padding: 28px 0 62px; }
.rr-header--flush { padding-bottom: 28px; }
.rr-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--rr-container); margin: 0 auto; padding: 0 var(--rr-gutter); }
.rr-header__logo { display: block; flex: none; }
.rr-header__logo img { width: 112px; height: auto; }
.rr-nav { display: flex; align-items: center; gap: 32px; }
.rr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.rr-nav a { color: var(--rr-nav-text); font-size: 14px; line-height: 20px; text-decoration: none; white-space: nowrap; }
.rr-nav a:hover, .rr-nav .current-menu-item > a { color: var(--rr-white); }
.rr-header__actions { display: flex; align-items: center; gap: 32px; }
.rr-header__search { display: inline-flex; width: 19px; height: 19px; color: var(--rr-white); background: none; border: 0; padding: 0; cursor: pointer; }
.rr-header__search svg { width: 19px; height: 19px; }
.rr-menu-toggle { display: none; background: none; border: 1px solid var(--rr-navy-line); color: var(--rr-white); border-radius: var(--rr-radius-sm); padding: 8px 10px; font: 400 14px/20px var(--rr-font); cursor: pointer; }

/* ---------- Title band (directory, study, privacy) ---------- */
.rr-title-band { background: var(--rr-navy); color: var(--rr-white); padding: 8px 0 56px; }
.rr-title-band__kicker { color: var(--rr-blue-pale); font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.rr-title-band h1 { color: var(--rr-white); font-size: 36px; line-height: 40px; letter-spacing: -1px; font-weight: 600; }

/* ---------- Registry hero ---------- */
.rr-hero { position: relative; background: var(--rr-surface-tint); }
.rr-hero__photo { position: relative; height: 460px; overflow: hidden; background: var(--rr-surface-tint); }
.rr-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rr-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 48, 80, 0.55) 0%, rgba(13, 48, 80, 0) 45%); }
.rr-hero__wrap { position: relative; max-width: var(--rr-container); margin: 0 auto; padding: 0 var(--rr-gutter); }
.rr-hero__panel {
  position: relative; margin-top: -170px; width: 608px; max-width: 100%;
  background: var(--rr-navy); color: var(--rr-white); border-radius: var(--rr-radius);
  box-shadow: var(--rr-shadow-panel); padding: 40px 44px; display: flex; flex-direction: column; gap: 16px;
}
.rr-hero__eyebrow { color: var(--rr-blue-pale); font-size: 14px; line-height: 20px; font-weight: 600; }
.rr-hero__title { color: var(--rr-white); font-size: 36px; line-height: 40px; letter-spacing: -1px; font-weight: 600; }
.rr-hero__text { color: rgba(255, 255, 255, 0.85); font-size: 18px; line-height: 28px; }
.rr-hero__stats { display: flex; gap: 36px; padding-top: 8px; flex-wrap: wrap; }
.rr-hero__stat b { display: block; font-size: 30px; line-height: 36px; letter-spacing: -1px; font-weight: 600; color: var(--rr-white); }
.rr-hero__stat span { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.75); }

/* Hub hero: family photo from the Clinical Trial Hub collateral. Taller on wide screens so all three faces stay in frame. */
.rr-hero--hub .rr-hero__photo { height: clamp(260px, 26vw, 440px); } /* shorter on desktop so the button and form show sooner */
.rr-hero--hub .rr-hero__photo img { object-position: 60% 50%; }
.rr-hero--hub + .rr-registry .rr-registry__inner { padding-top: 32px; }
@media (min-width: 641px) and (max-width: 899px) { .rr-hero--hub .rr-hero__photo { height: 360px; } .rr-hero--hub .rr-hero__photo img { object-position: 72% 45%; } .rr-hero--hub .rr-hero__panel { margin-top: -96px; } } /* tablets: more of the photo shows above the panel */
.rr-hero--hub .rr-hero__title { font-size: 30px; line-height: 36px; } /* one line on desktop */
@media (min-width: 900px) { .rr-hero--hub .rr-hero__panel { width: 660px; padding: 32px 40px; gap: 12px; } .rr-hero--hub .rr-hero__stat { flex: 0 1 auto; } .rr-hero--hub .rr-hero__stat span { white-space: nowrap; } }
.rr-hero--hub .rr-hero__photo::after { background: linear-gradient(90deg, rgba(13, 48, 80, 0.6) 0%, rgba(13, 48, 80, 0.15) 40%, rgba(13, 48, 80, 0) 60%); }

/* ---------- Breadcrumb ---------- */
.rr-breadcrumb { background: var(--rr-surface-tint); }
.rr-breadcrumb--white { background: var(--rr-white); }
.rr-breadcrumb ol { list-style: none; margin: 0 auto; max-width: var(--rr-container); padding: 28px var(--rr-gutter) 4px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 20px; }
.rr-breadcrumb li { display: flex; gap: 8px; color: var(--rr-navy); font-weight: 400; }
.rr-breadcrumb li + li::before { content: "\203A"; color: var(--rr-muted-2); font-weight: 400; }
.rr-breadcrumb a { color: var(--rr-blue); text-decoration: none; font-weight: 400; }
.rr-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Registry main ---------- */
.rr-registry { background: var(--rr-surface-tint); }
.rr-registry__inner { max-width: var(--rr-container); margin: 0 auto; padding: 40px var(--rr-gutter) 88px; display: flex; gap: 48px; align-items: flex-start; }
.rr-registry__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.rr-registry__aside { flex: 0 0 540px; width: 540px; }
/* Form stays on screen while you scroll, but only when the whole form fits (set by clinrol-form.js). */
/* Desktop: the form (with its note) stays on screen while the left column scrolls, then stops just above the consent card at the end of the section. */
.rr-registry__aside.is-sticky { align-self: stretch; }
.rr-registry__aside.is-sticky .rr-registry__track { flex: 1 0 auto; }
.rr-registry__aside.is-sticky .rr-registry__stick { position: sticky; top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); }
.rr-form-embed { min-height: 560px; }
.rr-block { display: flex; flex-direction: column; gap: 10px; }
.rr-block .rr-h2 { max-width: 428px; }
.rr-content { font-size: 16px; line-height: 24px; color: var(--rr-ink); }
.rr-content > * + * { margin-top: 12px; }

.rr-steps { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 20px; counter-reset: rr-step; }
.rr-steps li { display: flex; gap: 16px; align-items: flex-start; counter-increment: rr-step; }
.rr-steps li::before {
  content: counter(rr-step); flex: none; width: 40px; height: 40px; border-radius: 99px; background: var(--rr-blue);
  color: var(--rr-white); font-weight: 600; font-size: 16px; line-height: 40px; text-align: center;
}
.rr-steps strong { display: block; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--rr-navy); }
.rr-steps span { display: block; margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--rr-ink); max-width: 372px; }

.rr-pills { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-direction: column; gap: 10px; }
.rr-pills li { display: flex; align-items: center; gap: 12px; background: var(--rr-white); border-radius: var(--rr-radius); padding: 12px 16px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--rr-navy); }
.rr-pills li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rr-blue); }

.rr-agreement { background: var(--rr-white); border: 1px solid var(--rr-border-2); border-radius: var(--rr-radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rr-agreement h3 { font-size: 18px; line-height: 28px; font-weight: 600; }
.rr-agreement ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: rr-agree; }
.rr-agreement li { display: flex; gap: 12px; font-size: 14px; line-height: 20px; color: var(--rr-ink); counter-increment: rr-agree; }
.rr-agreement li::before { content: counter(rr-agree) "."; flex: none; font-weight: 600; color: var(--rr-blue); }
.rr-agreement a { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-blue); }

/* ---------- Form card (wraps the Clinrol embed) ---------- */
.rr-form-card { background: var(--rr-white); border: 1px solid var(--rr-border); border-radius: var(--rr-radius-lg); box-shadow: var(--rr-shadow-card); padding: 30px; display: flex; flex-direction: column; gap: 24px; }
.rr-form-card__head { display: flex; flex-direction: column; gap: 8px; }
.rr-form-card__eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-blue-action); }
.rr-form-card__title { font-size: 30px; line-height: 36px; letter-spacing: -1px; font-weight: 600; color: var(--rr-navy); }
.rr-form-card__sub { font-size: 14px; line-height: 20px; color: var(--rr-muted); }
.rr-form-embed { min-height: 520px; }
.rr-form-embed__fallback { border: 2px dashed var(--rr-border); border-radius: var(--rr-radius-md); background: var(--rr-surface-tint); padding: 40px 24px; text-align: center; color: var(--rr-muted); font-size: 14px; line-height: 20px; }
.rr-form-embed__fallback b { display: block; color: var(--rr-navy); font-size: 16px; line-height: 24px; margin-bottom: 6px; }
.rr-form-embed__loading { display: flex; align-items: center; justify-content: center; min-height: 320px; color: var(--rr-muted); font-size: 14px; line-height: 20px; }
.rr-form-note { font-size: 14px; line-height: 20px; color: var(--rr-muted); }

/* Powered by Clinrol */
.rr-powered { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; font-size: 14px; font-weight: 400; line-height: 20px; color: #64748b; text-decoration: none; cursor: pointer; transition: color 0.15s ease; }
.rr-powered img { height: 20px; width: auto; transition: opacity 0.15s ease; }
.rr-powered:hover, .rr-powered:focus-visible { color: var(--rr-navy); }
.rr-powered:hover img { opacity: 0.85; }
.rr-powered--dark:hover, .rr-powered--dark:focus-visible { color: var(--rr-white); }
.rr-powered--dark { color: rgba(255, 255, 255, 0.7); }
.rr-powered--dark img { height: 22px; }

/* ---------- Quick links ---------- */
.rr-quicklinks { background: var(--rr-navy); color: var(--rr-white); }
.rr-quicklinks__inner { max-width: var(--rr-container); margin: 0 auto; padding: 56px var(--rr-gutter); display: flex; flex-direction: column; gap: 24px; }
.rr-quicklinks h2 { color: var(--rr-white); font-size: 30px; line-height: 36px; letter-spacing: -1px; font-weight: 600; }
.rr-quicklinks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rr-quick { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--rr-blue); color: var(--rr-white); border-radius: var(--rr-radius-sm); padding: 18px 14px; font-size: 14px; white-space: nowrap; line-height: 20px; font-weight: 600; text-decoration: none; height: 100%; }
.rr-quick::after { content: "\2192"; font-size: 18px; line-height: 28px; font-weight: 600; }
.rr-quick:hover { background: var(--rr-blue-action); }

/* ---------- Research cards ---------- */
.rr-research { background: var(--rr-white); }
.rr-research__inner { max-width: var(--rr-container); margin: 0 auto; padding: 72px var(--rr-gutter) 80px; display: flex; flex-direction: column; gap: 28px; }
.rr-research__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rr-research__grid li { display: flex; flex-direction: column; gap: 12px; }
.rr-research__grid img { width: 100%; aspect-ratio: 222 / 125; object-fit: cover; border-radius: var(--rr-radius); background: var(--rr-surface-tint); }
.rr-research__grid h3 { font-size: 18px; line-height: 28px; font-weight: 600; }
.rr-research__grid p { font-size: 16px; line-height: 24px; color: var(--rr-ink); }

/* ---------- Footer ---------- */
.rr-footer { background: var(--rr-navy); color: var(--rr-footer-text); }
.rr-footer__inner { max-width: var(--rr-container); margin: 0 auto; padding: 45px var(--rr-gutter); display: flex; flex-direction: column; gap: 30px; }
.rr-footer__cols { display: flex; gap: 40px; align-items: flex-start; }
.rr-footer__brand { flex: 0 0 230px; display: flex; flex-direction: column; gap: 14px; }
.rr-footer__brand img { width: 96px; height: auto; }
.rr-footer__brand p { font-size: 14px; line-height: 20px; color: var(--rr-footer-text); }
.rr-footer__group { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; }
.rr-footer__group h2 { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-nav-text); }
.rr-footer__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rr-footer__group a { color: var(--rr-footer-text); text-decoration: none; }
.rr-footer__group a:hover { color: var(--rr-white); text-decoration: underline; }
.rr-footer__rule { height: 1px; background: var(--rr-navy-rule); border: 0; margin: 0; }
.rr-footer__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; color: var(--rr-footer-text); }

/* ---------- Studies directory components (S00) ---------- */
.rr-section { padding: 64px 0; }
.rr-section--tint { background: var(--rr-surface-tint); }
.rr-section__inner { max-width: var(--rr-container); margin: 0 auto; padding: 0 var(--rr-gutter); display: flex; flex-direction: column; gap: 24px; }
.rr-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 600; background: rgba(0, 119, 200, 0.1); color: var(--rr-blue-action); white-space: nowrap; }
.rr-badge--new { background: var(--rr-success); color: var(--rr-white); }
.rr-badge--open { background: rgba(22, 133, 74, 0.1); color: var(--rr-success); }
.rr-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.rr-study-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rr-study-card { background: var(--rr-white); border: 1px solid var(--rr-border); border-radius: var(--rr-radius-md); padding: 20px; display: flex; flex-direction: column; gap: 10px; height: 100%; position: relative; }
.rr-study-card:hover { border-color: var(--rr-blue-action); box-shadow: var(--rr-shadow-card); }
.rr-study-card__photo { width: 100%; aspect-ratio: 190 / 120; object-fit: cover; border-radius: 10px; background: var(--rr-surface-tint); }
.rr-study-card__title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--rr-navy); }
.rr-study-card__title a { color: inherit; text-decoration: none; }
.rr-study-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rr-study-card__who { font-size: 14px; line-height: 20px; color: var(--rr-ink-strong); }
.rr-study-card__where { font-size: 14px; line-height: 20px; color: var(--rr-muted-3); }
.rr-study-card__more { margin-top: auto; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-blue-action); }

.rr-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.rr-field { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.rr-field label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-navy); }
.rr-field input, .rr-field select { font: 400 16px/24px var(--rr-font); color: var(--rr-navy); background: var(--rr-white); border: 1px solid #c9d3e0; border-radius: 8px; padding: 12px 14px; height: 48px; }
.rr-field input:focus, .rr-field select:focus { outline: 2px solid var(--rr-blue-action); outline-offset: 0; border-color: var(--rr-blue-action); }
.rr-search-input { width: 100%; }
.rr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-chip { font: 400 14px/14px var(--rr-font); color: var(--rr-navy); background: var(--rr-white); border: 1px solid var(--rr-border); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.rr-chip[aria-pressed="true"] { background: var(--rr-navy); border-color: var(--rr-navy); color: var(--rr-white); }

.rr-trials { border: 1px solid var(--rr-border); border-radius: var(--rr-radius-md); overflow: hidden; background: var(--rr-white); }
.rr-trials + .rr-trials { margin-top: 16px; }
.rr-trials__head { display: flex; justify-content: space-between; align-items: center; background: var(--rr-navy); color: var(--rr-white); padding: 12px 16px; font-size: 16px; line-height: 24px; font-weight: 600; }
.rr-trials__head span { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--rr-nav-text); }
.rr-trials table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.rr-trials td, .rr-trials th { padding: 10px 16px; border-top: 1px solid var(--rr-border); text-align: left; vertical-align: top; }
.rr-trials th { font-weight: 600; color: var(--rr-muted); font-size: 14px; line-height: 20px; }
.rr-trials td:first-child { font-weight: 600; color: var(--rr-navy); white-space: nowrap; }
.rr-trials td:last-child { text-align: right; white-space: nowrap; }
.rr-trials tr:nth-child(even) td { background: #f8fafc; }

.rr-cta-band { background: var(--rr-navy); color: var(--rr-white); text-align: center; padding: 56px 24px; }
.rr-cta-band h2 { color: var(--rr-white); font-size: 30px; line-height: 36px; letter-spacing: -1px; font-weight: 600; }
.rr-cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 16px; line-height: 24px; margin: 10px auto 20px; max-width: 620px; }

/* ---------- Study page components (S01–S08) ---------- */
.rr-study-hero { background: var(--rr-white); }
.rr-study-hero__inner { max-width: var(--rr-container); margin: 0 auto; padding: 40px var(--rr-gutter) 64px; display: flex; gap: 48px; align-items: flex-start; }
.rr-study-hero__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rr-study-hero__photo { width: 100%; aspect-ratio: 448 / 191; object-fit: cover; border-radius: var(--rr-radius-md); }
.rr-study-hero__lead { font-size: 18px; line-height: 28px; color: var(--rr-ink); }
.rr-facts { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.rr-facts th { width: 110px; text-align: left; font-weight: 600; color: var(--rr-navy); padding: 10px 12px 10px 0; vertical-align: top; }
.rr-facts td { color: var(--rr-ink); padding: 10px 0; vertical-align: top; }
.rr-facts tr + tr th, .rr-facts tr + tr td { border-top: 1px solid var(--rr-border); }
.rr-glance { background: var(--rr-surface-tint); border-radius: var(--rr-radius-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rr-glance h3 { font-size: 18px; line-height: 28px; }
.rr-glance dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rr-glance dt { font-size: 14px; line-height: 20px; color: var(--rr-muted); }
.rr-glance dd { margin: 2px 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-navy); }
.rr-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.rr-criteria { background: var(--rr-white); border: 1px solid var(--rr-border); border-radius: var(--rr-radius-md); padding: 24px; }
.rr-criteria h3 { font-size: 16px; line-height: 24px; margin-bottom: 14px; }
.rr-criteria ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rr-criteria li { display: flex; gap: 10px; font-size: 14px; line-height: 20px; color: var(--rr-ink); }
.rr-criteria li::before { content: "\2713"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--rr-blue-soft); color: var(--rr-blue-action); font-size: 14px; line-height: 20px; font-weight: 600; display: grid; place-content: center; }
.rr-criteria--not li::before { content: "\2212"; background: #f1f5f9; color: var(--rr-muted); }
.rr-process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: rr-proc; }
.rr-process li { counter-increment: rr-proc; background: var(--rr-white); border: 1px solid var(--rr-border); border-radius: var(--rr-radius-md); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.rr-process li::before { content: counter(rr-proc); width: 32px; height: 32px; border-radius: 50%; background: var(--rr-navy); color: var(--rr-white); font-weight: 600; font-size: 14px; line-height: 20px; display: grid; place-content: center; margin-bottom: 4px; }
.rr-process strong { font-size: 16px; line-height: 24px; color: var(--rr-navy); }
.rr-process span { font-size: 14px; line-height: 20px; color: var(--rr-ink); }
.rr-locations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rr-location { border: 1px solid var(--rr-border); border-radius: var(--rr-radius-md); padding: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; color: var(--rr-ink); }
.rr-location strong { font-size: 16px; line-height: 24px; color: var(--rr-navy); }
.rr-location a { color: var(--rr-blue-action); }
.rr-faq { display: flex; flex-direction: column; gap: 12px; }
.rr-faq details { border: 1px solid var(--rr-border); border-radius: var(--rr-radius); background: var(--rr-white); }
.rr-faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--rr-navy); }
.rr-faq summary::-webkit-details-marker { display: none; }
.rr-faq summary::after { content: "+"; font-size: 20px; line-height: 28px; font-weight: 400; color: var(--rr-navy); }
.rr-faq details[open] summary::after { content: "\2212"; }
.rr-faq details > div { padding: 0 20px 16px; font-size: 14px; line-height: 20px; color: var(--rr-ink); }
.rr-reference { font-size: 14px; line-height: 20px; color: var(--rr-muted); padding: 16px 0; }

/* ---------- Default page content ---------- */
.rr-page { max-width: var(--rr-container); margin: 0 auto; padding: 48px var(--rr-gutter) 80px; }
.rr-page .entry-content { max-width: 760px; font-size: 16px; line-height: 24px; }
.rr-page .entry-content > * + * { margin-top: 16px; }
.rr-page .entry-content h2 { font-size: 30px; line-height: 36px; letter-spacing: -1px; margin-top: 32px; }
.rr-page .entry-content h3 { font-size: 20px; line-height: 28px; margin-top: 24px; }
.rr-page .entry-content ul, .rr-page .entry-content ol { padding-left: 22px; }


/* ---------- Feed pages (v1.1) ---------- */
.rr-measure { max-width: 760px; }
.rr-title-band__kicker a { color: var(--rr-blue-pale); text-decoration: none; }
.rr-title-band__kicker a:hover { text-decoration: underline; }
.rr-field--grow { flex: 1 1 320px; }
.rr-count { font-size: 14px; line-height: 20px; color: var(--rr-muted); margin-top: -8px; }
.rr-empty { font-size: 16px; line-height: 24px; color: var(--rr-muted); }
.rr-empty-state { background: var(--rr-surface-tint); border-radius: var(--rr-radius-md); padding: 32px; }
.rr-empty-state h3 { font-size: 18px; line-height: 28px; margin-bottom: 6px; }
.rr-empty-state p { font-size: 16px; line-height: 24px; color: var(--rr-ink); }
.rr-study-grid > li[hidden] { display: none; }
.rr-study-card__where { display: flex; gap: 6px; align-items: flex-start; }
.rr-pin { flex: none; width: 10px; height: 13px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.8 5 8 5 8s5-4.2 5-8a5 5 0 0 0-5-5Zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 13'%3E%3Cpath d='M5 0a5 5 0 0 0-5 5c0 3.8 5 8 5 8s5-4.2 5-8a5 5 0 0 0-5-5Zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 4px; }
.rr-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.rr-prose { font-size: 16px; line-height: 24px; color: var(--rr-ink); }
.rr-prose p + p { margin-top: 14px; }
.rr-section .rr-h2 + .rr-body { margin-top: -12px; }
.rr-section .rr-block .rr-h2 { max-width: none; }
.rr-section--tint .rr-glance, .rr-section--tint .rr-criteria, .rr-section--tint .rr-location, .rr-section--tint .rr-process li { background: var(--rr-white); }
@media (max-width: 900px) { .rr-split { grid-template-columns: minmax(0, 1fr); } }


/* ---------- v1.3: directory (S00), privacy (10), home ---------- */
.rr-breadcrumb--bar { background: var(--rr-white); border-bottom: 1px solid var(--rr-border); }
.rr-breadcrumb--bar ol { padding: 14px var(--rr-gutter); font-size: 14px; line-height: 20px; }
.rr-breadcrumb__home { color: var(--rr-muted-2); font-size: 16px; line-height: 24px; }
.rr-breadcrumb--white ol { padding-bottom: 0; }

.rr-dir-intro { background: #f4f7fa; }
.rr-dir-intro__inner { max-width: var(--rr-container); margin: 0 auto; padding: 64px var(--rr-gutter); display: flex; flex-direction: column; gap: 20px; }
.rr-dir-title { font-size: 36px; line-height: 40px; letter-spacing: -1px; font-weight: 600; color: var(--rr-navy); }
.rr-dir-lead { font-size: 18px; line-height: 28px; color: var(--rr-ink-strong); }
.rr-photo-strip { display: grid; grid-template-columns: 420fr 272fr 260fr; gap: 16px; }
.rr-photo-strip img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.rr-searchbar { display: flex; align-items: center; gap: 10px; background: var(--rr-white); border: 2px solid var(--rr-border); border-radius: 8px; padding: 0 18px; }
.rr-searchbar span { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--rr-muted-3); }
.rr-searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px/24px var(--rr-font); color: var(--rr-navy); padding: 15px 0; }
.rr-searchbar input::placeholder { color: #9ca3af; }
.rr-searchbar:focus-within { border-color: var(--rr-blue-action); }
.rr-searchbar input:focus { outline: none; }
.rr-loc-filters { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.rr-select-field { display: flex; flex-direction: column; gap: 6px; }
.rr-select-field--state { width: 300px; max-width: 100%; }
.rr-select-field--grow { flex: 1 1 280px; }
.rr-select-field label, .rr-filter-label { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--rr-navy); }
.rr-select-field select { appearance: none; -webkit-appearance: none; height: 52px; padding: 0 44px 0 18px; border: 2px solid var(--rr-border); border-radius: 8px; background: var(--rr-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' fill='none'%3E%3Cpath d='M1 1l5 4 5-4' stroke='%230d3050' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 18px center / 12px 6px no-repeat; font: 400 16px/24px var(--rr-font); color: var(--rr-navy); cursor: pointer; }
.rr-select-field select:focus { outline: 2px solid var(--rr-blue-action); outline-offset: 0; border-color: var(--rr-blue-action); }
.rr-clear { background: none; border: 0; padding: 0 4px 17px; font: 400 14px/20px var(--rr-font); color: var(--rr-blue-action); cursor: pointer; }
.rr-clear:hover { text-decoration: underline; }
.rr-chip { font: 600 14px/20px var(--rr-font); padding: 8px 14px; }
.rr-count { margin: 0; font-size: 14px; line-height: 20px; color: #637387; }

.rr-dir-section { max-width: var(--rr-container); margin: 0 auto; padding: 64px var(--rr-gutter); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.rr-dir-section > * { max-width: 100%; }
.rr-dir-section .rr-study-grid, .rr-dir-section .rr-trials, .rr-dir-section .rr-empty-state { width: 100%; }
.rr-dir-h2 { font-size: 36px; line-height: 40px; letter-spacing: -1px; font-weight: 600; color: var(--rr-navy); }
.rr-dir-note { font-size: 14px; line-height: 20px; color: var(--rr-ink-strong); max-width: 980px; }
.rr-dir-note--loc { color: var(--rr-blue-action); font-weight: 400; }
.rr-dir-featured .rr-badge--open { margin-bottom: 0; }
.rr-dir-all { background: var(--rr-white); border-top: 1px solid var(--rr-border); }
.rr-dir-section .rr-trials + .rr-trials { margin-top: 0; }
.rr-study-grid { gap: 20px; align-items: stretch; }
.rr-study-card__photo { aspect-ratio: 190 / 120; }
.rr-study-card__more { margin-top: auto; padding-top: 4px; }

.rr-trials { border-radius: 10px; }
.rr-trials__head { background: var(--rr-navy); padding: 14px 18px; }
.rr-trials__head h3 { margin: 0; color: var(--rr-white); font-size: 16px; line-height: 24px; font-weight: 600; }
.rr-trials__head span { font-size: 14px; line-height: 20px; color: var(--rr-nav-text); }
.rr-trials th[scope=row] { width: 26%; font-weight: 600; color: var(--rr-navy); font-size: 14px; line-height: 20px; text-transform: none; white-space: normal; }
.rr-trials td { color: var(--rr-ink-strong); }
.rr-trials td:last-child { width: 150px; }
.rr-trials tr:nth-child(even) th, .rr-trials tr:nth-child(even) td { background: #f8fafc; }
.rr-trials__link { color: var(--rr-success); font-weight: 600; text-decoration: none; }
.rr-trials__link:hover { text-decoration: underline; }
.rr-trials__ask { color: var(--rr-muted-3); font-size: 14px; line-height: 20px; }
.rr-trials[hidden], .rr-trials tr[hidden] { display: none; }

/* Privacy collection statement */
.rr-title-band__lead { font-size: 36px; line-height: 40px; letter-spacing: -1px; font-weight: 400; color: var(--rr-white); }
.rr-legal-head { background: var(--rr-surface-tint); padding: 56px 0 56px; }
.rr-legal-head h1 { font-size: 36px; line-height: 40px; letter-spacing: -1px; font-weight: 600; margin: 14px 0 12px; }
.rr-legal-head p { font-size: 18px; line-height: 28px; color: var(--rr-ink); }
.rr-crumbs-slash { font-size: 14px; line-height: 20px; color: var(--rr-blue); display: flex; gap: 8px; flex-wrap: wrap; }
.rr-crumbs-slash a, .rr-crumbs-slash [aria-current] { color: var(--rr-blue); text-decoration: none; }
.rr-crumbs-slash a:hover { text-decoration: underline; }
.rr-crumbs-slash span[aria-hidden] { color: var(--rr-muted-2); }
.rr-legal { padding: 56px 0 72px; }
.rr-legal__body { max-width: 760px; font-size: 16px; line-height: 24px; color: var(--rr-ink); }
.rr-legal__body p + p { margin-top: 20px; }
.rr-legal__body a { color: var(--rr-blue-action); }
.rr-legal__contact { max-width: 760px; margin-top: 20px; background: #f2f5f9; border: 1px solid var(--rr-border); border-radius: 8px; padding: 24px; font-size: 16px; line-height: 24px; color: var(--rr-ink); }
.rr-legal__contact dl { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.rr-legal__contact dl > div { display: flex; gap: 16px; }
.rr-legal__contact dt { width: 80px; flex: none; font-weight: 600; color: var(--rr-navy); }
.rr-legal__contact dd { margin: 0; }
.rr-legal__contact a { color: var(--rr-blue-action); text-decoration: none; }
.rr-btn-outline { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 16px 24px; border: 2px solid var(--rr-navy); border-radius: 8px; color: var(--rr-navy); font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; }
.rr-btn-outline:hover { background: var(--rr-navy); color: var(--rr-white); }

/* Home */
.rr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.rr-btn--blue { background: var(--rr-blue); box-shadow: none; }
.rr-btn--blue:hover { background: var(--rr-blue-action); }
.rr-btn--outline-light { background: transparent; border: 2px solid var(--rr-white); box-shadow: none; padding: 14px 30px; }
.rr-btn--outline-light:hover { background: var(--rr-white); color: var(--rr-navy); }
.rr-paths { background: var(--rr-surface-tint); }
.rr-paths__inner { max-width: var(--rr-container); margin: 0 auto; padding: 40px var(--rr-gutter) 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rr-path { display: flex; flex-direction: column; background: var(--rr-white); border: 1px solid var(--rr-border); border-radius: var(--rr-radius-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--rr-shadow-card); }
.rr-path:hover { border-color: var(--rr-blue-action); }
.rr-path img { width: 100%; height: 200px; object-fit: cover; }
.rr-path__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.rr-path .rr-h3 { font-size: 24px; line-height: 32px; }
.rr-dir-featured--home { background: var(--rr-white); }

@media (max-width: 1100px) {
  .rr-dir-intro__inner, .rr-dir-section { padding-left: 40px; padding-right: 40px; }
  .rr-breadcrumb--bar ol { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 900px) {
  .rr-paths__inner { grid-template-columns: minmax(0, 1fr); }
  .rr-photo-strip { grid-template-columns: 2fr 1fr; }
  .rr-photo-strip img:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .rr-dir-intro__inner, .rr-dir-section { padding: 40px 16px; }
  .rr-breadcrumb--bar ol { padding: 12px 16px; }
  .rr-dir-title, .rr-dir-h2, .rr-legal-head h1 { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .rr-title-band__lead { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .rr-photo-strip { grid-template-columns: 1fr; }
  .rr-photo-strip img:nth-child(n+2) { display: none; }
  .rr-photo-strip img { height: 180px; }
  .rr-select-field--state { width: 100%; }
  .rr-trials th[scope=row] { width: auto; }
  .rr-trials td:nth-child(2) { display: table-cell; }
  .rr-trials tr { display: grid; grid-template-columns: 1fr auto; }
  .rr-trials tr > * { border-top: 0; }
  .rr-trials tr { border-top: 1px solid var(--rr-border); }
  .rr-trials td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
  .rr-trials td:last-child { width: auto; grid-row: 1; grid-column: 2; }
}

/* Directory dropdowns (Figma 162:4043) */
.rr-dd { position: relative; }
.rr-dd__btn { width: 100%; height: 52px; display: flex; align-items: center; text-align: left; padding: 0 48px 0 18px; border: 2px solid var(--rr-border); border-radius: 8px; background: var(--rr-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' fill='none'%3E%3Cpath d='M1 1l5 4 5-4' stroke='%230d3050' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 18px center / 12px 6px no-repeat; font: 400 16px/24px var(--rr-font); color: var(--rr-navy); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-dd.is-open .rr-dd__btn, .rr-dd__btn:focus-visible { border-color: var(--rr-blue-action); outline: none; }
.rr-dd.is-open .rr-dd__btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' fill='none'%3E%3Cpath d='M1 5l5-4 5 4' stroke='%230d3050' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.rr-dd__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px 0; list-style: none; background: var(--rr-white); border: 1px solid var(--rr-border); border-radius: 8px; box-shadow: 0 12px 28px rgba(13, 48, 80, 0.12); max-height: 360px; overflow: auto; }
.rr-dd__list:focus { outline: none; }
.rr-dd__group { padding: 14px 18px 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rr-muted-2); }
.rr-dd__opt { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 18px; font-size: 16px; line-height: 24px; color: var(--rr-navy); cursor: pointer; }
.rr-dd__opt.is-active { background: var(--rr-surface-tint); }
.rr-dd__opt[aria-selected="true"] { background: var(--rr-surface-tint); color: var(--rr-blue-action); font-weight: 600; }
.rr-dd__opt[aria-selected="true"] .rr-dd__name::before { content: "\2713"; margin-right: 10px; }
.rr-dd__city { font-size: 14px; line-height: 20px; color: var(--rr-muted-3); white-space: nowrap; }

/* Clinical Trial Hub page additions (v1.11) */
.rr-steps__note { margin-top: 4px; }
.rr-form-note--below { margin-top: 14px; text-align: center; }
.rr-learn { background: var(--rr-white); }
.rr-learn__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rr-learn__col h3 { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--rr-navy); margin-bottom: 10px; }
.rr-learn__col h4 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--rr-blue); margin: 16px 0 4px; }
.rr-learn__col p { font-size: 16px; line-height: 24px; color: var(--rr-ink); }
.rr-learn__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rr-learn__list li { position: relative; padding-left: 18px; font-size: 16px; line-height: 24px; color: var(--rr-ink); }
.rr-learn__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--rr-blue); }
.rr-footer__ack { font-size: 14px; line-height: 20px; color: var(--rr-footer-text); max-width: 760px; margin: 0; }
@media (max-width: 900px) { .rr-learn__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --rr-gutter: 40px; }
  .rr-header__inner, .rr-footer__inner { padding-left: 40px; padding-right: 40px; }
  .rr-section__inner { padding: 0 40px; }
  .rr-registry__inner, .rr-study-hero__inner { padding-left: 40px; padding-right: 40px; }
  .rr-registry__aside { flex-basis: 500px; width: 500px; }
  .rr-study-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rr-nav, .rr-header__actions .rr-btn--ghost { display: none; }
  .rr-menu-toggle { display: inline-flex; }
  .rr-header.is-open .rr-nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; background: var(--rr-navy); padding: 16px 24px 24px; z-index: 50; }
  .rr-header { position: relative; }
  .rr-header.is-open .rr-nav ul { flex-direction: column; gap: 16px; }
  .rr-registry__inner, .rr-study-hero__inner { flex-direction: column; }
  .rr-registry__aside { order: -1; flex-basis: auto; width: 100%; position: static; }
  .rr-quicklinks ul, .rr-research__grid, .rr-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-footer__cols { flex-wrap: wrap; }
  .rr-footer__brand { flex-basis: 100%; }
  .rr-two-col, .rr-locations { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --rr-gutter: 16px; }
  .rr-quick { white-space: normal; font-size: 16px; line-height: 24px; padding: 18px 20px; }
  .rr-header { padding: 20px 0 48px; }
  .rr-header__inner, .rr-footer__inner { padding-left: 16px; padding-right: 16px; }
  .rr-section__inner { padding: 0 16px; }
  .rr-hero__photo { height: 260px; }
  .rr-hero--hub .rr-hero__photo img { object-position: 78% 30%; }
  .rr-hero__panel { margin-top: -60px; padding: 28px 24px; }
  .rr-hero__title, .rr-title-band h1 { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .rr-hero__stats { gap: 20px; }
  .rr-form-card { padding: 20px 16px; }
  .rr-h2 { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .rr-quicklinks ul, .rr-research__grid, .rr-study-grid, .rr-process { grid-template-columns: minmax(0, 1fr); }
  .rr-footer__group { flex-basis: 40%; }
  .rr-footer__base { flex-direction: column; align-items: flex-start; }
  .rr-trials td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Ramsay type scale (matches ramsayhealth.com.au) ----------
   Roboto 400 and 600 only. 14/20 small, 16/24 body, 18/28 lead and nav, 20/28 card headings,
   24/32, 30/36 and 36/40 headings (30+ tracked -1px). Body text #454545. */
.rr-nav a { font-size: 18px; line-height: 28px; font-weight: 600; }
.rr-footer__group h2 { font-size: 16px; line-height: 24px; color: var(--rr-white); }
.rr-footer__group a { font-size: 16px; line-height: 24px; }
.rr-powered { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--rr-ink-grey); }
.rr-powered--dark { color: rgba(255, 255, 255, 0.8); }
.rr-powered:hover, .rr-powered:focus-visible { color: var(--rr-navy); }
.rr-powered--dark:hover, .rr-powered--dark:focus-visible { color: var(--rr-white); }
.rr-header__actions .rr-btn { white-space: nowrap; }
.rr-hero__stats { flex-wrap: nowrap; gap: 24px; }
.rr-hero__stat { flex: 1 1 0; min-width: 0; }
@media (max-width: 1320px) { .rr-nav ul { gap: 24px; } .rr-nav a { font-size: 16px; line-height: 24px; } }
@media (max-width: 640px) { .rr-hero__stats { flex-wrap: wrap; gap: 20px; } .rr-hero__stat { flex: 1 1 40%; } .rr-header--flush { padding-bottom: 20px; } }

/* ---------- Hub: register button, agreement beside the form ---------- */
html { scroll-behavior: smooth; }
#join { scroll-margin-top: 24px; }
.rr-hero__cta { margin: 4px 0 0; }
.rr-registry__aside { display: flex; flex-direction: column; }
.rr-registry__aside .rr-agreement { margin-top: 24px; }
@media (max-width: 900px) {
  .rr-registry__aside .rr-agreement { margin: 24px 0 0; } /* below the form on phones and tablets */
  .rr-hero__cta .rr-btn { width: 100%; }
}

/* Footer links: a comfortable tap target (24px+) on phones and tablets. */
.rr-footer__group a { display: inline-block; padding: 2px 0; min-height: 28px; }

/* ---------- Form dialog: inline on the page, full screen on phones while it's in use ---------- */
.rr-form-card { display: block; }
.rr-form-dialog, .rr-form-dialog[open] {
  position: static; display: block; box-sizing: border-box; width: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; overflow: visible;
}
.rr-form-dialog__scroll { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rr-form-dialog__scroll > * { flex-shrink: 0; } /* never squash the form when the scroll area is shorter than it */
.rr-form-dialog__bar { display: none; }
.rr-form-dialog.is-modal {
  position: fixed; top: var(--rr-form-top, 0px); right: 0; bottom: auto; left: 0; z-index: 100000;
  width: 100%; height: 100vh; height: var(--rr-form-h, 100vh); max-height: none;
  display: flex; flex-direction: column; overflow: hidden; overflow: clip; background: var(--rr-white); border-radius: 0;
}
.rr-form-dialog::backdrop { background: rgba(13, 48, 80, 0.6); }
.rr-form-dialog.is-modal .rr-form-dialog__bar {
  display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) 8px calc(16px + env(safe-area-inset-left, 0px));
  background: var(--rr-navy);
}
.rr-form-dialog__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  font: 600 14px/20px var(--rr-font); color: var(--rr-white); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 8px; cursor: pointer;
}
.rr-form-dialog__back:hover { background: rgba(255, 255, 255, 0.1); }
.rr-form-dialog__back:focus-visible { outline: 2px solid var(--rr-white); outline-offset: 2px; }
.rr-form-dialog__logo { display: block; width: 98px; height: auto; }
.rr-form-dialog.is-modal .rr-form-dialog__scroll {
  flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 20px calc(16px + env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
}
.rr-form-dialog.is-modal .rr-form-embed { min-height: 0; }
html.rr-form-locked, html.rr-form-locked body { overflow: hidden; scroll-behavior: auto; }
/* "Powered by Clinrol" under the form sits in the middle on phones and in the full-screen form. */
@media (max-width: 767px) { .rr-form-dialog__scroll > .rr-powered { align-self: center; } }
.rr-form-dialog.is-modal .rr-form-dialog__scroll > .rr-powered { align-self: center; }
/* Phones: the form card runs closer to the screen edges so the questions get more width. */
@media (max-width: 640px) {
  .rr-registry__inner, .rr-study-hero__inner { padding-left: var(--rr-gutter); padding-right: var(--rr-gutter); } /* was stuck at the tablet 40px */
  .rr-registry .rr-form-card { margin-left: calc(-1 * var(--rr-gutter)); margin-right: calc(-1 * var(--rr-gutter)); padding: 28px var(--rr-gutter) 24px; border-radius: 0; border-left: 0; border-right: 0; } /* edge to edge */
}
/* RRDN report cover (three women): keep their faces in the banner at every width. */
.rr-hero--hub .rr-hero__photo img.rr-hero__img--cover { object-position: 50% 16%; }
@media (max-width: 899px) { .rr-hero--hub .rr-hero__photo img.rr-hero__img--cover { object-position: 50% 22%; } }
@media (min-width: 1680px) { .rr-hero--hub .rr-hero__photo { max-width: 1600px; height: 440px; margin: 0 auto; border-radius: 0 0 20px 20px; } } /* very wide screens: a contained banner, so the 2000px photo isn't stretched and soft */
/* Accessibility (WCAG 2.2 AA, SC 1.4.3): blue and grey text dark enough to read on white and on the pale
   grey sections (4.5:1 or better). #006eb8 is 5.35:1 on white, 4.85:1 on #f0f4fa; #5f6b7d is 5.4:1 / 4.9:1. */
:root { --rr-blue: #006eb8; --rr-muted: #5f6b7d; }
.rr-quick:hover { background: var(--rr-blue-action-hover); }
/* Phone menu: comfortable tap targets (44px rows). */
@media (max-width: 900px) {
  .rr-header.is-open .rr-nav ul { gap: 0; }
  .rr-header.is-open .rr-nav a { display: block; padding: 12px 0; }
}
.rr-legal__contact a { color: var(--rr-blue-action-hover); } /* 4.5:1+ on the contact box */
