/* Clinic page + site chrome coexistence */

/* 官網 #header 有 top:-50px；clinic 維持深底銜接 hero */
body.clinic-page {
  background: #1a1a1a;
  overflow-x: visible;
}

body.clinic-page .clinic-main > .clinic-header-wrap {
  background: #161616;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

body.clinic-page .clinic-main > .clinic-header-wrap > .container {
  max-width: 1320px;
}

/* 不可設 position:relative 卻不重置 top：官網 #header{top:-50px} 會因此生效，露出白帶 */
body.clinic-page #header {
  position: relative;
  top: 0;
  z-index: 60;
  background: #161616;
}

body.clinic-page #header a,
body.clinic-page #header .nav a {
  color: #d7d7d7;
}

body.clinic-page #header .nav > ul > li > ul {
  background: #161616;
}

body.clinic-page #header .nav > ul > li > ul a:hover {
  color: #fff;
}

body.clinic-page section[id] {
  scroll-margin-top: 96px;
}

/* 官網 html{overflow-x:hidden;height:100%} 會讓同頁錨點失效 */
html:has(body.clinic-page) {
  overflow-x: visible !important;
  overflow-y: scroll !important;
  height: auto !important;
  scroll-behavior: auto;
}

/* hero 次要連結 hover 維持白字（避免被官網／Bootstrap a:hover 蓋色） */
body.clinic-page .hero a.text-link,
body.clinic-page .hero a.text-link:hover,
body.clinic-page .hero a.text-link:focus,
body.clinic-page .hero a.text-link:focus-visible,
body.clinic-page .hero a.text-link .slide-label,
body.clinic-page .hero a.text-link:hover .slide-label,
body.clinic-page .hero a.text-link .slide-arrow {
  color: #fff !important;
}

/* 區塊底色：cases 白底、FAQ 淺灰（body 已改深底，需各自指定） */
body.clinic-page .cases {
  background: #fff;
  color: #202020;
}
body.clinic-page .testimonial {
  background: #fff;
  color: #202020;
}
body.clinic-page .faq-section {
  background: #efefec;
  color: #202020;
}

body.clinic-page .hpField {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.clinic-page .contact-form .form-notice {
  display: none;
}
