/* range-medical.com — the site's own page parts in the Range Clinics design
   (owner, 2026-10-23: the rangeclinics.com design on every range-medical.com
   page, the way rangesanclemente.com was done the day before with
   sc-skin.css). Loaded by components/clinics/NewportLayout.jsx in `skin` mode,
   AFTER styles/globals.css, rails.css and /clinics/site.css, and scoped to
   `.rails-skin`, the wrapper the frame puts round a page built on the old
   parts (the tx-* explainer bands, svc-* service pages, rh-* bands, the
   .range-mono layer at the end of globals.css). It maps those parts onto the
   Brand Rails: near-black, white, mist bands, Sun Day Red on the one action,
   Archivo 500 uppercase headlines, DejaVu Sans Mono labels, thin rules,
   square corners.

   Tokens only: every colour is a --rails-* value (rails.css) or one of
   site.css's own (--mist, --ink-soft, --rule-light, --gray-num). Never type a
   new hex. The page's words, links, prices, forms and tracking are untouched.

   Left alone on purpose: the patient guides (they keep the house guide frame,
   components/house/GuideChrome.jsx), and anything a named staff member asked
   for in a colour (CLAUDE.md, "A Palette Pass Never Repaints A Colour Staff
   Asked For") — nothing here touches note ink, the highlighter palette or the
   --rm-note-* tokens, which live only in the staff app. */

/* ── The old system's tokens, re-pointed at the rails ─────────────────────── */
.rails-skin {
  --black: var(--rails-black);
  --dark-gray: var(--ink-soft);
  --mid-gray: var(--ink-soft);
  --accent: var(--ink-soft);
  --rule: var(--rule-light);
  --bg-light: var(--mist);
  --color-bg: var(--rails-white);
  --color-bg-alt: var(--mist);
  --color-surface: var(--rails-white);
  --color-dark: var(--rails-black);
  --color-text: var(--rails-black);
  --color-text-secondary: var(--ink-soft);
  --color-text-muted: var(--ink-soft);
  --color-accent: var(--rails-black);
  --color-accent-hover: var(--ink-soft);
  --color-border: var(--rule-light);
  background: var(--rails-white);
  color: var(--rails-black);
  font-family: var(--f-body);
}

/* site.css sets bare p / img / section for the new pages. On an old page the
   old rules must keep deciding, so the bare rules step back to the browser's
   own (an old page's class rules still win, being more specific). */
body :where(.rails-skin) p { margin-block: 1em; max-width: none; color: var(--ink-soft); line-height: 1.65; }
:where(.rails-skin) img { display: revert; }
:where(.rails-skin) section { padding-block: revert; }
:where(.rails-skin) .hero { padding-block: revert; }
:where(.rails-skin) .result { background: revert; color: revert; padding: revert; display: revert; gap: revert; }
:where(.rails-skin) .result p { color: revert; }
:where(.rails-skin) .rule { border: revert; margin: revert; }

/* ── Type ──────────────────────────────────────────────────────────────────── */
/* Anchored on Next's root (#__next) so a page's own scoped styles (styled-jsx
   gives `.eo-hero.jsx-1 h1.jsx-1`, three classes deep) cannot outrank the
   rails type, labels or buttons. Still tokens only. */
#__next .rails-skin :is(h1, h2, h3) {
  font-family: var(--f-head);
  font-weight: 500;
  text-transform: uppercase;
  text-wrap: balance;
}
#__next .rails-skin h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.02em; }
#__next .rails-skin h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.015em; }
#__next .rails-skin h3 { line-height: 1.14; letter-spacing: -0.01em; }
#__next .rails-skin :is(h1, h2) { text-align: center; margin-inline: auto; }
#__next .rails-skin h1 + p { text-align: center; margin-inline: auto; }
.rails-skin h4 { font-family: var(--f-body); font-weight: 600; text-transform: none; }
.rails-skin :is(h1, h2, h3) em { font-style: normal; }
.rails-skin :is(strong, b) { font-weight: 600; }

/* Section labels (eyebrows): mono, the one red mark on a light band, white on
   black. The old 34px lead-in rule comes off — the rails label stands alone. */
#__next .rails-skin :is(.tx-label, .v2-label, .rh-eyebrow, .svc-label, .section-label, .hero-label, .eyebrow) {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rails-red);
}
#__next .rails-skin :is(.tx-label, .v2-label, .rh-eyebrow, .svc-label, .section-label, .hero-label, .eyebrow)::before { content: none; display: none; }
#__next .rails-skin :is(.tx-section-dark, .tx-cta, .section-dark, .rh-dark, .svc-dark, .dark) :is(.tx-label, .v2-label, .rh-eyebrow, .svc-label, .section-label, .eyebrow) { color: var(--rails-white); }

/* Numbers and small labels: mono, gray (decoration). */
.rails-skin :is(.tx-step-num, .rh-hero-step-num, .step-num, .tx-num, .index, .rh-index, .svc-num) {
  font-family: var(--f-mono);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gray-num);
}

/* ── Bands ─────────────────────────────────────────────────────────────────── */
.rails-skin :is(.tx-section-alt, .tx-section-light, .section-alt, .svc-section-alt, .bg-light) { background: var(--mist); }
.rails-skin :is(.tx-section-dark, .tx-cta, .section-dark, .rh-dark, .final-cta) { background: var(--rails-black); }
.rails-skin [class*="shadow"] { box-shadow: none; }

/* ── Buttons: the one action is Sun Day Red ────────────────────────────────── */
#__next .rails-skin :is(.tx-btn, .tx-book-btn, .btn-primary, .rh-btn-dark, .svc-btn-book, .svc-btn-start,
  .loc-btn-primary, .fq-btn-primary, .g-btn-primary, .wl-btn-primary, .ivb-btn, .al-btn, .gc-btn, .fs-btn,
  .of-btn, .lm-btn, .learn-cta-btn, .rm-cta-btn, .tx-book-select-btn, .tx-book-choice-cta, .ty-home-btn,
  .vr-submit-btn, .fs-link-btn, .ct-btn, .gv-btn, .join-submit, .su-submit, .rm-next):not(:is(.tx-btn-outline, .tx-book-btn--outline, [disabled])) {
  background: var(--rails-red);
  border: 1.5px solid var(--rails-red);
  color: var(--rails-white);
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
}
#__next .rails-skin :is(.tx-btn, .tx-book-btn, .btn-primary, .rh-btn-dark, .svc-btn-book, .svc-btn-start,
  .loc-btn-primary, .fq-btn-primary, .g-btn-primary, .wl-btn-primary, .ivb-btn, .al-btn, .gc-btn, .fs-btn,
  .of-btn, .lm-btn, .learn-cta-btn, .rm-cta-btn, .tx-book-select-btn, .tx-book-choice-cta, .ty-home-btn,
  .vr-submit-btn, .fs-link-btn, .ct-btn, .gv-btn, .join-submit, .su-submit, .rm-next):not(:is(.tx-btn-outline, .tx-book-btn--outline, [disabled])):hover {
  background: var(--rails-red-deep);
  border-color: var(--rails-red-deep);
  color: var(--rails-white);
}

/* Second actions: an outline, black on light, white on dark. */
#__next .rails-skin :is(.tx-btn-outline, .tx-book-btn--outline, .rh-btn-ghost, .g-btn-outline, .wl-btn-outline,
  .v2-btn-outline, .fs-link-btn-outline, .btn-outline) {
  background: transparent;
  border: 1.5px solid var(--rails-black);
  color: var(--rails-black);
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
#__next .rails-skin :is(.tx-section-dark, .tx-cta, .section-dark, .final-cta) :is(.tx-btn-outline, .rh-btn-ghost, .btn-outline-white, .rh-btn-light) {
  border-color: var(--rails-white);
  color: var(--rails-white);
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.rails-skin :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { border-radius: 0; }
.rails-skin :is(input, select, textarea):focus-visible { outline: 2px solid var(--rails-red); outline-offset: 2px; }

/* ── The trust strip under the header: white and mono, the way San Clemente's
   reads, so the frame's black announcement strip is the only black bar. ──── */
#__next .rails-skin .trust-bar { background: var(--rails-white); color: var(--rails-black); border-bottom: 1px solid var(--rule-light); }
#__next .rails-skin .trust-bar .trust-item { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); border-color: var(--rule-light); }
#__next .rails-skin .trust-bar .trust-rating { color: var(--rails-black); }

/* A closing black band never runs straight into the black footer. */
main:has(.rails-skin) + footer.site { border-top: 1px solid var(--ink-soft); }

/* The unregistered peptide guides (ara-290, epithalon, follistatin, hcg,
   pt-141, selank, semax, thymosin-alpha-1) carry .guide-editorial, whose
   heading rule is !important in globals.css; only an !important answers it. */
#__next .rails-skin .guide-editorial :is(h1, h2, h3) {
  font-family: var(--f-head) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.015em !important;
}

/* ==========================================================================
   v2.0 — THE WARM LOOK on the old page parts (owner, 2026-11-25: Option D,
   "roll it out"). Same tokens as /clinics/site.css's v2 block: cream page,
   sand bands and cards, light serif sentence-case headlines whose <em> is the
   italic maroon phrase, small sans labels, pill buttons, rounded corners.
   Words, links, prices, forms and tracking untouched.
   ========================================================================== */
.rails-skin {
  --rule: var(--rails-rule);
  --bg-light: var(--rails-sand);
  --color-bg: var(--rails-paper);
  --color-bg-alt: var(--rails-sand);
  --color-border: var(--rails-rule);
  background: var(--rails-paper);
  color: var(--rails-ink);
}
#__next .rails-skin :is(h1, h2, h3) {
  font-family: var(--rails-font-h1);
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.01em;
}
#__next .rails-skin h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.03; font-weight: var(--rails-h1-weight, 600); }   /* owner, 2026-11-26 */
#__next .rails-skin h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.06; }
#__next .rails-skin h3 { font-weight: 400; letter-spacing: 0; }
#__next .rails-skin :is(h1, h2, h3) :is(em, i) { font-style: italic; color: var(--rails-red); }
#__next .rails-skin :is(.tx-section-dark, .tx-cta, .section-dark, .rh-dark, .final-cta) :is(h1, h2, h3) :is(em, i) { color: var(--rails-red-on-dark); }

/* Labels: small sans caps in maroon; numbers in the serif. */
#__next .rails-skin :is(.tx-label, .v2-label, .rh-eyebrow, .svc-label, .section-label, .hero-label, .eyebrow) {
  font-family: var(--rails-font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.rails-skin :is(.tx-step-num, .rh-hero-step-num, .step-num, .tx-num, .rh-step-num, .svc-num) {
  font-family: var(--rails-font-h1);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--rails-red);
}
/* The short rule under every heading goes; the serif carries the section. */
#__next .rails-skin .tx-rule { display: none; }

/* Bands. */
.rails-skin :is(.tx-section, .tx-hero, .section, .svc-section) { background: var(--rails-paper); }
.rails-skin :is(.tx-section-alt, .tx-section-light, .section-alt, .svc-section-alt, .bg-light) { background: var(--rails-sand); }
.rails-skin :is(.tx-section-dark, .tx-cta, .section-dark, .rh-dark, .final-cta) { background: var(--rails-black); }

/* Cards: rounded; white on sand bands, sand on cream bands. */
#__next .rails-skin :is(.tx-step, .tx-plan-card, .tx-result-card, .tx-timeline-card, .tx-iv-card, .tx-portal-card,
  .tx-book-card, .tx-book-specialty-card, .tx-science, .rh-symptom-card, .rh-panel-card, .rh-review-card, .rh-plan-card,
  .rh-cta-box, .rh-step, .svc-card, .info-card, .protocol-card, .tier-card) {
  border-radius: var(--rails-radius-card) !important;
  border-color: var(--rails-rule);
  overflow: hidden;
}
#__next .rails-skin :is(.tx-step, .tx-plan-card, .tx-result-card, .tx-science) {
  background: var(--rails-white);
  padding: clamp(24px, 3vw, 36px);
}
#__next .rails-skin :is(.tx-section, .tx-hero) :is(.tx-step, .tx-plan-card, .tx-result-card, .tx-science) { background: var(--rails-sand); }

/* "Is this you?": a soft list with maroon checks instead of grey dots. */
#__next .rails-skin .tx-symptoms li { border-bottom-color: var(--rails-rule); font-size: 18px; }
#__next .rails-skin .tx-symptoms li::before {
  width: 20px; height: 20px; margin-top: 2px; border-radius: 50% !important;
  background: transparent; border: 1.5px solid var(--rails-red);
  -webkit-mask: none;
  box-shadow: inset 0 0 0 4px var(--rails-paper), inset 0 0 0 10px var(--rails-red);
}

/* FAQs: rounded rows. */
#__next .rails-skin .tx-faq-item { border-color: var(--rails-rule); }

/* Buttons: pills. */
#__next .rails-skin :is(.tx-btn, .tx-book-btn, .btn-primary, .rh-btn-dark, .svc-btn-book, .svc-btn-start,
  .loc-btn-primary, .fq-btn-primary, .g-btn-primary, .wl-btn-primary, .ivb-btn, .al-btn, .gc-btn, .fs-btn,
  .of-btn, .lm-btn, .learn-cta-btn, .rm-cta-btn, .tx-book-select-btn, .tx-book-choice-cta, .ty-home-btn,
  .vr-submit-btn, .fs-link-btn, .ct-btn, .gv-btn, .join-submit, .su-submit, .rm-next,
  .tx-btn-outline, .tx-book-btn--outline, .rh-btn-ghost, .g-btn-outline, .wl-btn-outline,
  .v2-btn-outline, .fs-link-btn-outline, .btn-outline, .rh-btn-light, .btn-outline-white, [class*="-btn"]) {
  border-radius: var(--rails-radius-pill) !important;
}
#__next .rails-skin :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { border-radius: 12px !important; }

/* Photos: rounded. */
#__next .rails-skin :is(.tx-hero, .tx-section, .tx-section-alt, .svc-section) img:not([width="16"]):not([src*="wordmark" i]):not([src*="logo" i]) { border-radius: var(--rails-radius-photo) !important; }

/* Trust strip under the header: sand, sans. */
#__next .rails-skin .trust-bar { background: var(--rails-paper); border-bottom-color: var(--rails-rule); }
#__next .rails-skin .trust-bar .trust-item { font-family: var(--rails-font-body); font-weight: 600; }

#__next .rails-skin .guide-editorial :is(h1, h2, h3) {
  font-family: var(--rails-font-h1) !important;
  font-weight: 300 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}
#__next .rails-skin .guide-editorial h1 { font-weight: var(--rails-h1-weight, 600) !important; }
main:has(.rails-skin) + footer.site { border-top: 0; }
/* A card inside a dark band stays dark: its text was written light. */
#__next .rails-skin :is(.tx-section-dark, .tx-cta, .section-dark, .rh-dark, .final-cta) :is(.tx-step, .tx-plan-card, .tx-result-card, .tx-science, .tx-timeline-card) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   MORE BLACK (owner, 2026-11-25: "I'd like to be able to get more black in this"
   then "Yes, all pages"). Every sand band is now a black band, so a page goes
   cream, black, cream. Text written for the light band is turned light; a card,
   form, calendar or review inside the band keeps its own light ground and ink,
   and a card that had no ground of its own gets a white one (zero specificity,
   so any card that sets its own background, padding or corners keeps them).
   ========================================================================== */
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) { background: var(--rails-black) !important; color: var(--rails-on-dark); }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, small, strong, b, em, i, blockquote, figcaption, span, div, .meta, .h1, .h2, .h3, a:not([class*="btn"])):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"])) { color: var(--rails-on-dark) !important; border-color: rgba(255,255,255,0.16); }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is(h1, h2, h3, .h1, .h2, .h3) :is(em, i):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *) { color: var(--rails-red-on-dark) !important; }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) a:not([class*="btn"]):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *) { color: var(--rails-red-on-dark) !important; }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is(.btn, [class*="-btn"]):not(.red):not([class*="primary"]):not([class*="book"]):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *) { border-color: var(--rails-white) !important; color: var(--rails-white) !important; background: transparent; }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is(.btn, [class*="-btn"]):not(.red):not([class*="primary"]):not([class*="book"]):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *):hover { background: var(--rails-white); color: var(--rails-black) !important; }
:where(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :where([class*="card"]:not([class*="cards"]):not([class*="grid"]):not([class*="list"]), [class*="Card"], .tx-step, .rh-step, .testimonial, .benefit-block, .cashpay-item) { background-color: var(--rails-white); padding: 24px; border-radius: 20px; }
:where(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :where([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) { color: var(--rails-ink); }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is(hr, li, [class*="rule"]):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *) { border-color: rgba(255,255,255,0.16) !important; }
/* Colours a page locks with Tailwind's "!" sit in a cascade layer, which beats
   any rule here, so the black band changes the colour VALUES those utilities read. */
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) { --foreground: var(--rails-on-dark); --secondary: var(--rails-on-dark-soft); --muted: var(--rails-on-dark-muted); --color-foreground: var(--rails-on-dark); --color-secondary: var(--rails-on-dark-soft); --color-muted: var(--rails-on-dark-muted); --color-text: var(--rails-on-dark); --color-text-secondary: var(--rails-on-dark-soft); --color-text-muted: var(--rails-on-dark-muted); }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) { --foreground: var(--rails-ink); --secondary: var(--rails-ink-soft); --muted: var(--rails-ink-soft); --color-foreground: var(--rails-ink); --color-secondary: var(--rails-ink-soft); --color-muted: var(--rails-ink-soft); --color-text: var(--rails-ink); --color-text-secondary: var(--rails-ink-soft); --color-text-muted: var(--rails-ink-soft); }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is(.rh-eyebrow, [class*="eyebrow"], .tx-label, .section-label, .eyebrow):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *) { color: var(--rails-red-on-dark) !important; }
:is(#__next .rails-skin :is([class*="section-alt"], .tx-section-light, .bg-light):not(:has([class*="card"], [class*="Card"], [class*="faq"], [class*="box"], [class*="tile"], [class*="item"], [class*="block"], [class*="tab"], .tx-step, .tx-science, .testimonial, form, table, iframe))) :is(.btn-1a-outline, .rh-btn-outline, .rh-btn-ghost):not(:is([class*="card"], [class*="Card"], [class*="box"], [class*="Box"], [class*="tile"], [class*="panel"], .price, .form, .visit-card, .special, .member-bar-out, .spg-includes, .sc-get, .ok, .photo-card, .testimonial, .benefit-block, .cashpay-item, .lp-tabs, .tx-science, form, table, [role="dialog"], .days, .slots, .chip, .bq-option, .bq-text, .bant-opts, .tx-step, .tx-faq-item, .rh-step, .grd, [class*="calendar"], [class*="Calendar"], [style*="background"]) *) { color: var(--rails-white) !important; border-color: var(--rails-white) !important; }
