
@media(max-width:1024px){
 header .wrap.nav.mobile-header-ready {
  display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;
  gap:.15rem!important;padding-block:.15rem!important;min-height:0!important;position:relative;
 }
 header .mobile-header-ready > a.brand {min-width:0;flex:1 1 auto;margin:0!important;gap:.2rem!important}
 header .mobile-header-ready .brand-name-text {min-width:0;overflow:hidden}
 header .mobile-header-ready .brand-name-text > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
 header .mobile-header-ready > nav#site-main-nav {
  width:auto!important;flex:0 0 auto;flex-wrap:nowrap!important;gap:0!important;margin:0!important;
 }
 header .mobile-header-ready > nav#site-main-nav > :is(a,button),
 header .mobile-header-ready > nav#site-main-nav > details > summary {
  padding:.15rem!important;min-width:44px!important;min-height:44px!important;margin:0!important;
 }
 header .mobile-header-ready #site-main-nav > .site-search-button > span {display:none!important}
 header .mobile-header-ready #site-main-nav .site-search-button > svg {display:block!important}
 header .mobile-header-ready .unified-site-more-items {inset-inline-end:0;top:100%}
}

@media(min-width:1025px){
 header .wrap.nav:has(> #site-main-nav) {flex-wrap:nowrap!important}
 header .wrap.nav:has(> #site-main-nav) > a.brand {min-width:0}
 header .wrap.nav:has(> #site-main-nav) .brand-name-text {min-width:0;overflow:hidden}
 header .wrap.nav:has(> #site-main-nav) .brand-name-text > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 header .nav > nav#site-main-nav {width:auto!important;flex:0 0 auto;flex-wrap:nowrap!important}
}

/* Keep action groups together while allowing long labels to wrap. */
main :is(.clinic-card-actions, .clinic-quick-actions, .booking-support-options, .patient-team-links, .contact-top-shortcuts, .faq-shortcuts, .patient-faq-shortcuts, .clinic-enquiry-actions, .unified-branch-contacts, .reservation-contact-links, .feedback-clinic-links, .service-contact-actions, .actions:has(> .btn)):not([hidden]) {
  display: flex !important;
  flex-flow: row wrap;
  align-items: stretch;
  gap: .3rem !important;
}
main :is(.clinic-card-actions, .clinic-quick-actions, .booking-support-options, .patient-team-links, .contact-top-shortcuts, .faq-shortcuts, .patient-faq-shortcuts, .clinic-enquiry-actions, .unified-branch-contacts, .reservation-contact-links, .feedback-clinic-links, .service-contact-actions, .actions:has(> .btn)) > :is(a,button,summary):not([hidden]) {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: auto;
  max-width: 100%;
  padding-inline: .45rem;
  text-align: center;
  white-space: normal;
}
@media(max-width:760px) {
  main :is(.contact-top-shortcuts,.patient-team-links,.patient-faq-shortcuts,.clinic-card-actions) > a.btn:not([hidden]) {
    flex: 1 1 calc((100% - .6rem) / 3);
    min-inline-size: min(5rem,100%) !important;
  }
  main :is(.clinic-enquiry-actions,.unified-branch-contacts,.reservation-contact-links,.feedback-clinic-links,.service-contact-actions) > a:not([hidden]) {
    flex: 1 1 auto;
  }
  main :is(.clinic-enquiry-actions,.unified-branch-contacts,.reservation-contact-links,.feedback-clinic-links,.service-contact-actions) > a.wa-number-button:not([hidden]) {
    flex: 1 1 auto !important;
  }
}

/* Remove the decorative outlines behind page headings and illustrations. */
.pageheading::after,
.art::before {
  content: none !important;
  display: none !important;
}

/* One Services disclosure with the same links on both screen sizes. */
header #site-main-nav .unified-service-menu {
  position: relative;
}

header #site-main-nav .unified-service-menu > summary {
  cursor: pointer;
  list-style: none;
  padding: .55rem .65rem;
  white-space: nowrap;
}

header #site-main-nav .unified-service-menu > summary::after {
  content: ' ▾';
}

header #site-main-nav .unified-service-menu > summary::-webkit-details-marker {
  display: none;
}

header #site-main-nav .unified-service-menu-items {
  position: absolute;
  z-index: 110;
  inset-inline-start: 0;
  min-width: 10rem;
  padding: .25rem;
  border: 1px solid #c8d6df;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 .45rem 1rem #263d4c30;
}

header #site-main-nav .unified-service-menu-items > a {
  display: block !important;
  padding: .55rem .65rem;
}

header #site-main-nav .unified-site-more-items .unified-service-menu-items {
  position: static;
  border: 0;
  padding: 0 0 0 .6rem;
  box-shadow: none;
}

/* Keep the More menu compact without reducing touch targets. */
header #site-main-nav .unified-site-more[open] > .unified-site-more-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: .15rem .3rem;
  box-sizing: border-box;
  width: min(24rem, calc(100vw - 1rem));
  max-height: calc(100dvh - 5rem);
  overscroll-behavior: contain;
}

header #site-main-nav .unified-site-more-items > :is(a, details) {
  min-width: 0;
}

header #site-main-nav .unified-site-more-items > a,
header #site-main-nav .unified-site-more-items .unified-service-menu > summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: .35rem .45rem;
  font-size: .875rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

header #site-main-nav .unified-site-more-items .unified-service-menu > summary {
  white-space: normal;
}

@media (min-width: 1025px) {
  header #site-main-nav .unified-site-more[open] > .unified-site-more-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(32rem, calc(100vw - 1rem));
  }
}

/* Social links share one row, followed by four clinic contact buttons. */
body footer .wrap.footer-contact-links {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

body footer .footer-contact-links > .footer-social-links {
  display: contents;
}

body footer .footer-contact-links > .footer-social-links > a {
  grid-column: span 4;
}

body footer .footer-contact-links > a.footer-contact-link {
  grid-column: span 3;
}

main .contact-social-section .contact-social-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .3rem !important;
}

main .contact-social-section .contact-social-grid > a {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  main .contact-social-section .contact-social-grid > a > span > span {
    display: none;
  }
}

/* Keep international numbers legible even in compact contact rows. */
body a:is([href^="tel:"], .wa-number-button, #request-call-landline, #request-denovo-send) {
  flex-wrap: wrap;
  white-space: normal !important;
  max-width: 100%;
}

body a:is([href^="tel:"], .wa-number-button, #request-call-landline, #request-denovo-send)
  :is(.site-contact-number, .wa-number-label, .footer-whatsapp-number) {
  font-size: clamp(1rem, 2vw, 1.125rem) !important;
  font-weight: 800 !important;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

header #site-main-nav .unified-site-more-items > .site-search-button {
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  min-width: 0;
  padding: .35rem .45rem;
  text-align: start;
}

/* Match call and WhatsApp buttons in the clinic contact row. */
body footer .wrap.footer-contact-links > a.footer-contact-link {
  display: inline-flex !important;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  min-height: 48px !important;
  margin: 0 !important;
  gap: .35rem !important;
  padding: .35rem .25rem !important;
  border: 1px solid #e7c7d1 !important;
  border-radius: .75rem !important;
  background: #fff5f8 !important;
  color: #593643 !important;
  text-align: center;
}

body footer .wrap.footer-contact-links > a.footer-contact-link:hover {
  background: #fae7ee !important;
}

body footer .wrap.footer-contact-links > a.footer-contact-link > svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

body footer .wrap.footer-contact-links > a.footer-contact-link > span {
  min-width: 0;
  font-size: .8125rem !important;
  font-weight: 700 !important;
}

body footer .wrap.footer-contact-links > a.footer-contact-link
  :is(.site-contact-number, .footer-whatsapp-number) {
  display: block !important;
  font-size: clamp(.875rem, 3.6vw, 1rem) !important;
  white-space: normal !important;
}

header #site-main-nav .unified-site-more-items > .more-resources {
  min-width: 0;
}

header #site-main-nav .more-resources > summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: .35rem .45rem;
  font-size: .875rem;
  line-height: 1.25;
  cursor: pointer;
}

header #site-main-nav .more-resources[open] {
  grid-column: 1 / -1;
}

header #site-main-nav .more-resources[open] > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem .3rem;
  padding: .2rem .35rem;
}

body footer .wrap.footer-contact-links > a.footer-contact-link > span:is(.zh, .en, .footer-whatsapp-label) {
  font-family: inherit !important;
  font-size: .8125rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
}

body footer .wrap.footer-contact-links > a.footer-contact-link
  :is(.site-contact-number, .footer-whatsapp-number) {
  font-family: inherit !important;
  font-size: clamp(.875rem, 3.6vw, 1rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  body footer .wrap.footer-contact-links > a.footer-contact-link {
    gap: .18rem !important;
    padding-inline: .15rem !important;
  }

  body footer .wrap.footer-contact-links > a.footer-contact-link
    :is(.site-contact-number, .footer-whatsapp-number) {
    font-size: .8125rem !important;
    overflow-wrap: anywhere;
  }
}

.clinic-whatsapp-float .wa-float-contact {
  display: grid;
  gap: .12rem;
  min-width: 0;
  text-align: start;
}

.clinic-whatsapp-float .wa-float-contact > strong {
  color: #24583b;
  font-size: .875rem;
}

body footer .wrap.footer-contact-links > a.footer-contact-link > span.footer-clinic-label {
  font: 700 .8125rem/1.25 Arial, "PingFang TC", "Microsoft JhengHei", sans-serif !important;
  letter-spacing: normal !important;
}

body footer .wrap.footer-contact-links > a.footer-contact-link > .footer-clinic-label > .footer-clinic-number {
  font-family: inherit !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  font-variant-numeric: tabular-nums;
}

body footer .wrap.footer-contact-links > a.footer-contact-link > .footer-clinic-label {
  display: grid !important;
  justify-items: center;
  min-width: 0;
  font-family: "PingFang TC", "Microsoft JhengHei", Arial, sans-serif !important;
  white-space: normal !important;
}

body footer .wrap.footer-contact-links .footer-clinic-name {
  font: 700 .8125rem/1.25 "PingFang TC", "Microsoft JhengHei", Arial, sans-serif !important;
}

body footer .wrap.footer-contact-links > a.footer-contact-link > .footer-clinic-label > .footer-clinic-number {
  font-size: clamp(.8125rem, 2vw, 1rem) !important;
  font-weight: 800 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
