/* =========================================================
   THE PERFORMANCE ACT — PRE-PERFORMANCE ROUTINE LANDING PAGE
   routine.css v1 · prefix .rt-
   Loaded after style.css and contact.css. Uses the site's
   existing colour variables, fonts and .btn classes.
   ========================================================= */

:root {
  --rt-light: #F5F5F2;          /* light panel, as used by .sp-imm */
  --rt-sticky-h: 70px;          /* mobile sticky bar height */
  --rt-diagram-min: 840px;      /* diagram width on small screens (scrolls sideways); keeps the smallest diagram text at about 12px */
}

/* ---------- Utilities ---------- */
.rt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rt-nowrap { white-space: nowrap; }

/* Skip link: hidden until focused with the keyboard */
.rt-skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 3000;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  transition: top 0.2s ease;
}

.rt-skip:focus {
  top: 12px;
}

.rt-page main:focus {
  outline: none;
}

/* Visible keyboard focus, everywhere on this page */
.rt-page a:focus-visible,
.rt-page button:focus-visible,
.rt-page summary:focus-visible,
.rt-page [tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.rt-section--yellow a:focus-visible,
.rt-section--light a:focus-visible,
.rt-section--light [tabindex]:focus-visible,
.rt-imm button:focus-visible {
  outline-color: var(--black);
}

/* ---------- Sections ---------- */
.rt-section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.rt-section--black {
  background: var(--black);
  color: var(--white);
}

/* Two black sections in a row get the site's hairline divider */
.rt-section--black + .rt-section--black {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-section--yellow {
  background: var(--yellow);
  color: var(--black);
}

.rt-section--light {
  background: var(--rt-light);
  color: var(--gray-900);
}

/* ---------- Section heading block ---------- */
.rt-head {
  max-width: 860px;
}

.rt-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 18px;
}

.rt-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: currentColor;
}

.rt-section--yellow .rt-label,
.rt-section--light .rt-label {
  color: var(--black);
}

.rt-h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 22px;
}

.rt-section--yellow .rt-h2,
.rt-section--light .rt-h2 {
  color: var(--black);
}

.rt-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-300);
  max-width: 68ch;
  margin: 0;
}

.rt-section--yellow .rt-lead {
  color: var(--black);
  font-weight: 400;
}

.rt-section--light .rt-lead {
  color: #2B2B2B;
  font-weight: 400;
}

/* ---------- Buttons (extends the site's .btn) ---------- */
.rt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.rt-actions--center {
  justify-content: center;
}

.rt-btn-dl__meta {
  display: inline-block;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  vertical-align: 1px;
}

/* Black outline button for the yellow band */
.rt-btn-outline-dark {
  background-color: transparent;
  color: var(--black);
  border-color: var(--black);
}

.rt-btn-outline-dark:hover {
  background-color: var(--black);
  color: var(--yellow);
}

/* ---------- 1. HERO ---------- */
.rt-hero {
  position: relative;
  background: var(--black);
  padding: calc(var(--header-height) + clamp(48px, 7vw, 104px)) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.rt-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.rt-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 8px 24px;
  margin: 0 0 32px;
}

.rt-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.4vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 28px;
}

.rt-accent {
  display: block;
  color: var(--yellow);
}

.rt-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-300);
  max-width: 58ch;
  border-left: 2px solid var(--yellow);
  padding-left: 20px;
  margin: 0 0 36px;
}

.rt-micro {
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--gray-300);
}

.rt-hero__cover {
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

/* Guide cover with an offset yellow keyline behind it (tapping it opens the guide) */
.rt-cover {
  position: relative;
  display: block;
  transition: transform 0.3s ease;
}

.rt-cover:hover {
  transform: translateY(-4px);
}

.rt-cover__meta {
  margin: 36px 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-300);
}

.rt-cover__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* "The guide has opened in a new tab" confirmation */
.rt-dl-status {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--yellow);
}

.rt-dl-status:empty {
  display: none;
}

.rt-dl-status::before {
  content: '\2713';
  margin-right: 8px;
}

.rt-section--yellow .rt-dl-status {
  color: var(--black);
}

.rt-cover::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(255, 229, 0, 0.55);
  pointer-events: none;
}

.rt-cover img,
.rt-download__cover img {
  position: relative;
  width: 100%;
  height: auto;
  background: var(--gray-900);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- 2. WHAT WE NOTICE ---------- */
.rt-cards {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.rt-card {
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 34px 28px 32px;
}

.rt-card__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--yellow);
  margin-bottom: 18px;
}

.rt-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 12px;
}

.rt-card__text {
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gray-300);
  margin: 0;
}

/* ---------- 3. THE EVIDENCE (yellow band) ---------- */
.rt-stats {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.rt-stat {
  padding: 32px 24px;
  text-align: center;
}

.rt-stat + .rt-stat {
  border-left: 1px solid rgba(0, 0, 0, 0.22);
}

.rt-stat__big {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--black);
}

.rt-stat__cap {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--black);
}

.rt-note {
  margin: 40px 0 0;
  max-width: 72ch;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
}

.rt-source {
  margin: 14px 0 0;
  max-width: 90ch;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--black);
  overflow-wrap: anywhere;
}

.rt-source a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rt-source a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- 4 + 5. DIAGRAMS ---------- */
.rt-figure {
  margin: 56px 0 0;
}

.rt-diagram {
  background: var(--rt-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: clamp(20px, 3.4vw, 44px);
}

.rt-figure--on-dark .rt-diagram {
  border-color: transparent;
}

.rt-diagram__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.rt-diagram__scroll svg {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
}

.rt-diagram__hint {
  display: none;
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555555;
}

.rt-diagram__hint::after {
  content: ' \2192';
}

.rt-figure--on-dark .rt-diagram__hint {
  color: var(--gray-300);
}

.rt-figure.is-scrollable .rt-diagram__hint {
  display: block;
}

.rt-figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  color: #4A4A4A;
}

.rt-figure--on-dark .rt-figcaption {
  color: var(--gray-300);
  font-weight: 300;
}

/* ---------- 4. THE KEY IDEA: pull quote ---------- */
.rt-pull {
  margin: 64px 0 0;
  max-width: 24ch;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--black);
  border-left: 6px solid var(--yellow);
  padding-left: clamp(18px, 3vw, 32px);
}

.rt-pull__mark {
  background: var(--yellow);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Split layout (heading left, content right) ---------- */
.rt-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.rt-split__head {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

/* ---------- 5. THE PROCESS: steps ---------- */
.rt-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rt-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rt-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.rt-step__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--white);
  margin: 4px 0 8px;
}

.rt-step__text {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gray-300);
  margin: 0;
}

/* ---------- 5. Download block ---------- */
.rt-download {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--yellow);
  padding: clamp(24px, 4vw, 44px);
}

.rt-download {
  align-items: start;
}

.rt-download__cover {
  display: block;
  transition: transform 0.3s ease;
}

.rt-download__cover:hover {
  transform: translateY(-4px);
}

.rt-download__text {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--white);
  max-width: 60ch;
  margin: 0 0 26px;
}

.rt-download__label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--yellow);
  margin: 0 0 12px;
}

.rt-toc {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  max-width: 760px;
}

.rt-toc li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--gray-300);
}

.rt-toc__num {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
}

/* ---------- 5b. Guide block: credit, look inside, share ---------- */
.rt-download__by {
  font-size: 0.9rem;
  color: var(--gray-300);
  margin: -14px 0 26px;
}

.rt-inside {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
}

.rt-inside__page {
  display: block;
  color: var(--gray-300);
}

.rt-inside__page img {
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px -16px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease;
}

.rt-inside__page:hover img {
  transform: translateY(-4px);
}

.rt-inside__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rt-inside__page:hover .rt-inside__cap {
  color: var(--yellow);
}

.rt-download__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.rt-share {
  min-height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--yellow);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  cursor: pointer;
}

.rt-share:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.rt-download__note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--gray-300);
}

/* ---------- 6. WANT HELP BUILDING YOURS? ---------- */
.rt-help__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rt-help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid var(--yellow);
  padding: clamp(28px, 4vw, 44px);
}

.rt-help-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 16px;
}

.rt-help-card__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-300);
  margin: 0 0 32px;
  flex: 1;
}

.rt-help-card__btn {
  white-space: normal;
}

/* ---------- 6b. WHO YOU'LL TALK TO ---------- */
.rt-subhead {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--white);
  margin: 0 0 24px;
}

.rt-subhead--lg {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 36px;
}

.rt-team {
  margin-top: 72px;
}

.rt-team__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rt-team__list--single {
  grid-template-columns: minmax(0, 560px);
}

.rt-person {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-person__img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.rt-person__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 4px;
}

.rt-person__cred {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--yellow);
  margin: 0 0 4px;
}

.rt-person__role {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray-300);
  margin: 0;
}

.rt-person__quals {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  margin: 6px 0 0;
}

.rt-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  border-bottom: 1px solid transparent;
}

.rt-textlink:hover {
  border-bottom-color: var(--yellow);
}

/* ---------- 6c. WHAT HAPPENS NEXT (steps reuse contact.css .ct-steps) ---------- */
.rt-next {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rt-next__close {
  margin: 44px 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-300);
}

/* ---------- 8. QUESTIONS (details / summary) ---------- */
.rt-faq__list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rt-faq__item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  background: var(--gray-900);
}

.rt-faq__q {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 64px 18px 24px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.rt-faq__q::-webkit-details-marker { display: none; }
.rt-faq__q::marker { content: ''; }

.rt-faq__q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rt-page .rt-faq__q:focus-visible {
  outline-offset: -3px;
}

/* plus / minus icon, same look as the site's .accordion__plus */
.rt-faq__q::before,
.rt-faq__q::after {
  content: '';
  position: absolute;
  right: 26px;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-top: -1px;
  background: var(--yellow);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.rt-faq__q::after {
  transform: rotate(90deg);
}

.rt-faq__item[open] > .rt-faq__q {
  color: var(--yellow);
}

.rt-faq__item[open] > .rt-faq__q::after {
  transform: rotate(0deg);
  opacity: 0;
}

.rt-faq__a {
  padding: 0 24px 24px;
}

.rt-faq__a p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-300);
  max-width: 64ch;
}

/* ---------- 9. FINAL BAND (yellow) ---------- */
.rt-final__inner {
  text-align: center;
}

.rt-final__title {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.04;
  margin: 0 auto 36px;
}

.rt-final__line {
  display: block;
}

.rt-final__small {
  margin: 24px auto 0;
  max-width: 60ch;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
}

/* ---------- Immediate support module (reuses contact.css .ct-callout) ---------- */
.rt-imm {
  background: var(--rt-light);
  padding: 56px 0;
}

.rt-imm__inner {
  max-width: 760px;
}

/* Larger tap area for the helplines button without changing how it looks */
.rt-imm .ct-callout__btn {
  position: relative;
}

.rt-imm .ct-callout__btn::after {
  content: '';
  position: absolute;
  inset: -13px -10px;
}

/* ---------- Mobile sticky booking bar ---------- */
.rt-sticky {
  display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .rt-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rt-stat:nth-child(3) {
    border-left: none;
  }

  .rt-stat:nth-child(n+3) {
    border-top: 1px solid rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 900px) {
  .rt-hero__grid {
    grid-template-columns: 1fr;
  }

  .rt-split {
    grid-template-columns: 1fr;
  }

  .rt-split__head {
    position: static;
  }

  .rt-help__grid {
    grid-template-columns: 1fr;
  }

  .rt-team__list {
    grid-template-columns: 1fr;
  }

  /* Compact guide card instead of a full-screen cover */
  .rt-hero__cover {
    display: flex;
    align-items: center;
    gap: 22px;
    justify-self: stretch;
    max-width: 520px;
    margin-top: 40px;
    padding: 18px;
    border: 1px solid rgba(255, 229, 0, 0.3);
  }

  .rt-hero__cover .rt-cover {
    flex: 0 0 96px;
  }

  .rt-hero__cover .rt-cover::before {
    inset: 8px -8px -8px 8px;
  }

  .rt-cover__meta {
    margin: 0;
    text-align: left;
    line-height: 1.9;
  }

  .rt-cover__tag {
    display: table;
    margin: 0 0 6px;
  }
}

@media (max-width: 768px) {
  /* Sticky bar: mobile only */
  .rt-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;                 /* above page content and the floating buttons, below the header (1000), mobile nav (999) and support modal (2000) */
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.96);
    border-top: 1px solid rgba(255, 229, 0, 0.35);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .rt-sticky.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease;
  }

  .rt-sticky__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
  }

  /* While the bar is up, lift the existing floating buttons above it
     so the "Immediate Support" button is never covered. */
  .rt-page .support-line-btn,
  .rt-page .scroll-top {
    transition: bottom 0.3s ease, background 0.25s ease, color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  }

  .rt-sticky-on .support-line-btn,
  .rt-sticky-on .scroll-top {
    bottom: calc(var(--rt-sticky-h) + 14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .rt-hero {
    padding-top: calc(var(--header-height) + 40px);
  }

  .rt-badge {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    padding: 7px 14px;
    margin-bottom: 26px;
  }

  .rt-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rt-actions .btn,
  .rt-download .btn,
  .rt-help-card__btn {
    width: 100%;
  }

  /* File type and size sits on its own line under the label */
  .rt-btn-dl__meta {
    display: block;
    margin: 4px 0 0;
    padding: 0;
    border-left: none;
  }

  .rt-cards {
    grid-template-columns: 1fr;
  }

  .rt-stat {
    padding: 26px 12px;
  }

  .rt-stat__big {
    font-size: clamp(1.6rem, 7.4vw, 2rem);
  }

  .rt-stat__cap {
    font-size: 0.86rem;
  }

  /* Diagrams keep a readable size and scroll sideways inside a full-bleed panel */
  .rt-diagram {
    margin: 0 -24px;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 20px 16px;
  }

  .rt-diagram__scroll svg {
    width: var(--rt-diagram-min);
    max-width: none;
  }

  .rt-download {
    grid-template-columns: 1fr;
  }

  .rt-download__cover {
    max-width: 130px;
  }

  .rt-toc {
    grid-template-columns: 1fr;
  }

  .rt-inside {
    gap: 10px;
  }

  .rt-inside__cap {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .rt-person {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    align-items: start;
  }

  .rt-person__img {
    width: 84px;
    height: 84px;
  }

  .rt-person__name {
    font-size: 1.08rem;
  }

  .rt-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
  }

  .rt-step__num {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .rt-step__title {
    font-size: 1.15rem;
  }

  .rt-faq__q {
    font-size: 1.02rem;
    padding-left: 18px;
  }

  .rt-faq__a {
    padding: 0 18px 22px;
  }

  .rt-pull__mark {
    padding: 0 0.08em;
  }
}

@media (max-width: 400px) {
  .rt-stats {
    grid-template-columns: 1fr;
  }

  .rt-stat + .rt-stat {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-sticky,
  .rt-sticky.is-visible {
    transition: none;
  }
}
