/* Shared design settings: edit these first to change the site's appearance. */
:root { --ink: #203f3b; --muted: #586d68; --teal: #176b5b; --pale: #edf4f0; --line: #d5e2da; --paper: #fcfcf8; --radius: 20px; --font-body: 18px; --font-detail: 16px; --font-small: 15px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif; font-size: var(--font-body); line-height: 1.8; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid #b06a19; outline-offset: 5px; }
button:focus-visible { outline: 3px solid #b06a19; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.updates-section { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--pale); }
.carousel-controls { position: absolute; inset: 0; pointer-events: none; }
.poster-arrows { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 16 / 9; }
.carousel-controls button { position: absolute; pointer-events: auto; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: var(--font-small); cursor: pointer; box-shadow: 0 2px 8px #203f3b14; }
.carousel-controls button:focus-visible { outline-offset: -4px; }
#poster-prev, #poster-next { top: 50%; transform: translateY(-50%); border-radius: 50%; font-size: 20px; }
#poster-prev { left: 12px; }
#poster-next { right: 12px; }
#poster-toggle { bottom: 12px; right: 12px; }
.carousel-controls button:hover { background: var(--pale); }
#poster-count { position: absolute; bottom: 19px; left: 24px; min-width: 36px; font-size: var(--font-small); }
.poster-slide { display: flex; flex-direction: column; min-width: 0; }
.poster-copy { order: 2; padding: 20px 24px 64px; }
.poster-copy .eyebrow { font-size: 13px; margin-bottom: 6px; }
.poster-copy h3 { font-size: 23px; line-height: 1.4; margin-bottom: 8px; }
.poster-copy > p:last-child { color: var(--muted); font-size: var(--font-detail); margin: 0; }
.poster-copy > p:not(.eyebrow) { color: var(--muted); font-size: var(--font-detail); margin: 0; }
.poster-details { display: inline-block; margin-top: 12px; font-size: var(--font-detail); color: var(--teal); }
.poster-frame { display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%; background: var(--paper); border-bottom: 1px dashed #aebfb4; overflow: hidden; }
.poster-frame img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.poster-image-link { display: block; width: 100%; height: 100%; min-height: 0; }
.poster-image-link:focus-visible { outline-offset: -4px; }
.qualification-list { list-style: none; margin: 16px 0 0; padding: 0; }
.qualification-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 1px 0; font-size: var(--font-small); line-height: 1.65; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: white; z-index: 2; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; }
.brand strong { display: block; font-size: 20px; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 19px; }
nav a { text-decoration: none; }
nav a:hover, .map-link:hover { color: var(--teal); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 24px; border: 1px solid var(--teal); border-radius: 7px; background: var(--teal); color: white; font-size: var(--font-detail); font-weight: 700; text-decoration: none; }
.button:hover { background: #105344; color: white; }
.button-small { padding: 9px 17px; white-space: nowrap; }
.button-outline { background: transparent; color: var(--teal); }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 48px; padding-block: 48px; }
.hero-copy { min-width: 0; }
.hero-role { font-size: 22px; font-weight: 600; color: var(--ink); margin: 20px 0 0; line-height: 1.6; }
.hero-role span { display: block; }
.eyebrow { margin: 0 0 16px; color: var(--teal); font-size: var(--font-small); font-weight: 700; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(40px, 4vw, 58px); line-height: 1.4; letter-spacing: .06em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.muted { color: var(--muted); font-size: var(--font-small); }
.booking-note { max-width: 420px; margin-top: 18px; }
.hours-panel { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: start; gap: 28px; margin-bottom: 48px; padding: 28px 32px; background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius); }
.hours-panel h2 { font-size: 22px; margin-bottom: 12px; }
.hours-panel .panel-address { margin-top: 0; padding-top: 0; border-top: 0; }
.hours-panel .hours-row:first-child { padding-top: 0; border-top: 0; }
.section-label { font-size: var(--font-small); color: var(--teal); font-weight: 700; letter-spacing: .1em; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 7px; }
h2 { font-size: 29px; line-height: 1.5; margin: 8px 0 24px; font-weight: 600; letter-spacing: .03em; }
h3 { font-size: 17px; margin: 0 0 10px; }
.hours-row { padding: 18px 0; border-top: 1px solid #cbdcd1; }
.hours-row h3 { font-size: 17px; margin: 0 0 5px; }
.hours-row p { margin: 0; font-size: 19px; font-variant-numeric: tabular-nums; }
.panel-address { display: grid; gap: 4px; font-size: var(--font-detail); }
.panel-address span { color: var(--muted); }
.panel-address strong { font-size: 17px; font-weight: 500; }
.panel-address a { margin-top: 6px; }
.services-section { background: #f0f3ed; padding-block: 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { color: var(--muted); font-size: var(--font-detail); margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.service-card { padding: 25px 0 18px; border-top: 1px solid #c6d5c9; }
.service-number { display: block; color: var(--teal); font-size: 12px; margin-bottom: 16px; }
.service-card p { color: var(--muted); font-size: var(--font-detail); margin: 0; }
.service-links { margin: 16px 0 0; padding: 0; list-style: none; font-size: var(--font-detail); }
.service-links li + li { margin-top: 8px; }
.service-links a { color: var(--teal); }
.service-links a:hover { color: var(--ink); }
.verification { border-left: 3px solid #ad792b; padding-left: 12px; color: #715019; font-size: var(--font-small); margin-top: 28px; }
.fees-section { padding-block: 64px; }
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fee-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; }
.fee-card h3 { font-weight: 500; }
.fee-card p { margin: 0; }
.price { font-size: 38px; color: var(--teal); letter-spacing: -.03em; }
.panel-address .phone-label { margin-top: 16px; }
.panel-address .phone-number { display: block; width: fit-content; margin: 0; font-size: 26px; line-height: 1.5; text-decoration: none; font-variant-numeric: tabular-nums; }
.phone-number:hover { text-decoration: underline; }
/* Patient guides share readable, narrow text columns. */
.program-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 300px); gap: 64px; align-items: start; padding-block: 48px 64px; }
.back-link { display: inline-block; margin-bottom: 32px; font-size: 16px; }
.program-article h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: .02em; }
.program-summary { font-size: 20px; margin-block: 24px; }
.program-highlight { padding: 20px 24px; background: var(--pale); border-left: 4px solid var(--teal); border-radius: 4px; font-weight: 600; }
.program-section { padding-block: 24px 16px; border-bottom: 1px solid var(--line); }
.program-section h2 { font-size: 26px; margin-bottom: 16px; }
.program-section p { margin: 0 0 16px; }
.patient-list { padding-left: 1.5em; margin: 0 0 20px; }
.patient-list li + li { margin-top: 12px; }
.program-source { font-size: 16px; color: var(--teal); }
.program-note { color: var(--muted); }
.program-contact { padding: 24px; background: var(--pale); border: 1px solid var(--line); border-radius: 16px; }
.program-contact h2 { font-size: 24px; }
.program-contact p { font-size: 16px; }
.program-contact > a { display: block; margin-top: 16px; }
.program-contact .phone-number { font-size: 28px; text-decoration: none; }
.program-contact .button { display: flex; padding-inline: 12px; }
@media (max-width: 950px) { .program-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 950px) { .site-header { flex-wrap: wrap; } nav { order: 3; width: 100%; justify-content: space-between; } .hero { gap: 32px; } .hours-panel { padding: 28px; } .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .wrap { width: calc(100% - 36px); } .site-header { gap: 18px; padding-block: 20px; } .brand strong { font-size: 18px; } .brand small { font-size: 12px; } .button-small { padding: 8px 12px; font-size: var(--font-small); gap: 12px; } nav { gap: 8px 16px; font-size: 18px; } .hero { grid-template-columns: 1fr; padding-block: 42px; gap: 32px; } .hours-panel { padding: 24px; } h2 { font-size: 25px; } .section-heading { display: block; } .section-intro { margin-top: 14px; } .service-grid, .fee-grid { grid-template-columns: 1fr; } .services-section, .fees-section { padding-block: 42px; } .fee-card { padding: 20px 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 650px) { .brand-logo { width: 44px; height: 44px; } .brand { gap: 8px; } }
@media (max-width: 950px) { .hours-panel { grid-template-columns: 1fr 1fr; } .hours-panel > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 650px) { .hours-panel { grid-template-columns: 1fr; padding: 24px; gap: 20px; margin-bottom: 32px; } }

/* Guide navigation has six links; keep the clinic name and booking action clear. */
body[data-program] .site-header { flex-wrap: wrap; }
body[data-program] nav { order: 3; width: 100%; justify-content: flex-start; gap: 12px 28px; }

.hero-copy .actions { margin-top: 24px; }

/* Both languages share the layout; long English labels wrap naturally. */
.site-header { flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.language-switch { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.language-switch a, .language-switch span { display: inline-flex; align-items: center; min-height: 44px; }
.language-switch [aria-current] { color: var(--teal); font-weight: 700; }
.brand { min-width: 0; }
.brand > span { min-width: 0; }
html[lang="en-HK"] { overflow-wrap: break-word; }
html[lang="en-HK"] .brand { max-width: 470px; }
html[lang="en-HK"] .brand small { max-width: 360px; }
html[lang="en-HK"] .hero-role { font-size: 21px; letter-spacing: 0; }
html[lang="en-HK"] .eyebrow { letter-spacing: .06em; }
html[lang="en-HK"] .site-header nav { order: 3; width: 100%; justify-content: flex-start; gap: 12px 28px; }
@media (max-width: 650px) {
  .header-actions { width: 100%; justify-content: space-between; }
  html[lang="en-HK"] .brand { max-width: 100%; }
  html[lang="en-HK"] h1 { font-size: 38px; }
  html[lang="en-HK"] .program-article h1 { font-size: 30px; }
  html[lang="en-HK"] .program-summary { font-size: 19px; }
  html[lang="en-HK"] .site-header nav { gap: 10px 20px; }
}
