/* Clinic pages. Colours and type follow the current favourite homepage design; change them here. */
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
:root {
  --paper: #f1ece1; --paper-hi: #f7f3ea; --ink: #1d1d1b; --ink-2: #4a4a40;
  --olive-ink: #4f5a24; --olive-deep: #3c4519; --bronze: #a8743c; --bronze-ink: #7a5226;
  --rule: rgba(29, 29, 27, .16); --pad: clamp(20px, 4.4vw, 64px); --ease: cubic-bezier(.16, 1, .3, 1);
  --f: "Hanken Grotesk", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Newsreader", "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f); -webkit-font-smoothing: antialiased; }
:lang(zh-Hans) body, body:lang(zh-Hans) { line-height: 1.8; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--bronze-ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px 0 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-weight: 500; transition: transform .5s var(--ease), background-color .2s; }
.btn::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid var(--bronze); background: var(--paper-hi); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--olive-deep); color: var(--paper-hi); }
.btn-primary:hover { background: #2e3513; }
.link { color: var(--olive-ink); text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 500; display: inline-block; padding: 10px 0; margin: -10px 0; }
.link:hover { color: var(--ink); }

/* persistent header: same size and place on every page */
.top { position: sticky; top: 0; z-index: 30; height: 76px; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.page-book .top-actions { margin-left: 0; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.lang:hover { background: rgba(29, 29, 27, .05); }

/* page */
.page { max-width: 1080px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--pad) 96px; }
.page-title { font: 300 clamp(2.25rem, 5vw, 3.75rem)/1.08 var(--serif); letter-spacing: -.01em; }
:lang(zh-Hans) .page-title { letter-spacing: 0; line-height: 1.25; font-weight: 400; }
.lede { margin-top: 16px; max-width: 58ch; color: var(--ink-2); }
.tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--bronze-ink); color: var(--bronze-ink); font-size: .75rem; line-height: 1.5; font-weight: 500; vertical-align: 1px; }

/* provider */
.prov { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; column-gap: clamp(32px, 6vw, 72px); margin-top: clamp(28px, 5vw, 56px); }
.portrait { grid-row: 1 / span 2; }
.portrait > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: 16px; background: var(--paper-hi); border: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; }
.portrait-frame img { width: 46%; opacity: .85; }
.portrait-frame figcaption { font-size: .8125rem; color: var(--ink-2); }
.prov-name { font: 400 clamp(1.625rem, 3vw, 2.125rem)/1.15 var(--serif); }
.prov-role { margin-top: 6px; color: var(--olive-ink); font-weight: 500; }
.prov-body { margin-top: 24px; max-width: 62ch; }
.prov-body > p, .more p { margin-top: 14px; }
.prov-body > p:first-child { margin-top: 0; }
.more summary { display: none; }
.sub-h { margin-top: 36px; font-size: .9375rem; font-weight: 600; letter-spacing: .01em; }
.creds { margin-top: 10px; border-top: 1px solid var(--rule); }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.prov-body .btn { margin-top: 32px; }

/* contact */
.facts { margin-top: clamp(28px, 5vw, 48px); border-top: 1px solid var(--rule); max-width: 720px; }
.facts > div { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-2); font-size: .9375rem; }
.hours li { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.page-contact .btn { margin-top: 32px; }

/* booking */
.page-book .page { max-width: 760px; }
.preview-note { margin-top: 16px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--bronze-ink); color: var(--bronze-ink); font-size: .875rem; background: var(--paper-hi); }
medbook-booking {
  display: block; margin-top: 24px; border-radius: 18px; border: 1px solid var(--rule); overflow: clip;
  --mb-font: var(--f); --mb-ink: #1d1d1b; --mb-muted: #4a4a40; --mb-bg: #f7f3ea; --mb-surface: #f1ece1; --mb-line: #d9d1bf;
  --mb-accent: #3c4519; --mb-accent-ink: #f7f3ea; --mb-focus: #7a5226; --mb-radius: 14px;
}

/* phone dock: main action pinned to the bottom, one-word labels */
.dock { display: none; }
@media (max-width: 719px) {
  .top { height: 60px; gap: 12px; }
  .brand img { height: 42px; }
  .nav, .top-book, .hide-phone { display: none; }
  .top-actions { margin-left: auto; }
  .page { padding-top: 24px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .page-book .page { padding: 20px 0 env(safe-area-inset-bottom); }
  .page-book .page-title, .page-book .lede, .page-book .preview-note { margin-left: 20px; margin-right: 20px; }
  medbook-booking { border-radius: 0; border-width: 1px 0 0; --mb-radius: 12px; }
  .prov { grid-template-columns: 88px 1fr; column-gap: 16px; align-items: center; margin-top: 20px; }
  .portrait { grid-row: auto; }
  .portrait-frame { border-radius: 12px; padding: 8px; }
  .portrait-frame img { width: 72%; }
  .portrait-frame figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prov-body { grid-column: 1 / -1; margin-top: 20px; }
  .more summary { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-right: 12px; margin-top: 2px; color: var(--olive-ink); font-weight: 500; cursor: pointer; }
  .more[open] summary { display: none; }
  .facts > div { grid-template-columns: 1fr; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.3fr; align-items: center; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule);
  }
  .dock > a:not(.btn) { display: flex; align-items: center; justify-content: center; min-height: 48px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; border-radius: 10px; }
  .dock > a[aria-current] { color: var(--ink); font-weight: 600; }
  .dock .btn { min-height: 48px; padding: 0 16px 0 12px; }
}

/* content builds in top to bottom */
.page > * { animation: rise .6s var(--ease) both; }
.page > :nth-child(2) { animation-delay: 60ms; }
.page > :nth-child(3) { animation-delay: 120ms; }
.page > :nth-child(4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  .page > *, .btn, .nav a::after { animation: none; transition: none; }
}
