/* Team pages */
.team-page { padding: 120px 0 80px; }
.team-page h1 { font-family: 'Playfair Display', serif; font-size: 2.4rem; text-align: center; margin-bottom: 18px; }
.team-page-intro {
  max-width: 820px; margin: 0 auto; color: #555; font-size: 0.98rem;
  line-height: 1.7; text-align: center;
}
.team-section-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; text-align: center; margin: 56px 0 32px; color: #666; }
.team-section-title--medical { margin-top: 40px; color: #333; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }

.team-card {
  display: flex; flex-direction: column; text-align: left;
  padding: 0; border-radius: 16px; background: #f8f8f8; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
a.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
a.team-card:focus-visible { outline: 3px solid #d4af37; outline-offset: 3px; }

.team-card-photo-wrap {
  width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #f0f0f0;
  flex: 0 0 auto;
}
.team-card-photo {
  width: 100%; height: 100%; border-radius: 0; object-fit: cover;
  display: block;
}

.team-page-photo {
  max-width: 1100px; margin: 56px auto 0;
}
.team-page-photo img {
  display: block; width: 100%; height: auto; max-height: 680px;
  border-radius: 16px; object-fit: cover; object-position: center top;
}
.team-page-photo figcaption {
  margin-top: 12px; color: #777; font-size: 0.82rem; line-height: 1.5; text-align: center;
}

.team-cta {
  max-width: 900px; margin: 48px auto 0; padding: 28px 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
  border: 1px solid #eadfae; border-radius: 18px; background: #fbf8ef;
  box-shadow: 0 8px 24px rgba(80, 65, 25, 0.05); text-align: left;
}
.team-cta-copy { display: grid; gap: 6px; }
.team-cta-heading {
  margin: 0; color: #333; font-family: 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 600; line-height: 1.45;
}
.team-cta-text { margin: 0; color: #666; font-size: 0.92rem; line-height: 1.55; }
.team-cta .btn {
  min-width: 270px; display: inline-flex; align-items: center; justify-content: center;
}

/* Detail panel */
.team-detail-backdrop {
  display: flex; min-height: calc(100vh - 160px);
  margin-top: 80px;
}
.team-detail-list {
  width: 30%; overflow-y: auto; position: sticky; top: 80px; height: calc(100vh - 80px);
  padding: 32px 20px 40px; background: #f9f9f9;
  border-right: 1px solid #eee;
}
.team-detail-group + .team-detail-group { margin-top: 24px; }
.team-detail-group-title {
  margin: 0 0 8px; padding-left: 8px; color: #888; font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  line-height: 1.4; text-align: left; text-transform: uppercase;
}
.team-detail-list ul { list-style: none; padding: 0; margin: 0; }
.team-detail-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 8px; text-decoration: none; color: #555;
  transition: background 0.15s;
}
.team-detail-list li a:hover { background: #f0ede4; }
.team-detail-list li.active a { background: #f0ede4; color: #333; font-weight: 500; }
.team-detail-list li img {
  width: 36px; height: 48px; flex: 0 0 36px;
  border-radius: 6px; object-fit: cover;
}
.team-detail-list li span { font-size: 0.85rem; }

.team-detail-panel {
  width: 70%; min-height: calc(100vh - 80px);
  background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}

.team-detail-nav {
  position: sticky; top: 80px; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  min-height: 68px; padding: 14px 32px; background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #eee; backdrop-filter: blur(8px);
}
.team-detail-back-top {
  color: #555; font-size: 0.85rem; font-weight: 500; text-decoration: none;
  transition: color 0.2s;
}
.team-detail-back-top:hover { color: #b9982f; }
.team-detail-pager { display: flex; gap: 8px; }
.team-detail-pager-link {
  min-height: 38px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #ddd; border-radius: 999px; color: #444; font-size: 0.8rem;
  font-weight: 500; line-height: 1; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.team-detail-pager-link:hover { border-color: #d4af37; color: #8b7020; }

.team-detail-content { max-width: 900px; margin: 0 auto; padding: 48px 56px 72px; }
.team-detail-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; }
.team-detail-photo {
  width: 260px; aspect-ratio: 3 / 4; border-radius: 16px; object-fit: cover;
  display: block; box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.team-detail-summary { align-self: center; min-width: 0; }
.team-detail-content h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15; text-align: left; margin: 0 0 10px;
}
.team-detail-title {
  color: #8b7020; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  line-height: 1.5; margin: 0 0 16px; text-transform: uppercase;
}
.team-detail-langs { display: flex; gap: 8px; font-size: 1.25rem; margin-bottom: 24px; }

.team-detail-badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.team-detail-badges li {
  font-size: 0.8rem; padding: 4px 12px; border-radius: 20px;
  background: #f8f4e8; color: #8b7020; border: 1px solid #e8ddb5;
}

.team-detail-body { max-width: 720px; margin: 48px auto 0; padding-top: 36px; border-top: 1px solid #eee; }
.team-detail-bio, .team-detail-philosophy { margin-bottom: 20px; line-height: 1.7; color: #333; }
.team-detail-body h2 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.3; text-align: left; }
.team-detail-body p { margin: 0 0 14px; }
.team-detail-body p:last-child { margin-bottom: 0; }
.team-detail-bio-toggle { display: none; }
.team-detail-philosophy { font-style: italic; color: #555; }
.team-detail-quote { margin: 24px 0; padding: 16px 24px; border-left: 3px solid #d4af37; font-style: italic; color: #555; }
.team-detail-quote p { margin: 0; }
.team-detail-book {
  width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: #d4af37; border-radius: 999px; color: #fff; font-size: 0.9rem; font-weight: 600;
  line-height: 1.35; padding: 12px 22px; text-align: center; text-decoration: none;
  box-shadow: 0 8px 20px rgba(180,143,32,0.2); transition: background 0.2s, transform 0.2s;
}
.team-detail-book:hover { background: #b9982f; transform: translateY(-1px); }
.team-detail-book:focus-visible, .team-detail-pager-link:focus-visible, .team-detail-back-top:focus-visible {
  outline: 3px solid rgba(212,175,55,0.55); outline-offset: 3px;
}

.team-profile-section {
  max-width: 720px; margin: 52px auto 0; padding-top: 36px; border-top: 1px solid #eee;
}
.team-profile-section h2 {
  margin: 0 0 24px; color: #333; font-family: 'Playfair Display', serif;
  font-size: 1.55rem; line-height: 1.25; text-align: left;
}
.team-certificates-carousel { margin-top: 16px; }
.team-certificates-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); gap: 12px;
  overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.team-certificates-track::-webkit-scrollbar { display: none; }
.team-certificates-track:focus-visible { outline: 3px solid rgba(212,175,55,0.35); outline-offset: 3px; }
.team-certificate-card {
  position: relative; min-width: 0; overflow: hidden; background: #fafafa; border: 1px solid #ececec;
  border-radius: 12px; scroll-snap-align: start;
}
.team-certificate-card--interactive { cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.team-certificate-card--interactive:hover { border-color: #d8c784; box-shadow: 0 8px 22px rgba(0,0,0,0.06); transform: translateY(-1px); }
.team-certificate-card--interactive:focus-within { outline: 3px solid rgba(212,175,55,0.45); outline-offset: 2px; }
.team-certificate-open {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: inherit; background: transparent; cursor: pointer;
}
.team-certificate-card--primary {
  display: grid; grid-template-columns: 180px minmax(0, 1fr);
  background: #fffdf7; border-color: #e7d8a6;
}
.team-certificate-preview {
  min-height: 150px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #f1f1f1;
}
.team-certificate-card:not(.team-certificate-card--primary) .team-certificate-preview { aspect-ratio: 4 / 3; }
.team-certificate-preview img { width: 100%; height: 100%; object-fit: contain; }
.team-certificate-document {
  width: 72px; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; justify-content: center;
  padding: 10px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06); color: #8b7020; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.08em;
}
.team-certificates-track .team-certificate-preview { min-height: 0; aspect-ratio: 4 / 3; }
.team-certificates-track .team-certificate-info { padding: 11px; }
.team-certificates-track .team-certificate-info h3 { font-size: 0.88rem; }
.team-certificates-track .team-certificate-meta { margin-bottom: 8px; font-size: 0.74rem; }
.team-certificates-track .team-document-link { font-size: 0.72rem; }
.team-certificate-info { padding: 18px; }
.team-certificate-card--primary .team-certificate-info { align-self: center; padding: 24px; }
.team-certificate-kind {
  margin: 0 0 7px; color: #8b7020; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.team-certificate-info h3 {
  margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: 1.05rem; line-height: 1.35;
}
.team-certificate-meta { margin: 0 0 14px; color: #777; font-size: 0.82rem; }
.team-document-link {
  display: inline-flex; align-items: center; gap: 5px; color: #8b7020;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
}
.team-document-link:hover { color: #b9982f; text-decoration: underline; }
.team-document-link:focus-visible { outline: 3px solid rgba(212,175,55,0.55); outline-offset: 3px; }

.team-certificate-dialog {
  width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px);
  margin: auto; padding: 0; overflow: visible; border: 0; border-radius: 16px; background: transparent;
}
.team-certificate-dialog::backdrop { background: rgba(20,20,20,0.72); backdrop-filter: blur(3px); }
.team-certificate-dialog-card {
  position: relative; display: flex; max-height: calc(100vh - 32px); flex-direction: column;
  padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,0.3);
}
.team-certificate-dialog-card h3 {
  margin: 0 48px 14px 0; overflow: hidden; color: #333; font-family: 'Playfair Display', serif;
  font-size: 1.1rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap;
}
.team-certificate-dialog-card h3[hidden] { display: none; }
.team-certificate-dialog-count {
  position: absolute; z-index: 2; top: 18px; left: 50%; padding: 4px 9px; transform: translateX(-50%);
  border-radius: 999px; background: rgba(255,255,255,0.9); color: #666; font-size: 0.72rem; font-weight: 600;
}
.team-certificate-dialog-close {
  position: absolute; z-index: 2; top: 10px; right: 12px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: #f3f3f3; color: #444; cursor: pointer; font-size: 1.5rem; line-height: 1;
}
.team-certificate-dialog-close:hover { background: #e9e9e9; }
.team-certificate-dialog-close:focus-visible { outline: 3px solid rgba(212,175,55,0.55); outline-offset: 2px; }
.team-certificate-dialog-arrow {
  position: absolute; z-index: 2; top: 50%; width: 46px; height: 46px; transform: translateY(-50%);
  border: 1px solid rgba(0,0,0,0.1); border-radius: 50%; background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 18px rgba(0,0,0,0.16); color: #444; cursor: pointer; font-size: 2rem; line-height: 1;
}
.team-certificate-dialog-arrow--previous { left: 0; transform: translate(-50%, -50%); }
.team-certificate-dialog-arrow--next { right: 0; transform: translate(50%, -50%); }
.team-certificate-dialog-arrow:hover { border-color: #d4af37; color: #8b7020; background: #fff; }
.team-certificate-dialog-arrow:focus-visible { outline: 3px solid rgba(212,175,55,0.55); outline-offset: 2px; }
.team-certificate-dialog-arrow[hidden] { display: none; }
.team-certificate-dialog-image-wrap {
  min-height: 0; display: flex; flex: 1; align-items: center; justify-content: center; overflow: auto;
  border-radius: 10px; background: #f1f1f1;
}
.team-certificate-dialog-image-wrap img {
  display: block; max-width: 100%; max-height: calc(100vh - 115px); width: auto; height: auto; object-fit: contain;
}

@media (max-width: 1050px) {
  .team-certificate-dialog-arrow--previous { left: 18px; transform: translateY(-50%); }
  .team-certificate-dialog-arrow--next { right: 18px; transform: translateY(-50%); }
}

@media (max-width: 580px) {
  .team-certificate-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .team-certificate-dialog-card { max-height: calc(100vh - 16px); padding: 12px; }
  .team-certificate-dialog-card h3 { margin: 4px 44px 10px 4px; font-size: 0.95rem; }
  .team-certificate-dialog-count { top: 16px; }
  .team-certificate-dialog-arrow { width: 42px; height: 42px; }
  .team-certificate-dialog-arrow--previous { left: 18px; transform: translateY(-50%); }
  .team-certificate-dialog-arrow--next { right: 18px; transform: translateY(-50%); }
  .team-certificate-dialog-image-wrap img { max-height: calc(100vh - 85px); }
}

.team-publications-list { list-style: none; margin: 0; padding: 0; }
.team-publication-item {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px;
  padding: 20px 0; border-bottom: 1px solid #eee;
}
.team-publication-item:first-child { padding-top: 0; }
.team-publication-item:last-child { padding-bottom: 0; border-bottom: 0; }
.team-publication-number { color: #c5a43b; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
.team-publication-content h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.45; }
.team-publication-content p { margin: 0 0 10px; color: #777; font-size: 0.84rem; }

.team-reviews-heading { margin-bottom: 16px; }
.team-reviews-heading h2 { margin: 0; }
.team-reviews-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.team-reviews-controls[hidden] { display: none; }
.team-reviews-controls > button {
  width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%; background: #fff;
  color: #555; cursor: pointer; font-size: 1rem; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.team-reviews-controls > button:hover:not(:disabled) { border-color: #d4af37; color: #8b7020; background: #fffdf7; }
.team-reviews-controls > button:disabled { opacity: 0.35; cursor: default; }
.team-reviews-controls > button:focus-visible { outline: 3px solid rgba(212,175,55,0.45); outline-offset: 2px; }
.team-reviews-dots { display: flex; align-items: center; justify-content: center; gap: 0; }
.team-reviews-dots button {
  display: grid; width: 20px; height: 20px; padding: 0; place-items: center;
  border: 0; background: transparent; cursor: pointer;
}
.team-reviews-dots button::before {
  width: 8px; height: 8px; border-radius: 50%; background: #ddd; content: ''; transition: background 0.2s, transform 0.2s;
}
.team-reviews-dots button:hover::before { background: #c8c8c8; transform: scale(1.15); }
.team-reviews-dots button.active::before { background: #d4af37; }
.team-reviews-dots button:focus-visible { outline: 3px solid rgba(212,175,55,0.45); outline-offset: 3px; }
.team-reviews-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); gap: 16px;
  overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.team-reviews-grid::-webkit-scrollbar { display: none; }
.team-reviews-grid[data-review-page-spacer]::after {
  display: block; content: ''; pointer-events: none;
}
.team-profile-services-heading { margin-bottom: 16px; }
.team-profile-services-heading h2 { margin-bottom: 0; }
.team-profile-services-groups { display: grid; gap: 16px; }
.team-profile-services-group {
  overflow: clip; border: 1px solid #e8e3d7; border-radius: 15px; background: #fbfaf6;
}
.team-profile-services-group summary {
  min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.team-profile-services-group summary::-webkit-details-marker { display: none; }
.team-profile-services-group summary:focus-visible { outline: 3px solid rgba(212,175,55,0.45); outline-offset: -3px; }
.team-profile-services-group h3 {
  flex: 1; margin: 0; color: #6f5a1e; font-family: Inter, sans-serif;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase;
}
.team-profile-services-chevron {
  display: block; width: 8px; height: 8px; margin: 0 3px 4px 5px;
  border-right: 1.5px solid #8c7227; border-bottom: 1.5px solid #8c7227;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.team-profile-services-group[open] .team-profile-services-chevron { transform: rotate(225deg); }
.team-profile-services-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 0; padding: 0 18px 18px; list-style: none;
}
.team-profile-services-grid a {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 15px; border: 1px solid #e7e3d7; border-radius: 11px; background: #fff;
  color: #333; font-size: 0.88rem; font-weight: 500; line-height: 1.4; text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.team-profile-services-grid a span:last-child { flex: 0 0 auto; color: #a28225; font-size: 1rem; }
.team-profile-services-grid a:hover {
  border-color: #d8c784; box-shadow: 0 7px 20px rgba(0,0,0,0.055); transform: translateY(-1px);
}
.team-profile-services-grid a:focus-visible { outline: 3px solid rgba(212,175,55,0.45); outline-offset: 2px; }

.team-review-card {
  position: relative; min-width: 0; min-height: 225px; display: flex; flex-direction: column;
  padding: 22px; overflow: hidden; border: 1px solid #e4ded0; border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #fbf8ef 100%);
  box-shadow: 0 8px 24px rgba(74, 61, 27, 0.045); cursor: pointer; scroll-snap-align: start;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.team-review-card::before {
  position: absolute; top: 6px; right: 16px; color: rgba(167, 132, 31, 0.13); content: '“';
  font-family: 'Playfair Display', serif; font-size: 4.6rem; line-height: 1; pointer-events: none;
}
.team-review-card:hover {
  border-color: #d2bd72; box-shadow: 0 13px 32px rgba(74, 61, 27, 0.1); transform: translateY(-2px);
}
.team-review-card:focus-within { outline: 3px solid rgba(212,175,55,0.45); outline-offset: -1px; }
.team-review-card--featured { border-color: #d9c37b; background: linear-gradient(145deg, #fffdf7, #f8f1dd); }
.team-review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.team-review-card .team-review-header { padding-right: 48px; }
.team-review-header strong { display: block; color: #292929; font-size: 0.98rem; line-height: 1.35; }
.team-review-header time { display: block; margin-top: 4px; color: #817d73; font-size: 0.74rem; }
.team-review-stars {
  width: fit-content; margin: 14px 0 12px; padding: 5px 9px 6px; border-radius: 999px;
  background: rgba(212, 166, 25, 0.11); color: #c68e00; font-size: 1.05rem;
  letter-spacing: 0.11em; line-height: 1;
}
.team-review-card blockquote { margin: 0; padding: 0; border: 0; color: #444; font-style: normal; }
.team-review-card blockquote p { margin: 0; white-space: pre-line; font-size: 0.88rem; line-height: 1.62; }
.team-review-preview p {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
}
.team-review-more {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  margin-top: auto; padding-top: 15px; color: #715a18; font-size: 0.78rem; font-weight: 650;
}
.team-review-more > span {
  width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 50%;
  background: #b48c18; color: #fff; font-size: 0.84rem; line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.team-review-card:hover .team-review-more > span { background: #987510; transform: translateX(2px); }
.team-review-open {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: inherit; background: transparent; cursor: pointer;
}
.team-review-dialog {
  position: fixed; inset: 0; width: min(620px, calc(100% - 32px)); max-height: min(82vh, 760px);
  margin: auto; padding: 0; border: 0;
  border-radius: 18px; background: transparent; color: #333; box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}
.team-review-dialog::backdrop { background: rgba(18,18,18,0.58); backdrop-filter: blur(3px); }
.team-review-dialog-card {
  position: relative; max-height: min(82vh, 760px); overflow-y: auto; padding: 30px;
  border: 1px solid #eee; border-radius: 18px; background: #fff;
}
.team-review-dialog-close {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px;
  border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #555; cursor: pointer; font-size: 1.25rem;
}
.team-review-dialog-close:hover { border-color: #d4af37; color: #8b7020; }
.team-review-dialog-close:focus-visible { outline: 3px solid rgba(212,175,55,0.45); outline-offset: 2px; }
.team-review-dialog .team-review-header { padding-right: 44px; }
.team-review-dialog .team-review-stars { margin: 18px 0 14px; font-size: 1.08rem; }
.team-review-dialog blockquote { margin: 0; padding: 0; border: 0; color: #333; font-style: normal; }
.team-review-dialog blockquote p { margin: 0; white-space: pre-line; font-size: 0.95rem; line-height: 1.75; }

@media (max-width: 1050px) and (min-width: 769px) {
  .team-detail-content { padding-inline: 36px; }
  .team-detail-hero { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .team-detail-photo { width: 220px; }
}

@media (max-width: 768px) {
  .team-page { padding: 100px 0 60px; }
  .team-page h1 { font-size: 1.8rem; margin-bottom: 14px; }
  .team-page-intro { font-size: 0.92rem; line-height: 1.65; }
  .team-section-title--medical { margin-top: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-card-photo { width: 100%; }
  .team-page-photo {
    width: 100vw; max-width: none;
    margin: 40px calc(50% - 50vw) 0;
  }
  .team-page-photo img { max-height: 420px; border-radius: 0; }
  .team-page-photo figcaption { padding-inline: 20px; }
  .team-cta {
    margin-top: 36px; padding: 24px; grid-template-columns: 1fr; gap: 22px; text-align: center;
  }
  .team-cta .btn { width: 100%; min-width: 0; }

  .team-detail-list { display: none; }
  .team-detail-panel { width: 100%; }
  .team-detail-nav { min-height: 60px; padding: 10px 20px; }
  .team-detail-pager-link { width: 38px; padding: 8px; justify-content: center; }
  .team-detail-pager-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .team-detail-content { padding: 32px 24px 56px; }
  .team-detail-hero { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .team-detail-photo { width: 200px; }
  .team-detail-content h1 { font-size: 1.8rem; }
}

@media (max-width: 580px) {
  .team-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 40px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid .team-card { scroll-snap-align: start; scroll-snap-stop: always; }

  .team-detail-backdrop { margin-top: 72px; }
  .team-detail-nav { top: 72px; }
  .team-detail-back-top { font-size: 0.8rem; }
  .team-detail-content { padding: 28px 20px 48px; }
  .team-detail-hero { display: flex; flex-direction: column; gap: 24px; }
  .team-detail-photo { width: min(100%, 280px); align-self: center; }
  .team-detail-summary { width: 100%; }
  .team-detail-content h1 { font-size: 1.8rem; }
  .team-detail-body { margin-top: 36px; padding-top: 28px; }
  .team-detail-bio--collapsible:not(.is-expanded) .team-detail-bio-lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  .team-detail-bio--collapsible:not(.is-expanded) .team-detail-bio-extra { display: none; }
  .team-detail-bio-toggle {
    display: inline-flex; align-items: center; gap: 9px; min-height: 36px; margin-top: 4px; padding: 4px 0;
    border: 0; background: transparent; color: #8b7020; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2;
  }
  .team-detail-bio-toggle-icon {
    width: 8px; height: 8px; flex: 0 0 auto; display: inline-block;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease;
  }
  .team-detail-bio.is-expanded .team-detail-bio-toggle-icon { transform: translateY(2px) rotate(225deg); }
  .team-detail-bio-toggle:focus-visible { outline: 3px solid rgba(212,175,55,0.45); outline-offset: 3px; }
  .team-profile-section { margin-top: 40px; padding-top: 28px; }
  .team-profile-services-heading { margin-bottom: 14px; }
  .team-profile-services-groups { gap: 10px; }
  .team-profile-services-group { border-radius: 13px; background: #fff; }
  .team-profile-services-group summary { min-height: 54px; padding: 12px 14px; }
  .team-profile-services-group h3 { font-size: 0.7rem; letter-spacing: 0.07em; }
  .team-profile-services-grid { grid-template-columns: 1fr; gap: 7px; padding: 0 10px 10px; }
  .team-profile-services-grid a { min-height: 48px; padding: 11px 13px; border-radius: 10px; font-size: 0.84rem; }
  .team-certificates-track { grid-auto-columns: min(82vw, 280px); }
  .team-reviews-grid { grid-template-columns: none; grid-auto-columns: min(82vw, 300px); }
  .team-review-dialog-card { padding: 24px 20px; }
  .team-certificate-card--primary { grid-column: auto; display: block; }
  .team-certificate-card--primary .team-certificate-preview { aspect-ratio: 4 / 3; }
  .team-certificate-card--primary .team-certificate-info { padding: 20px; }
}

@media (min-width: 581px) and (max-width: 760px) {
  .team-certificates-track { grid-auto-columns: calc((100% - 12px) / 2); }
}
