/* ==========================================================================
   MedWay Full-Site Interactive FX & Atmospheric Glass Layer (medway-fx.css)
   Loads after medway-system.css and homepage stylesheets on all public routes.
   Preserves MedWay brand colors (warm paper #fcfaf6, deep navy #172f4d/#0b1b2f,
   copper #a44f2c, sand #e7c8a9, teal accent #0a736e) while introducing
   APIMart-inspired feathered glass, soft aurora gradients, bento cards,
   expanding accordion galleries, spotlight borders and smooth micro-motion.
   ========================================================================== */

:root {
  --mw-fx-paper: #fcfaf6;
  --mw-fx-paper-soft: #f3efe8;
  --mw-fx-navy: #172f4d;
  --mw-fx-navy-deep: #0b1b2f;
  --mw-fx-navy-ink: #10243d;
  --mw-fx-copper: #a44f2c;
  --mw-fx-sand: #e7c8a9;
  --mw-fx-sand-bright: #f7dfc5;
  --mw-fx-teal: #0a736e;
  --mw-fx-teal-soft: #d7eeea;
  --mw-fx-copy: #4d6176;
  --mw-fx-line: rgba(23, 47, 77, .1);
  --mw-fx-line-strong: rgba(23, 47, 77, .16);

  --mw-fx-glass: rgba(255, 255, 255, .78);
  --mw-fx-glass-strong: rgba(255, 255, 255, .9);
  --mw-fx-glass-dark: rgba(11, 27, 47, .74);
  --mw-fx-glass-border: rgba(255, 255, 255, .62);

  --mw-fx-radius-sm: 10px;
  --mw-fx-radius-md: 16px;
  --mw-fx-radius-lg: 22px;
  --mw-fx-radius-pill: 999px;

  --mw-fx-ease: cubic-bezier(.16, 1, .3, 1);
  --mw-fx-spring: cubic-bezier(.22, 1, .36, 1);
  --mw-fx-shadow-card: 0 10px 30px -16px rgba(15, 34, 56, .16), 0 1px 2px rgba(15, 34, 56, .05);
  --mw-fx-shadow-hover: 0 22px 48px -20px rgba(15, 34, 56, .28), 0 4px 12px -4px rgba(15, 34, 56, .08);
  --mw-fx-shadow-glass: 0 20px 50px -22px rgba(11, 27, 47, .35), inset 0 1px 0 rgba(255, 255, 255, .65);

  --mw-fx-aurora-light:
    radial-gradient(62% 110% at 8% 35%, rgba(186, 228, 222, .68) 0%, rgba(186, 228, 222, 0) 68%),
    radial-gradient(58% 120% at 78% 18%, rgba(244, 212, 182, .72) 0%, rgba(244, 212, 182, 0) 68%),
    radial-gradient(50% 90% at 50% 95%, rgba(215, 229, 245, .52) 0%, rgba(215, 229, 245, 0) 70%),
    linear-gradient(180deg, #faf7f2 0%, #fcfaf6 100%);

  --mw-fx-aurora-deep:
    radial-gradient(65% 85% at 82% 24%, rgba(10, 115, 110, .34) 0%, rgba(10, 115, 110, 0) 64%),
    radial-gradient(58% 80% at 16% 85%, rgba(231, 200, 169, .24) 0%, rgba(231, 200, 169, 0) 62%),
    radial-gradient(80% 70% at 52% 40%, rgba(53, 95, 148, .35) 0%, rgba(53, 95, 148, 0) 70%),
    linear-gradient(155deg, #081525 0%, #0d2139 48%, #163050 100%);
}

/* ==========================================================================
   1. Keyframes Library (APIMart-inspired Motion Vocabulary)
   ========================================================================== */
@keyframes mw-fx-shiny {
  0%, 82%, 100% { background-position: -140% 0; }
  38%, 58% { background-position: 140% 0; }
}

@keyframes mw-fx-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes mw-fx-marquee-reverse {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes mw-fx-wall-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@keyframes mw-fx-blur-in {
  from { opacity: 0; filter: blur(8px); transform: translate3d(0, 12px, 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

@keyframes mw-fx-reply-in {
  from { opacity: 0; filter: blur(5px); transform: translate3d(0, 7px, 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

@keyframes mw-fx-pop-in {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes mw-fx-faq-flash {
  0% { background-color: rgba(164, 79, 44, .11); }
  100% { background-color: transparent; }
}

@keyframes mw-fx-progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes mw-fx-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: .45; }
}

@keyframes mw-fx-spin {
  to { transform: rotate(360deg); }
}

@keyframes mw-fx-wave {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}

@keyframes mw-fx-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes mw-fx-float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mw-fx-card-stagger {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* ==========================================================================
   2. Progressive Feathered-Blur Glass Header & Global Reading Progress
   ========================================================================== */
.cmt-site:not(.mw-workspace-route) .cmt-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--mw-fx-paper) 74%, transparent) !important;
  border-bottom: 1px solid rgba(23, 47, 77, .06) !important;
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  transition: background-color .35s var(--mw-fx-ease), border-color .35s var(--mw-fx-ease), box-shadow .4s var(--mw-fx-ease);
}

/* APIMart-inspired soft feathered glass veil fading downward under header */
.cmt-site:not(.mw-workspace-route) .cmt-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: calc(100% + 22px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(252, 250, 246, .88) 0%, rgba(252, 250, 246, .52) 64%, rgba(252, 250, 246, 0) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  opacity: .85;
  transition: opacity .35s var(--mw-fx-ease);
}

/* Top micro reading-progress aurora bar */
.cmt-site:not(.mw-workspace-route) .cmt-header::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 2.5px;
  width: var(--mw-scroll-progress, 0%);
  background: linear-gradient(90deg, var(--mw-fx-teal), var(--mw-fx-copper), var(--mw-fx-sand));
  box-shadow: 0 0 12px rgba(164, 79, 44, .45);
  pointer-events: none;
  z-index: 3;
  transition: width .08s linear;
}

.cmt-site:not(.mw-workspace-route) .cmt-header.is-scrolled {
  background: color-mix(in srgb, var(--mw-fx-paper) 88%, transparent) !important;
  border-bottom-color: rgba(23, 47, 77, .1) !important;
  box-shadow: 0 14px 36px -26px rgba(11, 27, 47, .38);
}

.cmt-site:not(.mw-workspace-route) .cmt-navigation > a {
  border-radius: 10px;
  transition: color .24s var(--mw-fx-ease), background-color .24s var(--mw-fx-ease), transform .24s var(--mw-fx-ease);
}

@media (min-width: 1001px) {
  .cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link) {
    min-height: 0 !important;
    padding: 7px 11px !important;
    height: auto !important;
    line-height: 1.35 !important;
    align-self: center;
    border-radius: 10px !important;
  }
  .cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link)::after {
    inset-inline: 11px;
    bottom: -2px !important;
    height: 2px !important;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mw-fx-copper), var(--mw-fx-teal));
  }
  /* Keep hover clean as a soft rounded pill; reserve the gradient underline for the active route */
  .cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link):not([aria-current]):hover::after {
    transform: scaleX(0) !important;
  }
}

@media (min-width: 1001px) and (max-width: 1380px) {
  .cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link) {
    padding: 7px 5px !important;
  }
  .cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link)::after {
    inset-inline: 5px;
  }
  .cmt-site:not(.mw-workspace-route) .cmt-navigation > a.cmt-account-link {
    padding-inline: 10px;
  }
}

@media (min-width: 1001px) {
  html[lang="ar"] .cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link) {
    padding: 7px 6px !important;
  }
  html[lang="ar"] .cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link)::after {
    inset-inline: 6px;
  }
}

.cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link):hover {
  background: rgba(23, 47, 77, .065);
  color: var(--mw-fx-navy);
  transform: none;
}

.cmt-site:not(.mw-workspace-route) .cmt-navigation > a:not(.cmt-account-link)::after {
  background: linear-gradient(90deg, var(--mw-fx-copper), var(--mw-fx-teal));
}

.cmt-site:not(.mw-workspace-route) .cmt-navigation > a.cmt-account-link {
  border-radius: var(--mw-fx-radius-pill);
  border: 1px solid rgba(23, 47, 77, .14);
  background: rgba(255, 255, 255, .72);
  padding-inline: 14px;
  box-shadow: 0 4px 14px -10px rgba(15, 34, 56, .25);
  transition: all .26s var(--mw-fx-ease);
}

.cmt-site:not(.mw-workspace-route) .cmt-navigation > a.cmt-account-link:hover {
  background: var(--mw-fx-navy);
  border-color: var(--mw-fx-navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(23, 47, 77, .55);
}

.cmt-site:not(.mw-workspace-route) .cmt-navigation > a.cmt-account-link:hover .cmt-icon {
  filter: brightness(0) invert(1);
}

.cmt-site:not(.mw-workspace-route) .cmt-language .language-toggle {
  border-radius: var(--mw-fx-radius-pill);
  transition: background-color .22s ease, border-color .22s ease;
}

.cmt-site:not(.mw-workspace-route) .cmt-language .language-toggle:hover {
  background: rgba(23, 47, 77, .055);
}

.cmt-site:not(.mw-workspace-route) .cmt-language .language-menu {
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(23, 47, 77, .1);
  box-shadow: 0 20px 44px -18px rgba(11, 27, 47, .26);
  transform-origin: top center;
  animation: mw-fx-pop-in .22s var(--mw-fx-spring);
}

/* ==========================================================================
   3. Global Micro-Interaction Primitives (Spotlight, Sheen, Magnetic, Pills)
   ========================================================================== */

/* Spotlight hover overlay & specular border glow */
.mw-fx-spotlight {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  --spot-alpha: 0;
}

.mw-fx-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: var(--spot-alpha);
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(231, 200, 169, .24), rgba(10, 115, 110, .08) 42%, transparent 72%);
  transition: opacity .35s var(--mw-fx-ease);
}

.mw-fx-spotlight:hover {
  --spot-alpha: 1;
}

/* Magnetic + Diagonal Sheen CTA Buttons */
.cmt-site:not(.mw-workspace-route) :is(.cmt-button, .mw-approved-button, .cmt-btn) {
  position: relative;
  overflow: hidden;
  border-radius: 10px !important;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition:
    background-color .24s ease,
    border-color .24s ease,
    color .24s ease,
    box-shadow .32s var(--mw-fx-ease),
    transform .28s var(--mw-fx-spring);
}

.cmt-site:not(.mw-workspace-route) :is(.cmt-button, .mw-approved-button, .cmt-btn)::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(112deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-115%) skewX(-18deg);
  pointer-events: none;
  transition: transform .72s var(--mw-fx-ease);
}

.cmt-site:not(.mw-workspace-route) :is(.cmt-button, .mw-approved-button, .cmt-btn):hover::after {
  transform: translateX(115%) skewX(-18deg);
}

.cmt-site:not(.mw-workspace-route) :is(.cmt-button, .mw-approved-button, .cmt-btn):hover {
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0);
  box-shadow: 0 14px 32px -14px rgba(15, 34, 56, .42);
}

.cmt-site:not(.mw-workspace-route) :is(.cmt-button, .mw-approved-button, .cmt-btn):active {
  transform: scale(.975) !important;
  box-shadow: none;
}

/* Shiny Text Badge */
.mw-fx-shiny-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--mw-fx-radius-pill);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
}

.mw-fx-shiny-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mw-fx-sand);
  box-shadow: 0 0 0 4px rgba(231, 200, 169, .24);
  animation: mw-fx-dot-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.mw-fx-shiny-badge__text {
  background: linear-gradient(105deg, rgba(255, 255, 255, .74) 0%, #fff 46%, var(--mw-fx-sand-bright) 54%, rgba(255, 255, 255, .74) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mw-fx-shiny 5.5s ease-in-out infinite;
}

/* Sliding Pill Indicator Tabs */
.mw-fx-pill-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(23, 47, 77, .06);
  border: 1px solid rgba(23, 47, 77, .08);
}

.mw-fx-pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: var(--mw-fx-radius-pill);
  background: var(--mw-fx-navy);
  box-shadow: 0 6px 16px -8px rgba(15, 34, 56, .5);
  pointer-events: none;
  z-index: 0;
  transition: transform .36s var(--mw-fx-spring), width .36s var(--mw-fx-spring), opacity .2s ease;
}

.mw-fx-pill-tabs > button,
.mw-fx-pill-tabs > a {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: var(--mw-fx-radius-pill);
  background: transparent;
  color: var(--mw-fx-copy);
  font: 500 13.5px/1.35 var(--mw-sys-font, sans-serif);
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s ease;
}

.mw-fx-pill-tabs > :is(button, a)[aria-selected="true"],
.mw-fx-pill-tabs > :is(button, a).is-active,
.mw-fx-pill-tabs > :is(button, a).is-current {
  color: #fff !important;
}

/* Scroll Reveal (Visible-Before-Motion safe: only active once JS adds .mw-fx-ready) */
html.mw-fx-ready .mw-fx-reveal:not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

html.mw-fx-ready .mw-fx-reveal {
  transition: opacity .68s var(--mw-fx-ease), transform .68s var(--mw-fx-ease);
  transition-delay: var(--mw-fx-delay, 0ms);
}

html.mw-fx-ready .mw-fx-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Override the old refresh rule that killed .mw-reveal animations */
html.mw-motion-ready.mw-fx-ready .mw-reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 20px;
}

html.mw-motion-ready.mw-fx-ready .mw-reveal {
  transition: opacity .68s var(--mw-fx-ease), translate .68s var(--mw-fx-ease);
  transition-delay: var(--mw-reveal-delay, 0ms);
}

html.mw-motion-ready.mw-fx-ready .mw-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ==========================================================================
   4. Homepage Hero + Bi-Directional APIMart Floating Glass Showcase Rail
   ========================================================================== */
body.mw-home-approved .mw-approved-hero {
  background: var(--mw-fx-aurora-deep) !important;
  min-height: clamp(580px, 50vw, 690px) !important;
  padding-block: 36px 46px;
  padding-inline: max(40px, calc((100vw - 1240px) / 2));
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 376px);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  isolation: isolate;
}

body.mw-home-approved .mw-approved-hero .mw-approved-hero__content {
  width: 100% !important;
  max-width: 560px;
  margin-inline-start: 0 !important;
  padding-block: 24px !important;
  z-index: 3;
}

body.mw-home-approved .mw-approved-hero .mw-approved-hero__content::before {
  inset: -48px -64px;
  background: radial-gradient(closest-side, rgba(8, 21, 37, .72), rgba(8, 21, 37, 0));
}

body.mw-home-approved .mw-approved-hero .mw-approved-button {
  background: linear-gradient(135deg, #eccfb0 0%, #e4bd95 100%);
  color: #10243d;
  border-color: rgba(255, 240, 222, .65);
  box-shadow: 0 12px 30px -12px rgba(231, 200, 169, .62);
}

body.mw-home-approved .mw-approved-hero .mw-approved-button:hover {
  background: linear-gradient(135deg, #f6e0c8 0%, #ecc79f 100%);
  box-shadow: 0 18px 38px -12px rgba(231, 200, 169, .78);
}

body.mw-home-approved .mw-approved-hero .mw-approved-text-link {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease, transform .25s var(--mw-fx-spring);
}

body.mw-home-approved .mw-approved-hero .mw-approved-text-link:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(231, 200, 169, .7) !important;
  color: var(--mw-fx-sand-bright);
  transform: translateY(-2px);
}

/* Floating Glass Showcase Rail (APIMart hero-rail) */
.mw-hero-rail {
  position: relative;
  z-index: 4;
  border-radius: 20px;
  padding: 14px;
  background: rgba(252, 250, 246, .92);
  color: var(--mw-fx-navy);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 28px 64px -22px rgba(4, 12, 24, .65), inset 0 1px 0 rgba(255, 255, 255, .85);
  animation: mw-fx-pop-in .8s var(--mw-fx-spring) .25s both;
}

.mw-hero-rail__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-bottom: 10px;
  background: rgba(23, 47, 77, .065);
  border-radius: 12px;
  padding: 3px;
}

.mw-hero-rail__tabs .mw-fx-pill-indicator {
  border-radius: 9px;
  top: 3px;
  bottom: 3px;
  background: #fff;
  box-shadow: 0 4px 12px -4px rgba(15, 34, 56, .18);
}

.mw-hero-rail__tabs > button {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-fx-copy);
  text-align: center;
}

.mw-hero-rail__tabs > button[aria-selected="true"] {
  color: var(--mw-fx-navy) !important;
}

.mw-hero-rail__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mw-hero-rail__list[hidden] {
  display: none;
}

.mw-hero-rail__item {
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color .28s var(--mw-fx-ease), border-color .28s var(--mw-fx-ease), box-shadow .32s var(--mw-fx-ease);
}

.mw-hero-rail__item.is-active {
  background: #fff;
  border-color: rgba(23, 47, 77, .09);
  box-shadow: 0 10px 26px -14px rgba(15, 34, 56, .24);
}

.mw-hero-rail__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
  border-radius: 14px;
  transition: background-color .2s ease;
}

.mw-hero-rail__item:not(.is-active) .mw-hero-rail__trigger:hover {
  background: rgba(23, 47, 77, .045);
}

.mw-hero-rail__thumb {
  width: 44px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: #dde5ee;
  transition: transform .35s var(--mw-fx-ease);
}

.mw-hero-rail__item.is-active .mw-hero-rail__thumb {
  width: 52px;
  height: 44px;
}

.mw-hero-rail__meta {
  min-width: 0;
  flex: 1;
}

.mw-hero-rail__meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mw-fx-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mw-hero-rail__meta small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--mw-fx-copy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mw-hero-rail__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(10, 115, 110, .1);
  color: var(--mw-fx-teal);
}

.mw-hero-rail__item.is-active .mw-hero-rail__badge {
  background: var(--mw-fx-navy);
  color: var(--mw-fx-sand-bright);
}

.mw-hero-rail__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .36s var(--mw-fx-spring), opacity .28s ease;
}

.mw-hero-rail__item.is-active .mw-hero-rail__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.mw-hero-rail__body-inner {
  overflow: hidden;
  padding: 0 11px;
}

.mw-hero-rail__item.is-active .mw-hero-rail__body-inner {
  padding: 0 11px 11px;
}

.mw-hero-rail__desc {
  margin: 0 0 8px !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: var(--mw-fx-copy) !important;
}

.mw-hero-rail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.mw-hero-rail__chips span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--mw-fx-radius-pill);
  background: #f2f0ec;
  color: var(--mw-fx-navy);
}

.mw-hero-rail__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mw-hero-rail__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--mw-fx-navy);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color .22s ease, transform .22s ease;
}

.mw-hero-rail__cta:hover {
  background: var(--mw-fx-teal);
  transform: translateY(-1px);
}

.mw-hero-rail__cta .cmt-icon {
  width: 14px !important;
  height: 14px !important;
  filter: brightness(0) invert(1);
}

.mw-hero-rail__progress {
  position: relative;
  height: 2.5px;
  border-radius: 3px;
  background: rgba(23, 47, 77, .1);
  margin-top: 10px;
  overflow: hidden;
}

.mw-hero-rail__progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--mw-fx-teal), var(--mw-fx-copper));
  transform-origin: left center;
  transform: scaleX(0);
}

html[dir="rtl"] .mw-hero-rail__progress-fill {
  transform-origin: right center;
}

.mw-hero-rail__item.is-active .mw-hero-rail__progress-fill.is-running {
  animation: mw-fx-progress-fill var(--rail-duration, 9400ms) linear forwards;
}

.mw-hero-rail.is-paused .mw-hero-rail__progress-fill.is-running {
  animation-play-state: paused;
}

.mw-hero-rail__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(23, 47, 77, .08);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mw-fx-navy);
}

.mw-hero-rail__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mw-fx-navy);
  transition: color .2s ease;
}

.mw-hero-rail__bottom a:hover {
  color: var(--mw-fx-copper);
}

.mw-hero-rail__nav {
  display: inline-flex;
  gap: 4px;
}

.mw-hero-rail__nav button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(23, 47, 77, .14);
  background: #fff;
  color: var(--mw-fx-navy);
  cursor: pointer;
  font-size: 13px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mw-hero-rail__nav button:hover {
  background: var(--mw-fx-navy);
  border-color: var(--mw-fx-navy);
  color: #fff;
  transform: scale(1.06);
}

/* Wayfinding Strip Upgrade */
body.mw-home-approved .mw-approved-wayfinding {
  background: linear-gradient(180deg, #0d1f36 0%, #142b49 100%) !important;
  border-top: 1px solid rgba(231, 200, 169, .18);
  border-bottom: 1px solid rgba(231, 200, 169, .14);
  padding-block: 14px;
}

body.mw-home-approved .mw-approved-wayfinding > a {
  border-radius: 14px;
  border-inline-end: 1px solid rgba(255, 255, 255, .12);
  padding: 12px 24px !important;
  transition: background-color .28s var(--mw-fx-ease), transform .32s var(--mw-fx-spring), box-shadow .32s var(--mw-fx-ease);
}

body.mw-home-approved .mw-approved-wayfinding > a:hover {
  background: rgba(255, 255, 255, .075);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(231, 200, 169, .35);
}

/* ==========================================================================
   5. Aurora Mesh-Gradient Counter & Dual-Track Infinite Marquee Band
   ========================================================================== */
.mw-fx-marquee-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(32px, 4vw, 52px);
  background: var(--mw-fx-aurora-light);
  border-bottom: 1px solid rgba(23, 47, 77, .07);
}

.mw-fx-marquee-band__inner {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.mw-fx-marquee-band__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mw-fx-marquee-band__figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.mw-fx-marquee-band__figure strong {
  font-family: "Noto Serif SC Home", "Noto Serif Home", var(--mw-sys-font, serif);
  font-size: clamp(42px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--mw-fx-navy);
  font-variant-numeric: tabular-nums;
}

.mw-fx-marquee-band__figure span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mw-fx-copy);
}

.mw-fx-marquee-band__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--mw-fx-copy);
}

.mw-fx-marquee-band__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  color: var(--mw-fx-navy);
  margin-top: 2px;
  transition: color .2s ease, gap .25s var(--mw-fx-ease);
}

.mw-fx-marquee-band__link:hover {
  color: var(--mw-fx-copper);
  gap: 10px;
}

.mw-fx-marquee-tracks {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.mw-fx-marquee-row {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: mw-fx-marquee 38s linear infinite;
  will-change: transform;
}

.mw-fx-marquee-row--reverse {
  animation-name: mw-fx-marquee-reverse;
  animation-duration: 44s;
}

.mw-fx-marquee-tracks:hover .mw-fx-marquee-row,
.mw-fx-marquee-tracks:focus-within .mw-fx-marquee-row {
  animation-play-state: paused;
}

html[dir="rtl"] .mw-fx-marquee-row {
  animation-direction: reverse;
}

.mw-fx-marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(23, 47, 77, .08);
  box-shadow: 0 6px 18px -12px rgba(15, 34, 56, .22);
  color: var(--mw-fx-navy);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--mw-fx-spring), box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.mw-fx-marquee-pill:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(164, 79, 44, .32);
  box-shadow: 0 12px 24px -12px rgba(15, 34, 56, .28);
}

.mw-fx-marquee-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mw-fx-teal);
  flex-shrink: 0;
}

.mw-fx-marquee-pill--copper .mw-fx-marquee-pill__dot {
  background: var(--mw-fx-copper);
}

.mw-fx-marquee-pill em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--mw-fx-copy);
}

/* ==========================================================================
   6. Homepage MedWay Assistant — APIMart Drifting Card Wall + Frosted Glass Stage
   ========================================================================== */
body.mw-home-approved .mw-approved-agent {
  position: relative;
  overflow: hidden;
  width: min(1240px, calc(100% - 80px)) !important;
  margin-block: 36px;
  padding: clamp(36px, 4.5vw, 56px) clamp(24px, 4vw, 52px) !important;
  border-radius: 26px;
  background: var(--mw-fx-aurora-light) !important;
  border: 1px solid rgba(23, 47, 77, .09);
  box-shadow: 0 24px 60px -30px rgba(15, 34, 56, .2);
  isolation: isolate;
}

.mw-agent-wall {
  position: absolute;
  inset: -40px -24px;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  opacity: .24;
  filter: saturate(.85);
  -webkit-mask-image: radial-gradient(ellipse 84% 78% at 50% 50%, rgba(0, 0, 0, .25) 0%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 84% 78% at 50% 50%, rgba(0, 0, 0, .25) 0%, #000 58%, transparent 100%);
  transform: rotate(-4deg) scale(1.06);
}

.mw-agent-wall__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: mw-fx-wall-up 34s linear infinite;
}

.mw-agent-wall__col:nth-child(even) {
  animation-duration: 42s;
  animation-direction: reverse;
}

.mw-agent-wall__col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 26px -12px rgba(11, 27, 47, .35);
}

.mw-approved-agent__intro,
.mw-approved-agent__entry {
  position: relative;
  z-index: 2;
}

.mw-approved-agent__label {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(10, 115, 110, .1);
  color: var(--mw-fx-teal) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.mw-approved-agent__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mw-fx-teal);
  animation: mw-fx-dot-pulse 2.2s infinite;
}

body.mw-home-approved .mw-approved-composer {
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .86) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .85) !important;
  box-shadow: 0 22px 54px -22px rgba(11, 27, 47, .26), 0 0 0 1px rgba(23, 47, 77, .08);
  transition: box-shadow .3s var(--mw-fx-ease), border-color .3s ease, transform .3s var(--mw-fx-spring);
}

body.mw-home-approved .mw-approved-composer:focus-within {
  border-color: rgba(10, 115, 110, .48) !important;
  outline: none !important;
  box-shadow: 0 26px 60px -22px rgba(10, 115, 110, .28), 0 0 0 4px rgba(10, 115, 110, .14);
}

body.mw-home-approved .mw-approved-composer textarea {
  background: transparent !important;
}

/* Live interactive preview strip inside Home Agent */
.mw-home-agent-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mw-home-agent-preview[hidden] {
  display: none;
}

.mw-home-agent-preview__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(23, 47, 77, .09);
  font-size: 12.5px;
  color: var(--mw-fx-navy);
  animation: mw-fx-reply-in .38s var(--mw-fx-spring) both;
}

.mw-home-agent-preview__step:nth-child(2) { animation-delay: 110ms; }
.mw-home-agent-preview__step:nth-child(3) { animation-delay: 220ms; }

.mw-home-agent-preview__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(10, 115, 110, .22);
  border-top-color: var(--mw-fx-teal);
  flex-shrink: 0;
  animation: mw-fx-spin .9s linear infinite;
}

.mw-home-agent-preview__step.is-done .mw-home-agent-preview__spinner {
  border-color: var(--mw-fx-teal);
  background: var(--mw-fx-teal);
  animation: none;
  box-shadow: inset 0 0 0 3px #fff;
}

body.mw-home-approved .mw-approved-agent__examples {
  justify-content: flex-start !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

body.mw-home-approved .mw-approved-agent__examples button {
  min-height: 38px !important;
  padding: 6px 14px !important;
  border-radius: var(--mw-fx-radius-pill) !important;
  border: 1px solid rgba(23, 47, 77, .14) !important;
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--mw-fx-navy) !important;
  font-size: 13.5px !important;
  transition: all .24s var(--mw-fx-spring);
}

body.mw-home-approved .mw-approved-agent__examples button:hover,
body.mw-home-approved .mw-approved-agent__examples button.is-selected {
  background: var(--mw-fx-navy) !important;
  border-color: var(--mw-fx-navy) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(15, 34, 56, .45);
}

/* Family Section Glass Frame Upgrade */
body.mw-home-approved .mw-approved-family__photo {
  border-radius: 20px !important;
  box-shadow: var(--mw-fx-shadow-card);
}

body.mw-home-approved .mw-approved-family__photo:hover .mw-approved-family__image {
  transform: scale(1.04) !important;
}

body.mw-home-approved .mw-approved-family__links > a {
  padding: 12px 14px !important;
  border-radius: 12px;
  transition: background-color .24s ease, padding-inline .28s var(--mw-fx-spring), color .2s ease;
}

body.mw-home-approved .mw-approved-family__links > a:hover {
  background: rgba(23, 47, 77, .05);
  color: var(--mw-fx-copper);
  padding-inline-start: 18px !important;
}

/* ==========================================================================
   7. Dark Cinematic 5-Step Narrative Spotlight (APIMart "Why" Chapter)
   ========================================================================== */
.mw-home-approved .mw-restored-home .mw-ed-way.mw-fx-cinema {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 6vw, 84px) clamp(38px, 4vw, 52px) !important;
  min-height: 540px;
  display: flex;
  align-items: stretch;
  background: #081525 !important;
  color: #fff;
  isolation: isolate;
}

.mw-fx-cinema__backdrops {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mw-fx-cinema__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--mw-fx-ease), transform 1.4s var(--mw-fx-ease);
}

.mw-fx-cinema__bg.is-active {
  opacity: .42;
  transform: scale(1);
}

.mw-fx-cinema__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(65% 75% at 78% 34%, rgba(10, 115, 110, .28) 0%, transparent 65%),
    linear-gradient(100deg, rgba(8, 21, 37, .94) 0%, rgba(8, 21, 37, .72) 52%, rgba(8, 21, 37, .55) 100%),
    linear-gradient(180deg, rgba(8, 21, 37, .3) 0%, rgba(8, 21, 37, .92) 100%);
}

.mw-fx-cinema > .cmt-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.mw-fx-cinema__stage {
  max-width: 720px;
}

.mw-fx-cinema__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mw-fx-sand);
  margin-bottom: 14px;
}

.mw-fx-cinema__title {
  font-family: "Noto Serif SC Home", "Noto Serif Home", serif !important;
  font-size: clamp(32px, 3.8vw, 50px) !important;
  line-height: 1.24 !important;
  letter-spacing: -.025em;
  color: #fff !important;
  margin: 0 0 16px !important;
}

.mw-fx-cinema__title.is-animating {
  animation: mw-fx-blur-in .62s var(--mw-fx-spring) both;
}

.mw-fx-cinema__desc {
  font-size: 16.5px !important;
  line-height: 1.78 !important;
  color: rgba(232, 240, 248, .86) !important;
  max-width: 56ch;
  min-height: 3.6em;
}

.mw-fx-cinema__desc.is-animating {
  animation: mw-fx-reply-in .55s var(--mw-fx-ease) .1s both;
}

.mw-fx-cinema__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.mw-home-approved .mw-restored-home .mw-fx-cinema__actions .mw-approved-button {
  background: linear-gradient(135deg, #eccfb0 0%, #e4bd95 100%) !important;
  color: #0b1b2f !important;
  border-color: rgba(255, 240, 222, .72) !important;
  box-shadow: 0 12px 28px -12px rgba(231, 200, 169, .58);
}

.mw-home-approved .mw-restored-home .mw-fx-cinema__actions .mw-approved-button:hover {
  background: linear-gradient(135deg, #f6e0c8 0%, #ecc79f 100%) !important;
}

.mw-home-approved .mw-restored-home .mw-fx-cinema__actions .mw-approved-button .cmt-icon {
  filter: none !important;
}

.mw-fx-cinema__actions .mw-ed-link {
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mw-fx-cinema__actions .mw-ed-link:hover {
  background: rgba(255, 255, 255, .15);
  text-decoration: none !important;
}

/* Bottom 5-Column Auto-Advancing Progress Timeline */
.mw-fx-cinema__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-fx-cinema__step {
  position: relative;
}

.mw-fx-cinema__step-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 4px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .52);
  text-align: start;
  cursor: pointer;
  transition: color .28s ease;
}

.mw-fx-cinema__step-btn:hover {
  color: rgba(255, 255, 255, .86);
}

.mw-fx-cinema__step.is-active .mw-fx-cinema__step-btn {
  color: #fff;
}

.mw-fx-cinema__bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: rgba(255, 255, 255, .2);
  border-radius: 2px;
  overflow: hidden;
}

.mw-fx-cinema__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--mw-fx-sand), #fff);
  transform-origin: left center;
  transform: scaleX(0);
}

html[dir="rtl"] .mw-fx-cinema__bar-fill {
  transform-origin: right center;
}

.mw-fx-cinema__step.is-done .mw-fx-cinema__bar-fill {
  transform: scaleX(1);
}

.mw-fx-cinema__step.is-active .mw-fx-cinema__bar-fill.is-running {
  animation: mw-fx-progress-fill var(--cinema-duration, 5600ms) linear forwards;
}

.mw-fx-cinema.is-paused .mw-fx-cinema__bar-fill.is-running {
  animation-play-state: paused;
}

.mw-fx-cinema__step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--mw-fx-sand);
  opacity: .75;
  font-variant-numeric: tabular-nums;
}

.mw-fx-cinema__step.is-active .mw-fx-cinema__step-num {
  opacity: 1;
}

.mw-fx-cinema__step-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   8. Horizontal Expanding Accordion Gallery (APIMart Creative Strips)
   ========================================================================== */
.mw-fx-strips {
  display: flex;
  gap: 12px;
  height: 440px;
  width: 100%;
}

.mw-fx-strip {
  position: relative;
  flex: 1 1 0%;
  min-width: 64px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--mw-fx-navy-deep);
  cursor: pointer;
  transition: flex-grow .62s var(--mw-fx-spring), box-shadow .4s var(--mw-fx-ease);
  box-shadow: 0 12px 30px -18px rgba(11, 27, 47, .32);
}

.mw-fx-strip.is-active {
  flex-grow: 5.2;
  box-shadow: 0 26px 56px -22px rgba(11, 27, 47, .48);
}

.mw-fx-strip__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: brightness(.78) saturate(.95);
  transition: transform .85s var(--mw-fx-ease), filter .5s ease;
}

.mw-fx-strip.is-active .mw-fx-strip__img {
  transform: scale(1);
  filter: brightness(.88) saturate(1.05);
}

.mw-fx-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 47, .12) 0%, rgba(11, 27, 47, .35) 50%, rgba(8, 21, 37, .9) 100%);
  pointer-events: none;
}

.mw-fx-strip__index {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding-inline: 9px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Collapsed Vertical Spine Title */
.mw-fx-strip__spine {
  position: absolute;
  inset-inline: 0;
  bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity .25s ease;
}

.mw-fx-strip__spine span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  max-height: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mw-fx-strip.is-active .mw-fx-strip__spine {
  opacity: 0;
}

/* Expanded Content Panel */
.mw-fx-strip__panel {
  position: absolute;
  inset-inline: 24px;
  bottom: 24px;
  z-index: 3;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .38s var(--mw-fx-ease) .1s, transform .46s var(--mw-fx-spring) .08s;
}

.mw-fx-strip.is-active .mw-fx-strip__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mw-fx-strip__panel h3 {
  margin: 0 0 8px !important;
  font-family: "Noto Serif SC Home", "Noto Serif Home", serif !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  line-height: 1.3 !important;
  color: #fff !important;
}

.mw-fx-strip__panel p {
  margin: 0 0 14px !important;
  max-width: 46ch;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, .86) !important;
}

.mw-fx-strip__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.mw-fx-strip__tags span {
  padding: 5px 11px;
  border-radius: 10px;
  background: rgba(11, 27, 47, .52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .92);
}

.mw-fx-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--mw-fx-navy-deep) !important;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .22s ease, transform .22s var(--mw-fx-spring);
}

.mw-fx-strip__cta:hover {
  background: var(--mw-fx-sand);
  transform: translateY(-2px);
}

/* ==========================================================================
   9. Bento Visual Hospital Grid + Floating Frosted-Glass Metadata Bar
   ========================================================================== */
.mw-fx-bento-head-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.mw-home-approved .mw-restored-home .mw-ed-hospitals__list.mw-fx-bento-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.mw-fx-bento-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  border-radius: 20px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 47, 77, .09);
  box-shadow: var(--mw-fx-shadow-card);
  aspect-ratio: 4 / 3.2;
  transition: transform .42s var(--mw-fx-spring), box-shadow .42s var(--mw-fx-ease), border-color .28s ease;
}

.mw-fx-bento-card[hidden] {
  display: none !important;
}

.mw-fx-bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(164, 79, 44, .32);
  box-shadow: var(--mw-fx-shadow-hover);
}

.mw-fx-bento-card__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #dce8f2 0%, #eef2f6 100%);
}

.mw-fx-bento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--mw-fx-ease);
}

.mw-fx-bento-card:hover .mw-fx-bento-card__media img {
  transform: scale(1.065);
}

.mw-fx-bento-card__badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(11, 27, 47, .64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mw-fx-bento-card__city-pill {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--mw-fx-navy);
  font-size: 12px;
  font-weight: 600;
}

/* Floating Frosted Glass Info Dock at bottom of card (APIMart popular card) */
.mw-fx-bento-card__glass {
  position: relative;
  z-index: 3;
  width: calc(100% - 24px);
  margin: auto 12px 12px;
  padding: 13px 15px !important;
  text-align: start;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 10px 26px -14px rgba(11, 27, 47, .35);
  transition: transform .32s var(--mw-fx-spring), background-color .25s ease;
}

.mw-fx-bento-card:hover .mw-fx-bento-card__glass {
  background: rgba(255, 255, 255, .97);
  transform: translateY(-2px);
}

.mw-fx-bento-card__glass h3 {
  margin: 0 0 3px !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  color: var(--mw-fx-navy) !important;
  padding-inline-end: 26px;
}

.mw-fx-bento-card__glass p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: var(--mw-fx-copy) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mw-fx-bento-card__glass .mw-ed-hospital__arrow {
  top: 12px !important;
  inset-inline-end: 12px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  background: rgba(23, 47, 77, .07);
  transition: background-color .22s ease, transform .25s var(--mw-fx-spring);
}

.mw-fx-bento-card:hover .mw-fx-bento-card__glass .mw-ed-hospital__arrow {
  background: var(--mw-fx-navy);
  transform: translate(2px, -2px);
}

.mw-fx-bento-card:hover .mw-fx-bento-card__glass .mw-ed-hospital__arrow .cmt-icon {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   10. Bento Service Pricing Ladder (Homepage & Services Page)
   ========================================================================== */
.mw-home-approved .mw-restored-home .mw-ed-services__columns {
  gap: 20px !important;
}

.mw-home-approved .mw-restored-home .mw-ed-services__columns article {
  padding: 26px !important;
  border: 1px solid rgba(23, 47, 77, .1) !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--mw-fx-shadow-card);
  transition: transform .36s var(--mw-fx-spring), box-shadow .36s var(--mw-fx-ease), border-color .28s ease;
}

.mw-home-approved .mw-restored-home .mw-ed-services__columns article:nth-child(2) {
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(186, 228, 222, .45), transparent 65%),
    radial-gradient(80% 50% at 15% 0%, rgba(244, 212, 182, .35), transparent 65%),
    #fff;
  border-color: rgba(10, 115, 110, .28) !important;
}

.mw-home-approved .mw-restored-home .mw-ed-services__columns article:hover {
  transform: translateY(-5px);
  box-shadow: var(--mw-fx-shadow-hover);
  border-color: rgba(164, 79, 44, .32) !important;
}

/* Benefits Section Bento Disclosures */
.mw-home-approved .mw-restored-home .mw-ed-benefits {
  background: var(--mw-fx-aurora-light) !important;
}

.mw-home-approved .mw-restored-home .mw-ed-benefits__grid .mw-ed-disclosure {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(23, 47, 77, .09) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color .25s ease, box-shadow .3s var(--mw-fx-ease), border-color .25s ease, transform .3s var(--mw-fx-spring);
}

.mw-home-approved .mw-restored-home .mw-ed-benefits__grid .mw-ed-disclosure[open],
.mw-home-approved .mw-restored-home .mw-ed-benefits__grid .mw-ed-disclosure:hover {
  background: #fff !important;
  border-color: rgba(164, 79, 44, .26) !important;
  box-shadow: var(--mw-fx-shadow-card);
}

/* ==========================================================================
   11. APIMart Split Numbered FAQ + Dark Frosted-Glass Live Instant-Ask Card
   ========================================================================== */
.mw-fx-faq-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  gap: 24px;
  align-items: stretch;
}

.mw-home-approved .mw-restored-home .mw-ed-faq__list.mw-fx-faq-accordion {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(23, 47, 77, .09);
  box-shadow: var(--mw-fx-shadow-card);
  overflow: hidden;
}

.mw-home-approved .mw-restored-home .mw-ed-faq__list.mw-fx-faq-accordion .mw-ed-disclosure {
  background: transparent !important;
  padding-inline: 24px !important;
  border-bottom: 1px solid rgba(23, 47, 77, .08) !important;
  transition: background-color .28s ease;
}

.mw-home-approved .mw-restored-home .mw-ed-faq__list.mw-fx-faq-accordion .mw-ed-disclosure:last-child {
  border-bottom: 0 !important;
}

.mw-home-approved .mw-restored-home .mw-ed-faq__list.mw-fx-faq-accordion .mw-ed-disclosure.is-flashing {
  animation: mw-fx-faq-flash .9s ease;
}

.mw-home-approved .mw-restored-home .mw-ed-faq__list.mw-fx-faq-accordion summary {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  padding-block: 18px !important;
}

.mw-fx-faq-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(77, 97, 118, .65);
  font-variant-numeric: tabular-nums;
}

.mw-ed-disclosure[open] .mw-fx-faq-num {
  color: var(--mw-fx-copper);
}

.mw-fx-faq-plus {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(23, 47, 77, .14);
  font-size: 16px;
  line-height: 1;
  color: var(--mw-fx-navy);
  transition: background-color .22s ease, border-color .22s ease, transform .3s var(--mw-fx-spring), color .22s ease;
}

.mw-ed-disclosure[open] .mw-fx-faq-plus {
  background: var(--mw-fx-navy);
  border-color: var(--mw-fx-navy);
  color: #fff;
  transform: rotate(45deg);
}

.mw-home-approved .mw-restored-home .mw-ed-faq__list.mw-fx-faq-accordion .mw-ed-disclosure > p {
  padding-inline-start: 46px !important;
  padding-bottom: 20px !important;
  animation: mw-fx-reply-in .35s var(--mw-fx-ease);
}

/* Right Side Instant-Ask Visual Card */
.mw-fx-faq-helper {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  background: var(--mw-fx-aurora-deep);
  box-shadow: var(--mw-fx-shadow-hover);
  isolation: isolate;
}

.mw-fx-faq-helper__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 1s var(--mw-fx-ease);
}

.mw-fx-faq-helper:hover .mw-fx-faq-helper__bg {
  transform: scale(1.08);
}

.mw-fx-faq-helper__panel {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 18px;
  background: rgba(11, 27, 47, .78);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}

.mw-fx-faq-helper__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mw-fx-faq-helper__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--mw-fx-navy-deep);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.mw-fx-faq-helper__head strong {
  font-size: 16px;
  color: #fff;
}

.mw-fx-faq-helper__sub {
  margin: 0 0 14px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, .76) !important;
}

.mw-fx-faq-helper__form {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 12px;
}

.mw-fx-faq-helper__form:focus-within {
  border-color: var(--mw-fx-sand);
  background: rgba(255, 255, 255, .15);
}

.mw-fx-faq-helper__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 6px 8px;
  outline: none;
}

.mw-fx-faq-helper__form input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.mw-fx-faq-helper__form button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 0;
  background: #fff !important;
  color: var(--mw-fx-navy-deep) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color .2s ease, transform .2s var(--mw-fx-spring);
}

.mw-fx-faq-helper__form button:hover {
  background: var(--mw-fx-sand);
  transform: scale(1.06);
}

.mw-fx-faq-helper__reply {
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .86);
  margin-bottom: 12px;
}

.mw-fx-faq-helper__reply.is-updated {
  animation: mw-fx-reply-in .35s var(--mw-fx-ease);
}

.mw-fx-faq-helper__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mw-fx-sand) !important;
  transition: gap .22s ease, color .2s ease;
}

.mw-fx-faq-helper__link:hover {
  color: #fff !important;
  gap: 10px;
}

/* ==========================================================================
   12. Closing CTA + Pure-Visual 3D Curved Orbital Gallery Stage
   ========================================================================== */
body.mw-home-approved .mw-approved-services.mw-fx-cta-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 84px) 0 clamp(44px, 5vw, 68px) !important;
  background: var(--mw-fx-aurora-light) !important;
  min-height: 0 !important;
}

body.mw-home-approved .mw-approved-services.mw-fx-cta-stage > img {
  display: none;
}

body.mw-home-approved .mw-approved-services.mw-fx-cta-stage > .mw-fx-cta-head {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 48px)) !important;
  margin-inline: auto;
  padding-block: 0 34px !important;
  text-align: center;
}

body.mw-home-approved .mw-approved-services.mw-fx-cta-stage h2 {
  max-width: none !important;
  font-size: clamp(30px, 3.6vw, 46px) !important;
  line-height: 1.3 !important;
  margin-inline: auto;
}

body.mw-home-approved .mw-approved-services.mw-fx-cta-stage p {
  max-width: 58ch !important;
  margin-inline: auto;
  margin-top: 14px !important;
}

body.mw-home-approved .mw-approved-services.mw-fx-cta-stage .mw-approved-services__actions {
  justify-content: center;
  margin-top: 24px !important;
}

/* Deep-Navy Pure-Visual 3D Curved Orbital Cinema Stage (Zero Text, Zero Duplicates) */
.mw-fx-orbit-stage {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  height: clamp(320px, 34vw, 430px);
  margin-inline: auto;
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(ellipse 84% 76% at 50% 42%, #122c4a 0%, #09182b 62%, #050f1d 100%);
  border: 1px solid rgba(231, 200, 169, .22);
  box-shadow:
    0 34px 76px -28px rgba(6, 17, 32, .62),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  isolation: isolate;
}

.mw-fx-orbit-stage.is-dragging {
  cursor: grabbing;
}

/* Soft edge depth vignette so 3D cards dissolve gracefully into the navy mist */
.mw-fx-orbit-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 15, 29, .86) 0%, rgba(5, 15, 29, 0) 14%, rgba(5, 15, 29, 0) 86%, rgba(5, 15, 29, .86) 100%),
    linear-gradient(180deg, rgba(5, 15, 29, .18) 0%, rgba(5, 15, 29, 0) 18%, rgba(5, 15, 29, 0) 78%, rgba(5, 15, 29, .72) 100%);
}

.mw-cta-mosaic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.mw-fx-orbit-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  perspective: 1320px;
  perspective-origin: 50% 44%;
  display: grid;
  place-items: center;
}

.mw-fx-orbit-ring {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.mw-fx-orbit-card {
  position: absolute;
  left: -138px;
  top: -116px;
  width: 276px;
  margin: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  cursor: pointer;
}

.mw-fx-orbit-card__frame {
  position: relative;
  width: 100%;
  height: 184px;
  border-radius: 16px;
  overflow: hidden;
  background: #0d2139;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow:
    0 24px 48px -18px rgba(0, 0, 0, .72),
    inset 0 1px 0 rgba(255, 255, 255, .32);
  transition: border-color .3s ease, box-shadow .32s ease;
}

.mw-fx-orbit-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 42%, rgba(7, 19, 36, .24) 100%);
}

.mw-fx-orbit-card.is-focal .mw-fx-orbit-card__frame,
.mw-fx-orbit-card:hover .mw-fx-orbit-card__frame {
  border-color: rgba(231, 200, 169, .78);
  box-shadow:
    0 28px 58px -16px rgba(0, 0, 0, .82),
    0 0 36px -8px rgba(231, 200, 169, .45),
    inset 0 1px 0 rgba(255, 255, 255, .52);
}

.mw-fx-orbit-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Soft Mirrored Glass Floor Reflection beneath every 3D frame */
.mw-fx-orbit-card__reflect {
  width: 100%;
  height: 64px;
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  opacity: .34;
  filter: blur(1.5px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 90%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 90%);
}

.mw-fx-orbit-card__reflect img {
  display: block;
  width: 100%;
  height: 184px;
  object-fit: cover;
  object-position: center bottom;
  transform: scaleY(-1);
  margin-top: -120px;
  pointer-events: none;
}

@media (max-width: 680px) {
  .mw-fx-orbit-stage {
    width: calc(100% - 32px);
    height: 280px;
    border-radius: 20px;
  }
  .mw-fx-orbit-card {
    left: -94px;
    top: -86px;
    width: 188px;
  }
  .mw-fx-orbit-card__frame {
    height: 128px;
    border-radius: 13px;
  }
  .mw-fx-orbit-card__reflect {
    height: 44px;
    margin-top: 6px;
  }
  .mw-fx-orbit-card__reflect img {
    height: 128px;
    transform: scaleY(-1);
    margin-top: -84px;
  }
}

/* ==========================================================================
   13. Secondary Public Pages Full-Site Upgrades
   ========================================================================== */

/* Hero atmospheric polish for Directory, Programs, Treatments, Destinations, Guides */
.cmt-site:not(.mw-workspace-route) :is(.cmt-ed-hero, .cmt-program > .cmt-program-hero, .page-hero--case) {
  position: relative;
  overflow: hidden;
  background: var(--mw-fx-aurora-deep) !important;
}

.cmt-site:not(.mw-workspace-route) .cmt-ed-hero .cmt-ed-wrap,
.cmt-site:not(.mw-workspace-route) .cmt-program-hero__content {
  position: relative;
  z-index: 2;
}

.cmt-site:not(.mw-workspace-route) .cmt-program-hero__image {
  border-radius: 18px !important;
  box-shadow: 0 24px 56px -22px rgba(4, 12, 24, .65);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .8s var(--mw-fx-ease);
}

.cmt-site:not(.mw-workspace-route) .cmt-program > .cmt-program-hero:hover .cmt-program-hero__image {
  transform: scale(1.02);
}

.cmt-site:not(.mw-workspace-route) .medway-reference > .page-hero {
  background: var(--mw-fx-aurora-light) !important;
  border-bottom: 1px solid rgba(23, 47, 77, .07);
}

.cmt-site:not(.mw-workspace-route) .mw-prep-hero {
  background: var(--mw-fx-aurora-light) !important;
  border: 1px solid rgba(23, 47, 77, .08);
  border-radius: 22px;
  padding: clamp(28px, 3.6vw, 42px) clamp(24px, 3.6vw, 44px) !important;
  margin-top: 22px;
  margin-bottom: 24px;
  box-shadow: var(--mw-fx-shadow-card);
}

/* Hospital Directory: Glass filter bar + Bento cards + AJAX shimmer */
.cmt-site .cmt-directory-filter {
  padding: 20px 22px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .88) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(23, 47, 77, .1) !important;
  box-shadow: var(--mw-fx-shadow-card);
}

.cmt-site [data-cmt-directory-results][aria-busy="true"] .cmt-hospital-grid {
  opacity: .55;
  filter: blur(1.5px);
  transition: opacity .2s ease, filter .2s ease;
}

.cmt-site .cmt-hospital-card,
.cmt-site .cmt-tcm-hospital,
.cmt-site .cmt-tcm-therapy,
.cmt-site .cmt-service-card,
.cmt-site .cmt-why-point,
.cmt-site .cmt-why-service,
.cmt-site .cmt-process-card,
.cmt-site .cmt-detail-panels > article,
.cmt-site .cmt-responsibilities > article,
.cmt-site .cmt-preparation-grid > article,
.cmt-site .medway-reference--archive .content-card {
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid rgba(23, 47, 77, .09) !important;
  box-shadow: var(--mw-fx-shadow-card);
  transition: transform .36s var(--mw-fx-spring), box-shadow .36s var(--mw-fx-ease), border-color .28s ease !important;
}

.cmt-site .medway-reference--archive .content-card {
  padding: 16px !important;
  gap: 20px !important;
}

.cmt-site :is(
  .cmt-hospital-card,
  .cmt-tcm-hospital,
  .cmt-tcm-therapy,
  .cmt-service-card,
  .cmt-why-point,
  .cmt-why-service,
  .cmt-process-card,
  .cmt-responsibilities > article,
  .cmt-preparation-grid > article,
  .medway-reference--archive .content-card
):hover {
  transform: translateY(-4px) !important;
  border-color: rgba(164, 79, 44, .3) !important;
  box-shadow: var(--mw-fx-shadow-hover) !important;
}

.cmt-site .medway-reference--archive .card-visual {
  border-radius: 12px !important;
}

.cmt-site .medway-reference--archive .card-visual-image {
  transition: transform .7s var(--mw-fx-ease);
}

.cmt-site .medway-reference--archive .content-card:hover .card-visual-image {
  transform: scale(1.055);
}

.cmt-site .medway-reference--archive .card-chip {
  border-radius: var(--mw-fx-radius-pill) !important;
  background: rgba(255, 255, 255, .9) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px -8px rgba(11, 27, 47, .3);
}

/* Hospital Detail Facts & Lightbox Gallery */
.cmt-site .cmt-hospital-facts {
  padding: 24px 28px !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(23, 47, 77, .1);
  box-shadow: var(--mw-fx-shadow-card);
}

.cmt-site .cmt-hospital-gallery figure,
.cmt-site .detail-media {
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--mw-fx-shadow-card);
  transition: transform .35s var(--mw-fx-spring), box-shadow .35s ease;
}

.cmt-site .cmt-hospital-gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--mw-fx-shadow-hover);
}

/* Sticky Program Anchor & Commercial Nav Glass Pill Bar */
.cmt-site .cmt-program-anchor,
.cmt-site .mw-commercial-page-nav {
  background: rgba(252, 250, 246, .84) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 47, 77, .08);
}

.cmt-site .cmt-program-anchor a,
.cmt-site .mw-commercial-page-nav a {
  border-radius: var(--mw-fx-radius-pill);
  transition: background-color .22s ease, color .22s ease;
}

.cmt-site .cmt-program-anchor a.is-current,
.cmt-site .cmt-about-nav a.is-current,
.cmt-site .cmt-legal-toc a.is-current {
  background: var(--mw-fx-navy) !important;
  color: #fff !important;
  border-radius: var(--mw-fx-radius-pill);
  padding-inline: 12px;
}

/* Treatment detail tables (APIMart pricing table polish) */
.cmt-site .cmt-detail-table-wrap {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(23, 47, 77, .09);
  box-shadow: var(--mw-fx-shadow-card);
  overflow-x: auto;
}

.cmt-site .cmt-detail-table-wrap tbody tr {
  transition: background-color .2s ease;
}

.cmt-site .cmt-detail-table-wrap tbody tr:hover {
  background: rgba(10, 115, 110, .045);
}

/* Visit Preparation Checklist Interactive Polish */
.cmt-site .mw-prep-options,
.cmt-site .mw-prep-result {
  padding: clamp(22px, 2.8vw, 32px) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .92) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(23, 47, 77, .09) !important;
  box-shadow: var(--mw-fx-shadow-card);
}

.cmt-site .mw-prep-section.is-fresh {
  animation: mw-fx-card-stagger .45s var(--mw-fx-spring) both;
}

.cmt-site .mw-prep-section li {
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 8px;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.cmt-site .mw-prep-section li:hover {
  background: rgba(10, 115, 110, .06);
}

.cmt-site .mw-prep-section li.is-checked {
  color: var(--mw-fx-teal);
  text-decoration: line-through;
  opacity: .72;
}

.mw-prep-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mw-prep-progress-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(10, 115, 110, .1);
  color: var(--mw-fx-teal);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  animation: mw-fx-pop-in .28s var(--mw-fx-spring);
}

/* Services & Commercial Page Bento Polish */
.cmt-site .cmt-service-card--featured {
  background:
    radial-gradient(95% 65% at 88% 0%, rgba(186, 228, 222, .48), transparent 64%),
    radial-gradient(80% 55% at 12% 0%, rgba(244, 212, 182, .38), transparent 62%),
    #fff !important;
  border-color: rgba(10, 115, 110, .32) !important;
}

.cmt-site .cmt-service-ladder__free,
.cmt-site .mw-commercial-details section,
.cmt-site .cmt-why-journey__row,
.cmt-site .cmt-tcm-direction,
.cmt-site .cmt-detail-facts,
.cmt-site .cmt-team-expert,
.cmt-site .side-note,
.cmt-site .case-callout,
.cmt-site .case-boundary {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .9) !important;
  border: 1px solid rgba(23, 47, 77, .09) !important;
  box-shadow: var(--mw-fx-shadow-card);
  transition: transform .32s var(--mw-fx-spring), box-shadow .32s var(--mw-fx-ease), border-color .25s ease;
}

.cmt-site .cmt-tcm-direction:hover,
.cmt-site .cmt-team-expert:hover,
.cmt-site .cmt-why-journey__row:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 79, 44, .3) !important;
  box-shadow: var(--mw-fx-shadow-hover);
}

.cmt-site .cmt-detail-overview-links a,
.cmt-site .cmt-treatment-projects a {
  border-radius: 12px;
  transition: background-color .24s ease, transform .28s var(--mw-fx-spring), padding-inline .28s var(--mw-fx-spring);
}

.cmt-site .cmt-detail-overview-links a:hover,
.cmt-site .cmt-treatment-projects a:hover {
  background: rgba(10, 115, 110, .06) !important;
  transform: translateY(-1px);
}

.cmt-site .cmt-hospital-tags span,
.cmt-site .tag-list .tag {
  border-radius: var(--mw-fx-radius-pill) !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.cmt-site .cmt-hospital-tags span:hover,
.cmt-site .tag-list .tag:hover {
  background: var(--mw-fx-navy);
  color: #fff;
  transform: translateY(-1px);
}

.cmt-site .cmt-procedure-hospital-controls button {
  border-radius: 50% !important;
  transition: background-color .22s ease, transform .22s var(--mw-fx-spring), color .22s ease;
}

.cmt-site .cmt-procedure-hospital-controls button:hover:not(:disabled) {
  background: var(--mw-fx-navy);
  color: #fff;
  transform: scale(1.08);
}

.mw-fx-tab-panel-in {
  animation: mw-fx-reply-in .36s var(--mw-fx-ease);
}

/* Program & Treatment Timelines Illuminated Step Nodes */
.cmt-site .cmt-program-timeline li > span {
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s var(--mw-fx-spring);
}

.cmt-site .cmt-program-timeline li:hover > span {
  background: var(--mw-fx-navy);
  color: var(--mw-fx-sand);
  box-shadow: 0 0 0 6px rgba(231, 200, 169, .32);
  transform: scale(1.08);
}

/* Contact, Request Call, Partner, Private Case & Detail Sidebar Panels */
.cmt-site :is(.cmt-enquiry-panel, .cmt-enquiry-aside > div, .case-panel, .detail-card, .cmt-about-nav, .cmt-legal-toc) {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .9) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(23, 47, 77, .09) !important;
  box-shadow: var(--mw-fx-shadow-card);
}

/* Explicit 4-sided card padding guards for base rules that had padding: 24px 0 / 0 */
.cmt-site .mw-commercial-details > section,
.cmt-site .mw-commercial-details > section:last-child {
  padding: 26px 28px !important;
}

.cmt-site .cmt-program .cmt-why-point {
  padding: 26px 28px !important;
}

.cmt-site .cmt-program .cmt-why-service {
  padding: 28px 30px !important;
}

.cmt-site .cmt-program .cmt-tcm-therapy > div {
  padding: 20px 24px !important;
}

.cmt-site .cmt-service-ladder__free,
.cmt-site .cmt-detail-facts {
  padding: 24px 28px !important;
}

.cmt-site .cmt-about-nav,
.cmt-site .cmt-legal-toc {
  padding: 20px 18px !important;
}

.cmt-site .detail-card,
.cmt-site .side-note {
  padding: 22px 24px !important;
}

.cmt-site .cmt-enquiry-aside > div {
  padding: 24px 26px !important;
}

.cmt-site .case-callout,
.cmt-site .case-boundary {
  padding: 20px 24px !important;
}

.cmt-site .cmt-enquiry-panel,
.cmt-site .case-panel {
  padding: clamp(22px, 3vw, 34px) !important;
}

@media (max-width: 900px) {
  .cmt-site .cmt-editorial--about .cmt-about-nav {
    padding: 16px !important;
  }
}

.cmt-site:not(.mw-workspace-route) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  transition: border-color .22s ease, box-shadow .26s var(--mw-fx-ease), background-color .22s ease;
}

.cmt-site:not(.mw-workspace-route) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: var(--mw-fx-teal) !important;
  box-shadow: 0 0 0 4px rgba(10, 115, 110, .14) !important;
}

/* ==========================================================================
   14. Floating Utility Dock + Circular Scroll Progress Back-to-Top Ring
   ========================================================================== */
.cmt-site:not(.mw-workspace-route) .cmt-floating {
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 75;
}

/* On homepage keep back-to-top visible while respecting hidden consult links */
.mw-home-approved .cmt-floating {
  display: flex !important;
}

.mw-home-approved .cmt-floating > a {
  display: none !important;
}

/* Unified frosted glass pill buttons (replaces nested box-inside-box) */
.cmt-site:not(.mw-workspace-route) .cmt-floating > a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 6px 14px 6px 6px !important;
  border-radius: var(--mw-fx-radius-pill) !important;
  background: rgba(255, 255, 255, .95) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(23, 47, 77, .12) !important;
  box-shadow: 0 12px 28px -12px rgba(8, 21, 37, .36) !important;
  color: var(--mw-fx-navy) !important;
  transition: transform .28s var(--mw-fx-spring), background-color .22s ease, border-color .22s ease, box-shadow .28s ease !important;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > a b {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(10, 115, 110, .11) !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0;
  transform: none !important;
  transition: background-color .22s ease !important;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > a b .cmt-icon {
  width: 17px !important;
  height: 17px !important;
  transition: filter .22s ease;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > a small {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--mw-fx-navy) !important;
  white-space: nowrap;
  transition: color .22s ease;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > a:hover {
  transform: translateY(-2.5px);
  background: var(--mw-fx-navy) !important;
  border-color: rgba(255, 255, 255, .26) !important;
  box-shadow: 0 16px 34px -12px rgba(4, 12, 24, .65) !important;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > a:hover b {
  background: rgba(255, 255, 255, .16) !important;
  transform: none !important;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > a:hover b .cmt-icon {
  filter: brightness(0) invert(1) !important;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > a:hover small {
  color: #fff !important;
}

@media (max-width: 760px) {
  .cmt-site:not(.mw-workspace-route) .cmt-floating > a {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    justify-content: center !important;
  }
  .cmt-site:not(.mw-workspace-route) .cmt-floating > a b {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
  }
  .cmt-site:not(.mw-workspace-route) .cmt-floating > a small {
    display: none !important;
  }
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > .mw-fx-btt {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0 !important;
  border: 1px solid rgba(23, 47, 77, .16) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--mw-fx-navy) !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(8, 21, 37, .42) !important;
  opacity: 0;
  transform: translateY(14px) scale(.86);
  pointer-events: none;
  transition: opacity .3s var(--mw-fx-ease), transform .36s var(--mw-fx-spring), background-color .22s ease, border-color .22s ease, color .22s ease;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > .mw-fx-btt > svg:not(.mw-fx-btt__ring) {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  position: relative;
  z-index: 1;
  stroke: currentColor;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > .mw-fx-btt.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > .mw-fx-btt:hover {
  background: var(--mw-fx-navy) !important;
  border-color: var(--mw-fx-navy) !important;
  color: #fff !important;
  transform: translateY(-3px) scale(1.05);
}

.mw-fx-btt__ring {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.mw-fx-btt__ring circle {
  fill: none;
  stroke-width: 2.4;
}

.mw-fx-btt__track {
  stroke: rgba(23, 47, 77, .12);
}

.mw-fx-btt__bar {
  stroke: var(--mw-fx-copper);
  stroke-linecap: round;
  transition: stroke-dashoffset .1s linear;
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > .mw-fx-btt:hover .mw-fx-btt__track {
  stroke: rgba(255, 255, 255, .2);
}

.cmt-site:not(.mw-workspace-route) .cmt-floating > .mw-fx-btt:hover .mw-fx-btt__bar {
  stroke: var(--mw-fx-sand);
}

/* ==========================================================================
   15. Modal & Image Lightbox Polish + Footer Aurora Hairline
   ========================================================================== */
.cmt-site .cmt-modal {
  background: rgba(8, 21, 37, .52) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cmt-site .cmt-modal:not([hidden]) .cmt-modal-panel {
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 32px 72px -24px rgba(4, 12, 24, .52);
  animation: mw-fx-pop-in .32s var(--mw-fx-spring) both;
}

.mw-fx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 21, 37, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: mw-fx-reply-in .25s ease;
}

.mw-fx-lightbox[hidden] {
  display: none;
}

.mw-fx-lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(1080px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: mw-fx-pop-in .32s var(--mw-fx-spring);
}

.mw-fx-lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 28px 70px -16px rgba(0, 0, 0, .65);
  border: 1px solid rgba(255, 255, 255, .2);
}

.mw-fx-lightbox__figure figcaption {
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
}

.mw-fx-lightbox__close {
  position: fixed;
  top: 20px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(11, 27, 47, .75);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s ease, transform .2s ease;
}

.mw-fx-lightbox__close:hover {
  background: var(--mw-fx-copper);
  transform: scale(1.08);
}

.cmt-site .cmt-footer {
  position: relative;
  background: var(--mw-fx-aurora-deep) !important;
}

.cmt-site .cmt-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--mw-fx-teal) 35%, var(--mw-fx-sand) 65%, transparent 95%);
  opacity: .75;
}

/* ==========================================================================
   16. Responsive Breakpoints & Reduced Motion
   ========================================================================== */
@media (max-width: 1080px) {
  body.mw-home-approved .mw-approved-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    padding-inline: 32px;
  }
  .mw-fx-marquee-band__inner {
    width: calc(100% - 64px);
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mw-fx-faq-split {
    grid-template-columns: 1fr;
  }
  .mw-fx-cinema__steps {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

@media (max-width: 900px) {
  body.mw-home-approved .mw-approved-hero {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 20px 36px !important;
    gap: 24px;
    min-height: 0 !important;
  }
  body.mw-home-approved .mw-approved-hero .mw-approved-hero__content {
    max-width: none;
    padding-block: 0 !important;
  }
  .mw-hero-rail {
    order: 3;
    margin-top: clamp(180px, 52vw, 260px);
  }
  .mw-fx-strips {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .mw-fx-strip {
    flex: none !important;
    min-height: 76px;
    transition: min-height .45s var(--mw-fx-spring);
  }
  .mw-fx-strip.is-active {
    min-height: 310px;
  }
  .mw-fx-strip__spine {
    inset-inline: 60px 20px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    justify-content: flex-start;
  }
  .mw-fx-strip__spine span {
    writing-mode: horizontal-tb;
  }
  .mw-home-approved .mw-restored-home .mw-ed-hospitals__list.mw-fx-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .mw-home-agent-preview {
    grid-template-columns: 1fr;
  }
  .mw-agent-wall {
    grid-template-columns: repeat(2, 1fr);
    opacity: .16;
  }
}

@media (max-width: 760px) {
  .mw-fx-marquee-band__inner {
    width: calc(100% - 40px);
  }
  body.mw-home-approved .mw-approved-agent {
    width: calc(100% - 40px) !important;
    padding: 26px 20px !important;
    border-radius: 20px;
  }
  .mw-home-approved .mw-restored-home .mw-ed-hospitals__list.mw-fx-bento-grid {
    grid-template-columns: 1fr !important;
  }
  .mw-fx-bento-card {
    aspect-ratio: 16 / 11;
  }
  .mw-fx-mosaic-wrap {
    width: calc(100% - 32px);
    height: 240px;
    border-radius: 18px;
  }
  .mw-fx-cinema__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cmt-site .medway-reference--archive .content-card {
    grid-template-columns: 1fr !important;
  }
}

/* Reduced motion: keep every piece of content immediately crisp and still */
@media (prefers-reduced-motion: reduce) {
  .mw-fx-marquee-row,
  .mw-agent-wall__col,
  .mw-fx-shiny-badge__dot,
  .mw-fx-shiny-badge__text,
  .mw-hero-rail__progress-fill,
  .mw-fx-cinema__bar-fill,
  .mw-home-agent-preview__spinner {
    animation: none !important;
  }
  .mw-hero-rail__item.is-active .mw-hero-rail__progress-fill,
  .mw-fx-cinema__step.is-active .mw-fx-cinema__bar-fill {
    transform: scaleX(1) !important;
  }
  html.mw-fx-ready .mw-fx-reveal:not(.is-revealed),
  html.mw-motion-ready.mw-fx-ready .mw-reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }
  .cmt-site:not(.mw-workspace-route) :is(.cmt-button, .mw-approved-button, .cmt-btn)::after {
    display: none !important;
  }
}


/* ==========================================================================
   17. Bespoke Animated SVGs & Full-Site Inner Page Rich FX
   ========================================================================== */
@keyframes mw-svg-sweep-rot {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mw-svg-orbit-rot {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mw-svg-pulse-out {
  0% { transform: scale(.75); opacity: .85; }
  75% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

@keyframes mw-svg-dash-flow {
  from { stroke-dashoffset: 220; }
  to { stroke-dashoffset: 0; }
}

@keyframes mw-svg-ecg-flow {
  0% { stroke-dashoffset: 620; opacity: .45; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: .45; }
}

@keyframes mw-fx-conic-spin {
  to { transform: rotate(360deg); }
}

/* Light surface Shiny Badge variant */
.mw-fx-shiny-badge--light {
  border-color: rgba(10, 115, 110, .2);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 6px 16px -10px rgba(15, 34, 56, .2);
}

.mw-fx-shiny-badge--light .mw-fx-shiny-badge__dot {
  background: var(--mw-fx-teal);
  box-shadow: 0 0 0 4px rgba(10, 115, 110, .18);
}

.mw-fx-shiny-badge--light .mw-fx-shiny-badge__text {
  background: linear-gradient(105deg, var(--mw-fx-navy) 0%, var(--mw-fx-teal) 46%, var(--mw-fx-copper) 56%, var(--mw-fx-navy) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Common SVG animation primitives */
.mw-svg-sweep {
  animation: mw-svg-sweep-rot 8.5s linear infinite;
  transform-box: fill-box;
  transform-origin: 0% 100%;
}

.mw-svg-orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: mw-svg-orbit-rot 26s linear infinite;
}

.mw-svg-orbit--rev {
  animation-direction: reverse;
  animation-duration: 34s;
}

.mw-svg-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: mw-svg-pulse-out 2.8s cubic-bezier(.16, 1, .3, 1) infinite;
}

.mw-svg-pulse-ring--d1 { animation-delay: .8s; }
.mw-svg-pulse-ring--d2 { animation-delay: 1.6s; }

.mw-svg-flow-paths path,
.mw-svg-flow-route {
  stroke-dasharray: 26 14;
  animation: mw-svg-dash-flow 7s linear infinite;
}

.mw-svg-flow-route--slow {
  animation-duration: 11s;
  animation-direction: reverse;
}

.mw-svg-ecg {
  stroke-dasharray: 180 440;
  animation: mw-svg-ecg-flow 4.4s linear infinite;
}

/* Positioned Hero Decorative SVGs */
.mw-fx-svg--radar {
  position: absolute;
  inset-inline-end: clamp(12px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 34vw, 440px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: .88;
}

.mw-fx-svg--pulse,
.mw-fx-svg--tcm {
  position: absolute;
  inset-inline-start: 0;
  bottom: -14px;
  width: min(560px, 85%);
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: .42;
}

.mw-fx-svg--compass {
  position: absolute;
  inset-inline-end: clamp(16px, 5vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(150px, 18vw, 210px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: .75;
}

.medway-reference > .page-hero--fx {
  position: relative;
  overflow: hidden;
}

.medway-reference > .page-hero--fx > .container {
  position: relative;
  z-index: 2;
}

/* Hospital Directory Quick City Filter Pills */
.mw-fx-dir-quick-cities {
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.mw-fx-dir-quick-cities::-webkit-scrollbar,
.mw-fx-svg-stage--journey::-webkit-scrollbar {
  display: none;
}

/* How It Works — Interactive 5-Milestone SVG Journey Ribbon */
.mw-fx-journey-ribbon {
  background: linear-gradient(180deg, #0d2139 0%, #142b49 100%);
  padding-block: 18px 26px;
  border-top: 1px solid rgba(231, 200, 169, .16);
  border-bottom: 1px solid rgba(231, 200, 169, .14);
}

.mw-fx-svg-stage--journey {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.mw-fx-svg--journey {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.mw-fx-svg--journey .mw-svg-node {
  cursor: pointer;
  transition: opacity .22s ease;
}

.mw-fx-svg--journey .mw-svg-node:hover text {
  fill: #fff;
}

/* Services Page: Bespoke Gemini Concierge Hero & Transparent 3-Budget SVG */
.mw-fx-service-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: clamp(280px, 32vw, 390px);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  padding: clamp(22px, 3.2vw, 40px);
  box-shadow: var(--mw-fx-shadow-hover);
  isolation: isolate;
}

.mw-fx-service-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1.1s var(--mw-fx-ease);
}

.mw-fx-service-hero:hover .mw-fx-service-hero__img {
  transform: scale(1.035);
}

.mw-fx-service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(11, 27, 47, .74) 0%, rgba(11, 27, 47, .38) 54%, rgba(11, 27, 47, .12) 100%);
}

.mw-fx-service-hero__glass {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(20px, 2.8vw, 30px);
  border-radius: 20px;
  background: rgba(252, 250, 246, .9);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 18px 44px -20px rgba(8, 21, 37, .45);
}

.mw-fx-service-hero__glass h1 {
  margin: 0 0 10px !important;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.28 !important;
  color: var(--mw-fx-navy) !important;
}

.mw-fx-service-hero__glass p {
  margin: 0 !important;
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  color: var(--mw-fx-copy) !important;
}

.mw-fx-budgets {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  margin-block: 22px 28px;
  border-radius: 22px;
  background: var(--mw-fx-aurora-light);
  border: 1px solid rgba(23, 47, 77, .09);
  box-shadow: var(--mw-fx-shadow-card);
}

.mw-fx-svg--budgets {
  display: block;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
}

.mw-fx-budgets__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mw-fx-budget-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(23, 47, 77, .09);
  border-top: 3px solid var(--budget-accent, var(--mw-fx-navy));
  transition: transform .3s var(--mw-fx-spring), box-shadow .3s ease;
}

.mw-fx-budget-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mw-fx-shadow-hover);
}

.mw-fx-budget-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--budget-accent, #172f4d) 12%, transparent);
  color: var(--budget-accent, #172f4d);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mw-fx-budget-card strong {
  display: block;
  font-size: 15.5px;
  color: var(--mw-fx-navy);
  margin-bottom: 4px;
}

.mw-fx-budget-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mw-fx-copy);
}

/* Animated Conic-Gradient Luminous Ring on Featured Service Card */
.cmt-site .cmt-service-card--featured {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -18px rgba(10, 115, 110, .32), 0 0 0 1.5px rgba(10, 115, 110, .28) !important;
}

/* Visit Preparation Split Hero + SVG Completion Gauge + Interactive Option Chips */
.cmt-site:not(.mw-workspace-route) .mw-prep-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center;
  gap: clamp(22px, 3.6vw, 44px);
}

.mw-prep-hero__art {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  box-shadow: var(--mw-fx-shadow-hover);
  border: 1px solid rgba(255, 255, 255, .8);
}

.mw-prep-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--mw-fx-ease);
}

.mw-prep-hero--split:hover .mw-prep-hero__art img {
  transform: scale(1.04);
}

.mw-prep-progress-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mw-fx-prep-gauge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
}

.mw-fx-prep-gauge__bar {
  transition: stroke-dashoffset .45s var(--mw-fx-spring);
}

.mw-fx-prep-gauge__pct {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  color: var(--mw-fx-navy);
  font-variant-numeric: tabular-nums;
}

/* Tactile Option Pill Chips synced with native <select> on Visit Preparation */
.mw-fx-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.mw-fx-select-chip {
  padding: 7px 12px;
  border-radius: var(--mw-fx-radius-pill);
  border: 1px solid rgba(23, 47, 77, .14);
  background: rgba(255, 255, 255, .86);
  color: var(--mw-fx-navy);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .22s var(--mw-fx-spring);
}

.mw-fx-select-chip:hover {
  border-color: rgba(10, 115, 110, .45);
  background: #f2f9f8;
  transform: translateY(-1px);
}

.mw-fx-select-chip.is-active {
  background: var(--mw-fx-navy);
  border-color: var(--mw-fx-navy);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(15, 34, 56, .52);
}

/* TCM Numbered Bento Cards & Treatments Index Glass Pills */
.cmt-site .cmt-tcm-direction {
  padding: 20px 24px !important;
  gap: 14px !important;
}

.cmt-site .cmt-tcm-direction h3 {
  flex: 1 1 auto;
}

.mw-fx-card-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(164, 79, 44, .1);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--mw-fx-copper);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

/* Visually hidden native select when tactile chips are active */
.mw-fx-sr-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Visit Preparation Interactive Custom Checkbox Rows */
.cmt-site .mw-prep-section:not(.mw-prep-boundary) ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 !important;
  display: grid;
  gap: 8px;
}

.cmt-site .mw-prep-section:not(.mw-prep-boundary) li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(23, 47, 77, .07);
  background: rgba(252, 250, 246, .6);
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, border-color .2s ease, transform .22s var(--mw-fx-spring), color .2s ease;
}

.cmt-site .mw-prep-section:not(.mw-prep-boundary) li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.8px solid rgba(23, 47, 77, .28);
  background: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  transition: background-color .22s ease, border-color .22s ease, transform .22s var(--mw-fx-spring);
}

.cmt-site .mw-prep-section:not(.mw-prep-boundary) li:hover {
  background: rgba(10, 115, 110, .06);
  border-color: rgba(10, 115, 110, .24);
  transform: translateX(2px);
}

.cmt-site .mw-prep-section:not(.mw-prep-boundary) li.is-checked {
  background: rgba(230, 243, 241, .62);
  border-color: rgba(10, 115, 110, .28);
  color: var(--mw-fx-teal);
  text-decoration: line-through;
  opacity: .84;
}

.cmt-site .mw-prep-section:not(.mw-prep-boundary) li.is-checked::before {
  content: "✓";
  background: var(--mw-fx-teal);
  border-color: var(--mw-fx-teal);
  transform: scale(1.06);
}

/* Case Intake Dark Hero High-Contrast Text Fix */
.cmt-site:not(.mw-workspace-route) .page-hero--case .container {
  position: relative;
  z-index: 2;
}

.cmt-site:not(.mw-workspace-route) .page-hero--case h1 {
  color: #fff !important;
}

.cmt-site:not(.mw-workspace-route) .page-hero--case p {
  color: rgba(235, 243, 255, .86) !important;
}

/* Detail Pages (Destinations & Guides) Aurora Hero + Compass */
.cmt-site:not(.mw-workspace-route) .detail-hero--fx {
  position: relative;
  overflow: hidden;
  background: var(--mw-fx-aurora-light) !important;
  border-bottom: 1px solid rgba(23, 47, 77, .07);
}

.cmt-site:not(.mw-workspace-route) .detail-hero--fx > .container {
  position: relative;
  z-index: 2;
}

.cmt-site:not(.mw-workspace-route) .detail-hero--fx .mw-fx-svg--compass {
  opacity: .34;
}

/* How It Works & Services Bento Journey / Fit / Samples Cards */
.cmt-site .mw-commercial-journey ol {
  gap: 16px !important;
}

.cmt-site .mw-commercial-journey ol li,
.cmt-site .mw-commercial-fit__grid article,
.cmt-site .mw-commercial-samples__grid article {
  padding: 22px 20px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(23, 47, 77, .09) !important;
  box-shadow: var(--mw-fx-shadow-card);
  transition: transform .32s var(--mw-fx-spring), box-shadow .32s ease, border-color .24s ease;
}

.cmt-site .mw-commercial-journey ol li:hover,
.cmt-site .mw-commercial-fit__grid article:hover,
.cmt-site .mw-commercial-samples__grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 79, 44, .3) !important;
  box-shadow: var(--mw-fx-shadow-hover);
}

/* Standalone /faq/ Page Interactive Split Layout */
.mw-fx-faq-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 66px) 0 clamp(32px, 4vw, 48px);
  background: var(--mw-fx-aurora-light);
  border-bottom: 1px solid rgba(23, 47, 77, .07);
}

.mw-fx-faq-page-hero .cmt-ed-wrap {
  position: relative;
  z-index: 2;
}

.mw-fx-faq-page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--mw-fx-navy);
}

.mw-fx-faq-page-hero p {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mw-fx-copy);
}

.mw-fx-faq-page-body {
  padding: clamp(36px, 5vw, 60px) 0;
}

.mw-fx-faq-helper-card {
  position: sticky;
  top: 96px;
  padding: 26px 24px;
  border-radius: 22px;
  background:
    radial-gradient(90% 60% at 88% 0%, rgba(186, 228, 222, .5), transparent 65%),
    radial-gradient(80% 50% at 10% 100%, rgba(244, 212, 182, .42), transparent 65%),
    rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(23, 47, 77, .1);
  box-shadow: var(--mw-fx-shadow-card);
}

.mw-fx-faq-helper-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--mw-fx-navy);
}

.mw-fx-faq-helper-card > p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mw-fx-copy);
}

.mw-fx-faq-helper-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(23, 47, 77, .14);
  box-shadow: 0 8px 20px -14px rgba(15, 34, 56, .25);
  transition: border-color .22s ease, box-shadow .22s ease;
}

.mw-fx-faq-helper-form:focus-within {
  border-color: var(--mw-fx-teal);
  box-shadow: 0 0 0 4px rgba(10, 115, 110, .14);
}

.mw-fx-faq-helper-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--mw-fx-navy);
  outline: none;
}

.mw-fx-faq-helper-form button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--mw-fx-navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .22s ease, transform .22s var(--mw-fx-spring);
}

.mw-fx-faq-helper-form button:hover {
  background: var(--mw-fx-teal);
  transform: scale(1.04);
}

.mw-fx-faq-helper-reply {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(23, 47, 77, .08);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mw-fx-copy);
}

.mw-fx-faq-helper-reply.is-updated {
  border-color: rgba(10, 115, 110, .3);
  color: var(--mw-fx-navy);
  animation: mw-fx-reply-in .32s var(--mw-fx-ease);
}

.mw-fx-faq-page-body .mw-fx-faq-item.is-flashing {
  animation: mw-fx-faq-flash .9s ease;
}

.mw-fx-faq-page-body .mw-fx-faq-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(23, 47, 77, .09);
  box-shadow: var(--mw-fx-shadow-card);
  padding: 0 22px;
  margin-bottom: 12px;
  transition: border-color .24s ease, box-shadow .28s ease;
}

.mw-fx-faq-page-body .mw-fx-faq-item[open],
.mw-fx-faq-page-body .mw-fx-faq-item:hover {
  border-color: rgba(164, 79, 44, .3);
  box-shadow: var(--mw-fx-shadow-hover);
}

.mw-fx-faq-page-body .mw-fx-faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--mw-fx-navy);
}

.mw-fx-faq-page-body .mw-fx-faq-item summary::-webkit-details-marker {
  display: none;
}

.mw-fx-faq-page-body .mw-fx-faq-item__num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(164, 79, 44, .1);
  color: var(--mw-fx-copper);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mw-fx-faq-page-body .mw-fx-faq-item__q {
  flex: 1 1 auto;
}

.mw-fx-faq-page-body .mw-fx-faq-item__icon {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(23, 47, 77, .06);
  transition: background-color .22s ease, transform .3s var(--mw-fx-spring);
}

.mw-fx-faq-page-body .mw-fx-faq-item__icon::before,
.mw-fx-faq-page-body .mw-fx-faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.8px;
  background: var(--mw-fx-navy);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background-color .2s ease;
}

.mw-fx-faq-page-body .mw-fx-faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.mw-fx-faq-page-body .mw-fx-faq-item[open] .mw-fx-faq-item__icon {
  background: var(--mw-fx-navy);
  transform: rotate(45deg);
}

.mw-fx-faq-page-body .mw-fx-faq-item[open] .mw-fx-faq-item__icon::before,
.mw-fx-faq-page-body .mw-fx-faq-item[open] .mw-fx-faq-item__icon::after {
  background: #fff;
}

.mw-fx-faq-page-body .mw-fx-faq-item p {
  margin: 0 0 20px;
  padding-inline-start: 44px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mw-fx-copy);
}

.cmt-site .cmt-program .cmt-treatment-index__links a {
  padding: 6px 14px;
  border-radius: var(--mw-fx-radius-pill);
  background: rgba(23, 47, 77, .055);
  border: 1px solid rgba(23, 47, 77, .08);
  text-decoration: none !important;
  transition: all .24s var(--mw-fx-spring);
}

.cmt-site .cmt-program .cmt-treatment-index__links a:hover {
  background: var(--mw-fx-navy);
  border-color: var(--mw-fx-navy);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(15, 34, 56, .45);
}

.cmt-site .cmt-program .cmt-treatment-line__image {
  border-radius: 20px !important;
  box-shadow: var(--mw-fx-shadow-card);
  transition: transform .7s var(--mw-fx-ease), box-shadow .4s ease;
}

.cmt-site .cmt-program .cmt-treatment-line:hover .cmt-treatment-line__image {
  transform: scale(1.025);
  box-shadow: var(--mw-fx-shadow-hover);
}

/* About Page 3-Party SVG Constellation */
.mw-fx-svg-stage--roles {
  margin-block: 16px 26px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--mw-fx-aurora-light);
  border: 1px solid rgba(23, 47, 77, .08);
}

.mw-fx-svg--roles {
  display: block;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  height: auto;
}

/* Enquiry & Contact Page Aurora Ground */
.cmt-site .cmt-enquiry-section {
  background: var(--mw-fx-aurora-light) !important;
}

@media (max-width: 960px) {
  .mw-fx-budgets,
  .mw-fx-budgets__cards,
  .cmt-site:not(.mw-workspace-route) .mw-prep-hero--split {
    grid-template-columns: 1fr;
  }
  .mw-fx-svg--radar,
  .mw-fx-svg--compass {
    opacity: .24;
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mw-svg-sweep,
  .mw-svg-orbit,
  .mw-svg-pulse-ring,
  .mw-svg-flow-paths path,
  .mw-svg-flow-route,
  .mw-svg-ecg {
    animation: none !important;
  }
}
