/* Shared FAQ language. Answers remain readable without JavaScript. */
body .faq-wrap, body .entry-content .schema-faq { display: grid; gap: 16px; }
body .faq-card, body .entry-content .schema-faq-section {
  position: relative;
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dce5e9;
  border-left: 4px solid #6ec5cc;
  border-radius: 4px 16px 16px 4px;
  background: #fff;
  box-shadow: 0 4px 16px #1f2c5c06;
  overflow-wrap: anywhere;
  scroll-margin-top: 120px;
}
body .faq-card h3, body .entry-content .schema-faq-question {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  color: #1f2c5c;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
  font-weight: 700;
}
body .faq-card .q, body .entry-content .schema-faq-question::before {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: #e7f4f4;
  color: #26636c;
  font: 700 16px/1 Georgia, serif;
  vertical-align: middle;
}
body .entry-content .schema-faq-question::before { content: 'Q'; }
body .faq-card p, body .entry-content .schema-faq-answer {
  margin: 0;
  padding: 0;
  color: #455166;
  font-size: 16px;
  line-height: 1.95;
}
/* Keep the legacy plugin's keyboard/expanded state behavior; override only its skin. */
body .entry-content .sp-easy-accordion > .sp-ea-single {
  margin: 0 0 16px !important;
  border: 1px solid #dce5e9 !important;
  border-left: 4px solid #6ec5cc !important;
  border-radius: 4px 16px 16px 4px;
  background: #fff !important;
  overflow: hidden;
}
body .entry-content .sp-easy-accordion .ea-header a {
  padding: 24px !important;
  color: #1f2c5c !important;
  font-size: 18px;
  line-height: 1.65;
}
body .entry-content .sp-easy-accordion .ea-body {
  padding: 0 24px 24px !important;
  color: #455166 !important;
  background: #fff !important;
  font-size: 16px;
  line-height: 1.95;
}
body .entry-content .sp-easy-accordion .ea-header a:focus-visible {
  outline: 3px solid #26636c;
  outline-offset: -5px;
}
/* Original doctor recommendations / credentials, with the existing portrait. */
body .entry-content .uk-doctor-section,
body .entry-content .uk-doctor-layout {
  position: relative;
  max-width: 1120px;
  margin: 48px auto !important;
  padding: clamp(24px, 4vw, 44px) !important;
  border: 1px solid #d9e5e8;
  border-top: 5px solid #1f2c5c;
  border-radius: 20px;
  background: #f0f6f7 !important;
  color: #344257 !important;
  overflow-wrap: anywhere;
}
body .entry-content .uk-doctor-section > .uk-doctor-layout {
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}
body .entry-content .uk-doctor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .42fr);
  align-items: end;
  gap: clamp(24px, 4vw, 44px);
}
body .entry-content .uk-doctor-layout > .wp-block-column { min-width: 0; width: auto; }
body .entry-content :is(.uk-doctor-section, .uk-doctor-layout) :is(h2,h3) {
  margin-top: 0;
  color: #1f2c5c !important;
  font-family: 'Noto Serif TC', Georgia, serif;
  line-height: 1.55;
}
body .entry-content :is(.uk-doctor-section, .uk-doctor-layout) li { margin-bottom: 12px; }
body .entry-content :is(.uk-doctor-section, .uk-doctor-layout) li::marker { color: #327c83; }
body .entry-content .uk-doctor-layout blockquote {
  margin: 24px 0 0;
  padding: 20px 24px;
  border: 0;
  border-left: 3px solid #519ca4;
  border-radius: 0 12px 12px 0;
  background: #fff;
  color: #344257;
  font-size: 16px;
  line-height: 1.9;
}
body .entry-content .uk-doctor-layout blockquote p { margin: 0; }
body .entry-content .uk-doctor-portrait { align-self: end; }
body .entry-content .uk-doctor-portrait figure { display: block; width: 100%; margin: 0 !important; }
body .entry-content .uk-doctor-portrait img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  object-fit: contain !important;
}
body .doctor-card { border-top: 4px solid #6ec5cc; background: #f0f6f7; }
.doctor-full { display:grid; grid-template-columns:minmax(240px, 1fr) minmax(0, 2fr); gap:48px; align-items:start; }
.doctor-full-portrait { min-width:0; }
.doctor-full-portrait img { display:block; width:100%; height:auto; border-radius:16px; }
.doctor-full-portrait p { color:var(--c-teal-dark); margin:24px 0 4px; font-weight:700; }
.doctor-full-portrait h3 { font-size:30px; margin:0; }
.doctor-full-details { min-width:0; }
.doctor-credentials-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.doctor-full-group { border-top:1px solid #cbdcde; padding:24px 0; }
.doctor-credentials-grid .doctor-full-group { border-top:4px solid #6ec5cc; }
.doctor-full-group h3 { font-size:22px; color:var(--c-primary); margin:0 0 16px; }
.doctor-full-group ul { padding-left:20px; margin:0; line-height:1.9; }
.doctor-full-group li { margin-bottom:8px; overflow-wrap:anywhere; }
.doctor-full-group li::marker { color:var(--c-teal-dark); }
.doctor-specialty-links { display:flex; flex-wrap:wrap; gap:10px; }
.doctor-specialty-links a { display:inline-flex; align-items:center; min-height:40px; padding:8px 14px; border:1px solid #9fc7ca; border-radius:999px; background:#f3f8f8; color:var(--c-primary); font-weight:700; line-height:1.35; text-decoration:none; }
.doctor-specialty-links a:hover { border-color:var(--c-teal-dark); background:var(--c-teal-dark); color:#fff; }
.doctor-specialty-links a:focus-visible { outline:3px solid var(--c-teal-dark); outline-offset:2px; }
.doctor-publication-links { display:flex; flex-wrap:wrap; gap:12px; }
.doctor-publication-links a { display:inline-flex; align-items:center; gap:16px; min-height:44px; padding:8px 16px; border:1px solid var(--c-teal-dark); border-radius:6px; color:var(--c-primary); text-decoration:none; }
.doctor-publication-links a:hover { background:#e1eeee; }
.doctor-publication-links a:focus-visible { outline:3px solid var(--c-teal-dark); outline-offset:4px; }
@media(max-width:768px) {
  .doctor-full { grid-template-columns:minmax(0,1fr); gap:32px; }
  .doctor-full-portrait { width:min(100%,360px); margin-inline:auto; }
}
@media(max-width:560px) {
  .doctor-credentials-grid { grid-template-columns:minmax(0,1fr); }
}

/* Dedicated clinic director profile. */
.doctor-profile-hero { background:linear-gradient(135deg,#152143 0%,#263d73 100%); color:#fff; overflow:hidden; }
.doctor-profile-hero-inner { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); gap:clamp(36px,6vw,88px); align-items:center; padding-top:clamp(56px,8vw,104px); }
.doctor-profile-kicker { margin:0 0 14px; color:var(--c-teal); font-size:14px; font-weight:800; letter-spacing:.2em; }
.doctor-profile-hero h1 { margin:0; color:#fff; font-size:clamp(42px,6vw,72px); }
.doctor-profile-lede { max-width:720px; margin:20px 0 0; color:rgba(255,255,255,.84); font-size:clamp(17px,2vw,20px); line-height:1.9; }
.doctor-profile-highlights { display:flex; flex-wrap:wrap; gap:10px; margin:26px 0 0; padding:0; list-style:none; }
.doctor-profile-highlights li { padding:7px 12px; border:1px solid rgba(110,197,204,.5); border-radius:999px; background:rgba(255,255,255,.06); font-size:13px; }
.doctor-profile-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.doctor-profile-hero .btn-outline { border-color:rgba(255,255,255,.7); color:#fff; }
.doctor-profile-hero .btn-outline:hover { background:#fff; color:var(--c-primary); }
.doctor-profile-hero-photo { align-self:end; margin:0; }
.doctor-profile-hero-photo img { display:block; width:100%; max-height:560px; object-fit:cover; object-position:center 22%; border-radius:20px 20px 0 0; box-shadow:0 28px 60px rgba(0,0,0,.26); }
.doctor-profile-nav { position:sticky; top:80px; z-index:25; border-bottom:1px solid var(--c-border); background:rgba(255,255,255,.96); backdrop-filter:blur(12px); }
.doctor-profile-nav .wrap { display:flex; gap:28px; overflow-x:auto; scrollbar-width:none; }
.doctor-profile-nav a { flex:none; padding:16px 0 13px; border-bottom:3px solid transparent; color:var(--c-text); font-size:14px; font-weight:800; }
.doctor-profile-nav a:hover { border-bottom-color:var(--c-teal); color:var(--c-primary); }
.doctor-profile-page #specialties { scroll-margin-top:150px; }
.doctor-care-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.doctor-care-grid article { padding:30px; border-top:4px solid var(--c-teal); }
.doctor-care-grid span { color:var(--c-teal-dark); font-family:var(--font-serif); font-size:28px; font-weight:800; }
.doctor-care-grid h3 { margin:16px 0 10px; font-size:21px; }
.doctor-care-grid p { margin:0; color:var(--c-text-light); line-height:1.85; }
.doctor-media-grid { display:grid; grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr); gap:clamp(32px,6vw,72px); align-items:center; }
.doctor-media-grid .kicker { margin:0 0 10px; color:var(--c-teal-dark); font-weight:800; letter-spacing:.18em; }
.doctor-media-grid h2 { margin:0 0 18px; font-size:clamp(28px,4vw,40px); }
.doctor-media-grid p { color:var(--c-text-light); line-height:1.9; }
.doctor-video { position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:16px; box-shadow:0 18px 46px rgba(31,44,92,.18); }
.doctor-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.doctor-visit-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; border:1px solid var(--c-border); background:var(--c-border); }
.doctor-visit-list div { display:flex; flex-direction:column; gap:8px; padding:24px; background:#fff; }
.doctor-visit-list strong { color:var(--c-primary); font-size:18px; }
.doctor-visit-list span { color:var(--c-text-light); line-height:1.75; }
.doctor-profile-faq { max-width:880px; margin:64px auto 0; }
.doctor-profile-faq > h2 { text-align:center; margin-bottom:26px; }
.doctor-profile-faq details { border-top:1px solid var(--c-border); background:#fff; }
.doctor-profile-faq details:last-child { border-bottom:1px solid var(--c-border); }
.doctor-profile-faq summary { padding:20px 48px 20px 18px; cursor:pointer; color:var(--c-primary); font-weight:800; position:relative; list-style:none; }
.doctor-profile-faq summary::-webkit-details-marker { display:none; }
.doctor-profile-faq summary::after { content:'＋'; position:absolute; right:18px; color:var(--c-teal-dark); }
.doctor-profile-faq details[open] summary::after { content:'－'; }
.doctor-profile-faq details p { margin:0; padding:0 18px 22px; color:var(--c-text-light); line-height:1.85; }
.doctor-final-cta { display:flex; align-items:center; justify-content:space-between; gap:32px; margin-top:64px; padding:32px 36px; background:var(--c-primary); color:#fff; }
.doctor-final-cta h2 { margin:0 0 6px; color:#fff; font-size:26px; }
.doctor-final-cta p { margin:0; color:rgba(255,255,255,.78); }
.doctor-final-cta .btn { flex:none; background:#fff; color:var(--c-primary); }
@media(max-width:900px) {
  .doctor-profile-hero-inner { grid-template-columns:minmax(0,1fr) minmax(260px,.75fr); }
  .doctor-care-grid { grid-template-columns:minmax(0,1fr); }
  .doctor-media-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:700px) {
  .doctor-profile-hero-inner { grid-template-columns:minmax(0,1fr); padding-top:48px; }
  .doctor-profile-hero-photo { width:min(100%,420px); justify-self:center; }
  .doctor-profile-nav { top:80px; }
  .doctor-profile-nav .wrap { gap:22px; }
  .doctor-visit-list { grid-template-columns:minmax(0,1fr); }
  .doctor-final-cta { align-items:flex-start; flex-direction:column; padding:28px 24px; }
  .doctor-final-cta .btn { width:100%; }
}
@media (max-width: 700px) {
  body .entry-content .uk-doctor-layout { grid-template-columns: minmax(0, 1fr); }
  body .entry-content .uk-doctor-layout > .uk-doctor-portrait { width: min(220px, 75%); justify-self: center; }
  body .entry-content .uk-doctor-layout blockquote { padding: 18px; }
  body .entry-content .uk-doctor-section, body .entry-content .uk-doctor-layout { margin-block: 32px !important; }
}
@media print {
  body .entry-content .sp-easy-accordion .sp-collapse { display: block !important; height: auto !important; }
  body .faq-card, body .schema-faq-section { break-inside: avoid; box-shadow: none; }
}
