/* Original identity and a photography-led, all-age medical introduction. */
/* A warm brand backdrop for the approved portrait; keep the photo unchanged. */
.hero-clinician-photo.hero-lin-photo,
.portrait.lin-photo {
  background-color: #f8e7a4;
  background-image: radial-gradient(ellipse at 50% 25%, #fff6d4 0%, #f8e7a4 65%, #efd586 100%);
}
.brand { gap: 16px; }
.brand .brand-logo { width: 78px; height: auto; }
.brand-identity { display: block; }
.team-wordmark { position: relative; display: block; width: 250px; aspect-ratio: 4.9; overflow: hidden; }
.team-wordmark img, .brand .team-wordmark img { position: absolute; width: 108%; max-width: none; height: auto; left: -4.5%; top: -30%; mix-blend-mode: multiply; }
.header-inner { gap: 22px; padding-inline: 32px; height: 108px; }
.header-right { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-end; gap: 7px; }
.header-clinic-names { display: flex; justify-content: flex-end; align-items: center; gap: 17px; color: #70674e; font-size: 12px; line-height: 1.6; letter-spacing: .05em; white-space: nowrap; }
.header-clinic-names > span + span { padding-left: 17px; border-left: 1px solid #d9ccb0; }
.header-navigation { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.header-navigation .header-booking { min-height: 44px; padding: 8px 20px; }
.desktop-nav > a { padding-block: 10px; }
.desktop-nav > a::after { bottom: 2px; }
.booking-dialog, .doctor-dialog { position: fixed; inset: 0; margin: auto; }
.desktop-nav { gap: 18px; font-size: 13px; }
.footer-wordmark { width: 280px; margin: 13px 0 10px; }
.footer-brand > .team-wordmark img { max-width: none; }
.medical-hero { margin-top: 18px; background: #fbfaf5; border: 1px solid #eee8da; border-top: 4px solid var(--yellow); }
.medical-hero-main { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(35px, 5vw, 86px); padding-block: 44px 36px; }
.medical-kicker { display: flex; align-items: center; gap: 10px; color: #7d663a; letter-spacing: .13em; font-size: 12px; font-weight: 600; margin-bottom: 23px; }
.medical-kicker i { display: block; width: 26px; height: 3px; background: var(--yellow); flex-shrink: 0; }
.medical-hero h1 { font-family: 'Noto Serif CJK TC', 'Songti TC', 'PMingLiU', serif; font-size: clamp(34px, 3.35vw, 50px); line-height: 1.55; letter-spacing: .015em; color: #35382f; margin: 0 0 22px; font-weight: 650; }
.medical-hero h1 em { font-style: normal; color: #775b32; }
.medical-hero-copy > p { font-size: 15px; line-height: 2; color: #69685e; margin: 0 0 27px; }
.medical-hero .hero-buttons { gap: 11px; }
.medical-hero .hero-buttons .button { font-size: 13px; padding: 12px 20px; min-height: 49px; gap: 10px; }
.hero-clinics { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #858174; margin-top: 24px; }
.hero-clinics i { width: 3px; height: 3px; border-radius: 50%; background: #bbab86; }
.medical-hero-team { min-width: 0; }
.hero-team-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hero-team-heading > span { color: #5b5b50; font-size: 15px; letter-spacing: .08em; font-weight: 600; }
.hero-team-heading > small { color: #9b906f; font-size: 8px; letter-spacing: .14em; }
.hero-clinician-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-clinician { display: flex; align-items: center; background: #fff; border: 1px solid #e9e6dd; border-radius: 10px; text-align: left; padding: 0; min-width: 0; overflow: hidden; transition: border-color .18s, transform .18s; }
.hero-clinician:hover { transform: translateY(-2px); border-color: #b7a169; }
.hero-clinician-photo { width: 88px; height: 150px; display: flex; align-items: center; justify-content: center; background: #eeeee8; flex-shrink: 0; overflow: hidden; }
.hero-clinician-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-lin-photo { position: relative; background: #eeeee8; }
.hero-clinician-photo.hero-lin-photo img { position: absolute; width: 185%; max-width: none; height: auto; left: 50%; top: -4px; transform: translateX(-50%); }
.hero-clinician-copy { display: block; padding: 12px 9px; min-width: 0; }
.hero-clinician-copy strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.55; letter-spacing: .02em; color: #414439; white-space: nowrap; }
.hero-clinician-copy strong small { display: block; font-size: 10px; font-weight: 400; color: #858173; margin-top: 3px; }
.hero-clinician-copy > span { display: block; color: #8b723c; font-size: 10px; line-height: 1.8; margin-top: 9px; white-space: nowrap; }
.hero-team-note { margin: 10px 0 0; font-size: 10px; color: #8d887b; text-align: right; }
.family-paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e7e1d4; padding-block: 21px 26px; }
.family-path { display: flex; align-items: center; gap: 13px; padding: 0 28px; position: relative; min-width: 0; }
.family-path:first-child { padding-left: 0; }
.family-path:last-child { padding-right: 0; }
.family-path + .family-path { border-left: 1px solid #e7e1d4; }
.family-path-symbol { display: flex; width: 43px; height: 43px; align-items: center; justify-content: center; background: #f4e8bc; border-radius: 50%; color: #846a35; flex-shrink: 0; }
.family-path-symbol .icon { width: 23px; height: 23px; }
.family-path b { display: block; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.family-path small { display: block; font-size: 11px; color: #8d8777; line-height: 1.8; margin-top: 3px; }
.family-path > .icon { margin-left: auto; color: #9c8960; width: 17px; height: 17px; }
.family-path:hover b { color: #8b6729; }
.medical-hero + .quick-links { margin-top: 20px; border: 1px solid #ebe5d8; box-shadow: 0 6px 20px #62481908; }
.brand-values { border-left: 4px solid var(--yellow); background: #fbf8ed; padding: 40px 38px; border-radius: 0 16px 16px 0; }
.about-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.brand-values, .about-copy { min-width: 0; }
.brand-values > h2 { font-family: 'Noto Serif CJK TC', 'Songti TC', 'PMingLiU', serif; font-size: 38px; line-height: 1.75; letter-spacing: .08em; color: #62583e; margin: 16px 0 22px; }
.brand-values .team-wordmark { width: 270px; max-width: 100%; }
.brand-value-locations { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid #e4ddc8; padding-top: 20px; margin-top: 25px; font-size: 12px; color: #8a7952; }
.brand-value-locations span { display: flex; align-items: center; gap: 5px; }
.brand-value-locations .icon { width: 16px; height: 16px; }
.doctor-card[id] { scroll-margin-top: 140px; }
@media (min-width: 1500px) {
  .medical-hero-main { padding-block: 58px 42px; }
  .hero-clinician-photo { width: 98px; height: 164px; }
  .hero-clinician-copy { padding: 12px; }
}
@media (max-width: 1200px) {
  .header-inner { padding-inline: 24px; gap: 18px; }
  .brand .brand-logo { width: 65px; }
  .brand .team-wordmark { width: 224px; }
  .desktop-nav { gap: 13px; font-size: 12px; }
  .medical-hero-main { gap: 30px; grid-template-columns: 1.1fr 1fr; }
  .medical-hero h1 { font-size: 36px; }
  .medical-hero-copy > p { font-size: 13px; }
  .hero-clinician-photo { width: 78px; height: 138px; }
  .hero-clinician-copy strong { font-size: 13px; }
  .hero-clinician-copy > span { font-size: 9px; }
  .medical-hero .hero-buttons .button { padding-inline: 15px; font-size: 12px; }
  .family-path { padding-inline: 20px; gap: 10px; }
  .family-path small { font-size: 10px; }
}
@media (max-width: 1000px) {
  .brand .team-wordmark { width: 245px; }
  .medical-hero-main { grid-template-columns: 1fr 1fr; padding-top: 34px; gap: 24px; }
  .medical-kicker { font-size: 10px; letter-spacing: .06em; gap: 8px; }
  .medical-kicker i { width: 18px; }
  .medical-hero h1 { font-size: 30px; }
  .medical-hero-copy > p { font-size: 12px; }
  .medical-hero .hero-buttons { flex-direction: column; align-items: flex-start; }
  .medical-hero .hero-buttons .button { min-height: 43px; padding: 9px 16px; }
  .hero-clinician { flex-direction: column; }
  .hero-clinician-photo { width: 100%; height: 115px; }
  .hero-clinician-photo img { width: 100%; object-fit: contain; }
  .hero-clinician-copy { width: 100%; padding: 8px 11px; }
  .hero-clinician-copy strong { font-size: 13px; }
  .hero-clinician-copy strong small { display: inline; margin-left: 7px; }
  .hero-clinician-copy > span { font-size: 10px; margin-top: 1px; }
  .hero-team-heading > span { font-size: 12px; }
  .hero-team-heading > small { display: none; }
  .hero-team-note { font-size: 9px; }
  .hero-clinics { display: block; font-size: 10px; line-height: 1.8; margin-top: 18px; }
  .hero-clinics > span { display: block; }
  .hero-clinics > i { display: none; }
  .family-paths { padding-block: 20px; }
  .family-path { padding-inline: 14px; gap: 9px; }
  .family-path-symbol { width: 32px; height: 32px; }
  .family-path-symbol .icon { width: 18px; height: 18px; }
  .family-path b { font-size: 13px; }
  .family-path small { font-size: 9px; }
  .family-path > .icon { display: none; }
}
@media (max-width: 760px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 100px; padding: 12px 16px; gap: 5px 9px; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .header-right { display: contents; }
  .header-navigation { grid-column: 2; grid-row: 1; gap: 0; }
  .header-clinic-names { grid-column: 1 / -1; grid-row: 2; justify-self: end; font-size: 10px; gap: 10px; letter-spacing: .02em; }
  .header-clinic-names > span + span { padding-left: 10px; }
  .brand { gap: 9px; flex: 1; min-width: 0; }
  .brand .brand-logo { width: 51px; flex-shrink: 0; }
  .brand .team-wordmark { width: 200px; max-width: 100%; }
  .brand-identity { max-width: 200px; min-width: 0; }
  .header-booking { display: none; }
  .menu-toggle { flex-shrink: 0; }
  .medical-hero { margin: 12px 12px 0; border-radius: 16px; border-top-width: 3px; }
  .medical-hero-main { display: block; width: calc(100% - 40px); padding-block: 25px 16px; }
  .medical-kicker { font-size: 10px; margin-bottom: 15px; letter-spacing: .09em; }
  .medical-hero h1 { font-size: clamp(27px, 7.1vw, 33px); line-height: 1.6; margin-bottom: 12px; letter-spacing: .01em; }
  .medical-hero-copy > p { font-size: 12px; line-height: 1.9; margin-bottom: 18px; }
  .medical-hero .hero-buttons { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .medical-hero .hero-buttons .button { padding: 10px 12px; min-height: 43px; font-size: 11px; gap: 7px; }
  .medical-hero .hero-buttons .button .icon { width: 15px; height: 15px; }
  .hero-clinics { display: flex; gap: 9px; margin-top: 14px; font-size: 8px; }
  .hero-clinics > span { display: inline; }
  .hero-clinics > i { display: block; }
  .medical-hero-team { margin-top: 23px; }
  .hero-team-heading { margin-bottom: 10px; }
  .hero-team-heading > span { font-size: 12px; letter-spacing: .03em; }
  .hero-team-heading > small { display: block; font-size: 7px; }
  .hero-clinician-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .hero-clinician { border-radius: 7px; }
  .hero-clinician-photo { height: 82px; }
  .hero-clinician-copy { padding: 7px 3px 8px; text-align: center; }
  .hero-clinician-copy strong { font-size: 11px; letter-spacing: 0; }
  .hero-clinician-copy strong small { display: none; }
  .hero-clinician-copy > span { font-size: 8px; margin-top: 4px; letter-spacing: -.03em; white-space: normal; }
  .hero-team-note { font-size: 8px; margin-top: 7px; }
  .family-paths { width: calc(100% - 40px); padding-block: 14px 17px; gap: 8px; }
  .family-path, .family-path:first-child, .family-path:last-child { flex-direction: column; align-items: flex-start; padding: 0; gap: 7px; border: 0; }
  .family-path-symbol { width: 28px; height: 28px; }
  .family-path-symbol .icon { width: 16px; height: 16px; }
  .family-path b { font-size: 11px; letter-spacing: 0; }
  .family-path small { font-size: 8px; margin-top: 3px; line-height: 1.8; max-width: 100px; }
  .medical-hero + .quick-links { margin-top: 14px; }
  .brand-values { padding: 28px; }
  .about-section { grid-template-columns: minmax(0, 1fr); }
  .brand-values > h2 { font-size: 31px; margin-bottom: 20px; line-height: 1.65; }
  .brand-values .team-wordmark { width: 255px; }
  .brand-value-locations { gap: 16px; font-size: 11px; padding-top: 16px; margin-top: 19px; }
  .footer-wordmark { width: 250px; margin: 12px 0 10px; }
  .doctor-card[id] { scroll-margin-top: 108px; }
}
@media (max-width: 370px) {
  .header-inner { padding-inline: 12px; gap: 5px; }
  .brand { gap: 7px; }
  .brand .brand-logo { width: 44px; }
  .brand .team-wordmark { width: 181px; }
  .brand-identity { max-width: 181px; }
  .header-clinic-names { font-size: 9px; }
  .medical-hero-main, .family-paths { width: calc(100% - 32px); }
  .medical-hero h1 { font-size: 26px; }
  .medical-kicker { font-size: 9px; letter-spacing: .05em; }
  .medical-hero-copy > p { font-size: 10px; }
  .medical-hero .hero-buttons .button { font-size: 10px; padding-inline: 9px; gap: 5px; }
  .hero-clinician-grid { gap: 5px; }
  .hero-clinician-photo { height: 73px; }
  .hero-clinician-copy strong { font-size: 10px; }
  .hero-clinician-copy > span { font-size: 7px; }
  .family-path b { font-size: 10px; }
  .family-path small { font-size: 7px; }
}

/* Keep the existing director mascot fully visible in the home card. */
.hero-clinician-photo.hero-brand-photo img { object-fit: contain; padding: 8px; }

/* The care overview covers the full clinical team. */
.symptom-grid { gap: 18px; }
.symptom-card { padding: 28px 20px 24px; }
.symptom-card h3 { font-size: 21px; }
.symptom-card p { font-size: 13px; }
@media (max-width: 760px) {
  .symptom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .symptom-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 18px 16px; }
  .symptom-card:last-child { grid-column: 1 / -1; }
  .symptom-card .symptom-icon { width: 38px; height: 38px; margin: 0 0 10px; }
  .symptom-card .symptom-icon .icon { width: 23px; height: 23px; }
  .symptom-card h3 { font-size: 16px; line-height: 1.5; margin: 0 0 6px; }
  .symptom-card p { font-size: 12px; line-height: 1.7; margin: 0 0 12px; flex: 1; }
  .symptom-card .text-link { margin-top: auto; font-size: 11px; gap: 7px; }
}

/* Frame the original portrait by frame height, including narrow desktop windows. */
.hero-clinician-photo.hero-lin-photo img,
.portrait.lin-photo > img,
.doctor-modal-header .portrait.lin-photo > img {
  position: absolute;
  height: 180%;
  width: auto;
  max-width: none;
  max-height: none;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
}

.service-band .section-head h2 { text-wrap: balance; }
@media (max-width: 370px) { .service-band .section-head h2 { font-size: 24px; } }

/* Preserve Dr. Chang's full face in the narrow desktop photo column. */
.hero-clinician[data-doctor="chang"] .hero-clinician-photo img,
#doctor-chang .portrait img,
.doctor-modal-header .portrait img[src="assets/chang.jpeg"] {
  object-position: right top;
}
@media (max-width: 1000px) {
  .hero-clinician[data-doctor="chang"] .hero-clinician-photo img {
    object-position: center top;
  }
}

/* Give each narrative idea its own readable paragraph. */
.about-copy > p { line-height: 1.95; margin: 0 0 18px; max-width: 38em; text-wrap: pretty; }
.about-copy > .button { margin-top: 4px; }
@media (max-width: 760px) {
  .about-copy > p { font-size: 14px; line-height: 1.95; margin-bottom: 16px; }
}
