/* OM SPACE Therapy Centre — Phase 2 (filtered: invisible fixes only; see merge_report.json) */
/* --- U-11: Additive Simplified Chinese subset (97 missing glyphs, loaded on-demand via unicode-range) --- */
@font-face {
  font-family: "OMSans";
  src: local("PingFang SC"), url(/assets/fonts/om-fx-sc-ext.woff2?v=2719b7f07e) format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E27,U+4EEA,U+4FA7,U+5077,U+50F5,U+51B7,U+5237,U+52BF,U+536B,U+5377,U+53DB,U+53EB,U+5496,U+5499,U+5561,U+5589,U+559D,U+5631,U+5708,U+575E,U+5939,U+5ACC,U+5BBD,U+5C4B,U+5C4F,U+5CB8,U+5F1B,U+5FCC,U+6012,U+602A,U+6084,U+6094,U+6124,U+6170,U+61D2,U+629A,U+62B9,U+633D,U+638F,U+63C9,U+642D,U+64C5,U+65E2,U+6652,U+6674,U+6717,U+680F,U+6865,U+690D,U+6A90,U+6B32,U+6C57,U+6CDB,U+6D45,U+6D53,U+6DC0,U+6DFB,U+6EDA,U+6FC0,U+70C8,U+71AC,U+71C3,U+7206,U+72B9,U+7387,U+73ED,U+758F,U+75BC,U+75BE,U+78B0,U+7B5B,U+7EC7,U+7F13,U+80A0,U+8179,U+822A,U+822C,U+8239,U+8303,U+865A,U+8C6B,U+8D5E,U+8D62,U+8D8B,U+8E2A,U+8F68,U+903C,U+9152,U+9178,U+9635,U+964C,U+964D,U+9876,U+98DF,U+996E,U+9971,U+9F3E;
}

/* Moonlight dark palette for embedded .om-breathe widget (contrast 1.36:1 -> 14.2:1 AAA) */
html[data-theme="dark"] .om-breathe {
  color-scheme: dark;
  --om-bg-cream: #162021;
  --om-bg-cream-soft: #1C292A;
  --om-bg-cream-tint: #1E2C2D;
  --om-teal-primary: #ECEAE4;
  --om-teal-hover: #E5CA90;
  --om-teal-active: #C9A96E;
  --om-teal-secondary: #BCCAC8;
  --om-teal-muted: #9DB3B0;
  --om-teal-border: rgba(217, 185, 119, .42);
  --om-gold-accent: #D9B977;
  color: var(--om-teal-primary);
}
html[data-theme="dark"] .om-breathe__title,
html[data-theme="dark"] .om-breathe__message-heading {
  color: #ECEAE4;
}
html[data-theme="dark"] .om-breathe__intro,
html[data-theme="dark"] .om-breathe__message-note,
html[data-theme="dark"] .om-breathe__session-meta {
  color: #BCCAC8;
}
html[data-theme="dark"] .om-breathe__hint {
  color: #9DB3B0;
}
html[data-theme="dark"] .om-breathe__core {
  background: radial-gradient(circle at 42% 36%, rgba(217, 185, 119, .24) 0%, rgba(31, 90, 99, .42) 58%, rgba(22, 32, 33, .96) 100%);
  border: 1px solid rgba(217, 185, 119, .42);
  box-shadow: 0 0 40px rgba(217, 185, 119, .14), inset 0 0 28px rgba(134, 189, 183, .14);
}
html[data-theme="dark"] .om-breathe__ring {
  border-color: rgba(217, 185, 119, .32);
}
html[data-theme="dark"] .om-breathe__halo {
  background: radial-gradient(circle, rgba(217, 185, 119, .18) 0%, rgba(134, 189, 183, .08) 52%, transparent 72%);
}
html[data-theme="dark"] .om-breathe__inner-glow {
  background: radial-gradient(circle, rgba(217, 185, 119, .22) 0%, transparent 68%);
}
html[data-theme="dark"] .om-breathe__label {
  color: #F6F4EF;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .om-breathe__btn--primary {
  background-color: #D9B977;
  color: #111819;
  border-color: #D9B977;
  box-shadow: 0 8px 24px rgba(217, 185, 119, .18);
}
html[data-theme="dark"] .om-breathe__btn--primary:hover {
  background-color: #E5CA90;
  border-color: #E5CA90;
}
html[data-theme="dark"] .om-breathe__btn--secondary {
  background-color: rgba(236, 234, 228, .06);
  color: #ECEAE4;
  border-color: rgba(236, 234, 228, .26);
}
html[data-theme="dark"] .om-breathe__link-btn {
  color: #D9B977;
}
html[data-theme="dark"] .om-breathe__progress {
  background-color: rgba(236, 234, 228, .12);
}
html[data-theme="dark"] .om-breathe__progress-fill {
  background: linear-gradient(90deg, #86BDB7, #D9B977);
}
html[data-theme="dark"] .om-breathe__status-badge {
  background: rgba(217, 185, 119, .14);
  color: #D9B977;
  border-color: rgba(217, 185, 119, .32);
}

/* Lift .ba-cap and .ba-rail cleanly above the cookie banner when cookie is open */
@media (max-width: 899px) {
  .ba-cap, .ba-rail {
    transition: bottom .35s ease;
  }
  html.cookie-open .ba-cap {
    bottom: calc(11.6rem + env(safe-area-inset-bottom)) !important;
  }
  html.cookie-open .ba-rail {
    bottom: calc(9.2rem + env(safe-area-inset-bottom)) !important;
  }
  html.cookie-open.om-mbar-on .ba-cap {
    bottom: calc(15.2rem + env(safe-area-inset-bottom)) !important;
  }
  html.cookie-open.om-mbar-on .ba-rail {
    bottom: calc(12.8rem + env(safe-area-inset-bottom)) !important;
  }
}

/* 2. Booking page step 3 double underline fix (#bkMail & .bk-privacy a.textlink) */
.bk-alt a.textlink,
.bk-privacy a.textlink {
  text-decoration: none !important;
}

/* 3. Mobile 360-480px header logo breathing room (prevents 89x47 squeeze while preserving >=44px tap targets) */
@media (max-width: 480px) {
  html body .nav .nav-in {
    gap: .35rem;
  }
  html body .nav .brand {
    flex: 0 0 auto;
    min-width: 108px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  html body .nav .brand img {
    height: 30px !important;
    width: auto !important;
    max-width: none !important;
  }
  html body .nav .nav-end {
    gap: .22rem;
    flex-shrink: 1;
  }
  html body .nav .nav-end .btn-sm {
    padding-inline: .85rem;
    white-space: nowrap;
  }
}

/* unselected service tabs: contrast 4.38 -> 6.55 (home .tabs left unchanged: already 8.16) */
html:not([data-theme="dark"]) .svt-tabs button:not([aria-selected="true"]) {
  color: #465B5E;
}

@media (prefers-reduced-motion: reduce) {
  .p5-step,
  .p5-step *,
  .om-breathe__layer,
  .om-breathe__label {
    transition: none !important;
    animation: none !important;
  }
}

/* launch QA: let long .btn-lg labels wrap on phones instead of being clipped */
@media (max-width:600px){.btn-lg{white-space:normal;text-align:center;overflow-wrap:anywhere}}

/* launch QA: keep the .ba-rail right label clear of the floating WhatsApp pill (desktop) */
@media (min-width:900px){.ba-rail{right:max(var(--gut),calc((100vw - var(--maxw))/2),278px)}}

/* launch QA: hero poster layer carries the same 1.12 scale / parallax offset as the hero video, so the poster -> video cross-fade does not zoom */
@media (prefers-reduced-motion:no-preference){.hero-media::before{content:"";position:absolute;inset:0;background:inherit;transform:translate3d(0,var(--hpy,0px),0) scale(1.12);pointer-events:none}}
