:root {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f5f5f2;
  --warm: #faf8f4;
  --ink: #202528;
  --muted: #505a60;
  --steel: #e0e5e5;
  --accent: #ae3c09;
  --brand-orange: #db5210;
  --button-fill: #c1450d;
  --sans: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --display: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

:root[lang="en"] {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font: 600 clamp(2rem, 4vw, 3.75rem)/1.12 var(--display); }
h1 { font-size: clamp(2.65rem, 5.8vw, 5.25rem); }
h3 { line-height: 1.25; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; top: .7rem; left: 1rem; z-index: 8; padding: .5rem 1rem; background: var(--white); }

.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--steel); }
.header-inner { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); min-height: 76px; }
.logo { flex: 0 0 auto; margin-right: auto; line-height: 1; }
.logo img { width: clamp(122px, 14vw, 160px); }
.desktop-nav, .site-footer nav { display: flex; align-items: center; }
.desktop-nav { gap: clamp(.8rem, 1.7vw, 1.8rem); }
.site-footer nav { gap: clamp(1.4rem, 3.1vw, 3rem); }
.desktop-nav a, .site-footer nav a { text-decoration: none; font-size: .94rem; font-weight: 550; }
.desktop-nav a { display: grid; align-items: center; min-height: 76px; border-bottom: 2px solid transparent; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .desktop-nav a.active { border-bottom-color: var(--brand-orange); color: var(--accent); }
.site-footer nav a:hover { color: var(--accent); }
.header-contact {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .3rem .8rem;
  border: 1px solid var(--accent);
  border-radius: .35rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.header-contact:hover { background: var(--warm); }
.language, .mobile-menu summary {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 46px;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.language { border-left: 1px solid var(--steel); padding-inline: .8rem .25rem; }
.language:hover, .mobile-menu summary:hover { color: var(--accent); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; padding-inline: .65rem; border: 1px solid var(--steel); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
  z-index: 4;
  position: absolute;
  top: calc(100% + .65rem);
  right: 0;
  min-width: 195px;
  background: var(--white);
  border: 1px solid var(--steel);
  box-shadow: 0 12px 28px #17232614;
}
.mobile-menu nav a { min-height: 46px; display: flex; align-items: center; padding: .6rem .85rem; text-decoration: none; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current], .mobile-menu nav a.active { background: var(--paper); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .12em;
}
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; flex: 0 0 auto; background: var(--brand-orange); }
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .095em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: fit-content;
  max-width: 100%;
  padding: .65rem 1.28rem;
  border: 1px solid var(--button-fill);
  border-radius: .35rem;
  color: var(--white);
  background: var(--button-fill);
  font-size: .95rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.button-outline { color: var(--ink); background: var(--white); border-color: #b6c0c2; }
.button-outline:hover { color: var(--accent); background: var(--white); border-color: var(--accent); }
.brand-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--steel); }
.brand-links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 52px; padding: .5rem clamp(.45rem, 1.55vw, 1.4rem); font-weight: 620; text-decoration: none; }
.brand-links a + a { border-inline-start: 1px solid var(--steel); }
.brand-links a:hover { color: var(--accent); background: var(--warm); }
.brand-links a span { color: var(--accent); }

.section { padding-block: clamp(2.8rem, 6.3vw, 6rem); }
.section-heading p { color: var(--muted); margin-top: .9rem; }
.text-link { color: var(--accent); font-weight: 620; text-decoration: underline; text-underline-offset: .26em; }
.text-link:hover { color: var(--ink); }
.map-note { margin-top: .85rem; font-size: .875rem; color: var(--muted); }

.page-intro { padding-block: clamp(2.9rem, 6vw, 5.5rem); background: var(--warm); border-bottom: 1px solid var(--steel); }
.page-intro p { max-width: 57ch; margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.team-grid img { width: 100%; background: var(--white); }
.team-grid figcaption { margin-top: .55rem; font-weight: 650; }
.team-grid figcaption span { display: block; margin-top: .2rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
#founder, #clinic, #team, #feedback, #pain-management { scroll-margin-top: 1rem; }
.profile-cover { background: var(--warm); }
.profile-cover h1 { margin-block: .65rem .75rem; letter-spacing: -.035em; }
.doctor-detail > h2 { margin-bottom: clamp(1.25rem, 3vw, 2.15rem); }
.source-actions { margin-top: 1.4rem; }
.section-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .75rem; }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; }
.media-section { background: var(--paper); border-block: 1px solid var(--steel); }
.source-group { scroll-margin-top: 1.4rem; }
.source-group + .source-group { margin-top: clamp(2.1rem, 4vw, 3.5rem); }
.source-group > h2, .source-group > h3 {
  margin: 0 0 .9rem;
  color: var(--ink);
  font: 600 clamp(1.35rem, 2.5vw, 2rem)/1.25 var(--display);
}
.source-record {
  display: grid;
  grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  gap: .45rem 1.7rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--steel);
  scroll-margin-top: 1.4rem;
}
.source-record:target { background: #fcf5ef; box-shadow: -.62rem 0 var(--brand-orange); }
.record-attribution { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.record-attribution time { display: inline-block; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.record-description h3, .record-description h4 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.record-description p { color: var(--muted); margin-top: .35rem; overflow-wrap: anywhere; }
.record-description .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.record-links { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.evidence-records { width: min(100% - 112px, 980px); }
.record-figure { margin-top: .8rem; }
.record-image-link { display: block; width: min(100%, 15rem); text-decoration: none; }
.record-thumbnail {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: .55rem;
  border: 1px solid var(--steel);
  background: var(--paper);
}
.record-thumbnail img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.record-image-action { display: flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 620; }
.record-image-link:hover .record-thumbnail { border-color: var(--accent); }
.record-image-link:hover .record-image-action { text-decoration: underline; text-underline-offset: .25em; }
.record-figure figcaption { max-width: 36rem; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.record-figure-media .record-image-link { width: min(100%, 25rem); }
.record-figure-media .record-thumbnail { aspect-ratio: auto; padding: .25rem; }
.record-figure-media .record-thumbnail img { height: auto; }
.image-viewer {
  width: min(calc(100% - 1.5rem), 72rem);
  max-height: calc(100% - 1.5rem);
  padding: clamp(.75rem, 2.5vw, 1.5rem);
  border: 1px solid var(--steel);
  background: var(--white);
  color: var(--ink);
}
.image-viewer::backdrop { background: rgb(32 37 40 / .72); }
html:has(.image-viewer[open]) { overflow: hidden; }
.image-viewer-controls { display: flex; justify-content: flex-end; margin-bottom: .6rem; }
.image-viewer-controls button {
  min-height: 44px;
  padding-inline: .8rem;
  border: 1px solid var(--steel);
  background: var(--white);
  color: var(--ink);
  font: 620 .9rem var(--sans);
  cursor: pointer;
}
.image-viewer-controls button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.image-viewer-content { padding: .5rem; background: var(--paper); }
.image-viewer-content img { width: auto; max-height: 58vh; max-height: 58dvh; margin-inline: auto; object-fit: contain; }
#image-viewer-caption { margin-top: .75rem; }
.image-viewer-original { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.visit-steps ol { padding-inline-start: 1.7rem; margin-block: 1.2rem 1.6rem; }
.visit-steps li { padding-left: .35rem; margin-bottom: 1.2rem; }
.visit-steps li::marker { color: var(--accent); font-weight: 700; }
.visit-steps h3 { font-size: 1.13rem; }
.visit-steps p, .faq p { margin-top: .35rem; color: var(--muted); }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--steel); }
.faq details:last-child { border-bottom: 1px solid var(--steel); }
.faq summary { min-height: 44px; padding: .8rem .1rem; font-weight: 650; cursor: pointer; }
.faq p { margin: 0 0 1rem 1rem; }
.site-footer { border-top: 1px solid var(--steel); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; padding-block: 2rem; }
.footer-contact-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.footer-name { font-weight: 700; }
.footer-detail, .preview-status { color: var(--muted); font-size: .85rem; }

@media (max-width: 1000px) {
  .shell { width: min(100% - 64px, 1280px); }
  .evidence-records { max-width: 980px; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --mobile-header-height: 65px; scroll-padding-top: var(--mobile-header-height); }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: calc(var(--mobile-header-height) - 1px); gap: .55rem; }
  .skip-link:focus { position: fixed; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu nav {
    max-height: calc(100vh - var(--mobile-header-height) - 1rem);
    max-height: calc(100dvh - var(--mobile-header-height) - 1rem);
    overflow-y: auto;
  }
  .language { border-left: 0; padding-inline: .5rem; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-contact { padding-inline: .45rem; }
  #main, #media { scroll-margin-top: 1rem; }
  .brand-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-links a { min-height: 46px; font-size: .9rem; }
  .brand-links a:nth-child(3) { border-inline-start: 0; }
  .brand-links a:nth-child(n + 3) { border-top: 1px solid var(--steel); }
  .actions { margin-top: 1.2rem; }
  .source-record { grid-template-columns: minmax(0, 1fr); }
  .record-attribution { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { flex-wrap: wrap; gap: .5rem 1.15rem; }
}

@media (max-width: 400px) {
  .header-inner { gap: .42rem; }
  .logo img { width: clamp(94px, 30vw, 122px); }
  .language { min-width: 44px; padding-inline: .2rem; }
  .mobile-menu summary { padding-inline: .45rem; }
}

