
.medora-legacy-header-proxy { display: none !important; }
.language-switcher__flag { display: inline-flex; width: 22px; height: 20px; align-items: center; justify-content: center; border: 0; border-radius: 0; background: none; box-shadow: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 20px; line-height: 1; }
.card__media-top > .like-btn:last-child { margin-left: auto; }
.card__footer > .btn:last-child { margin-left: auto; }
.nav-drop[data-open] .nav-drop__menu { opacity: 1; visibility: visible; translate: 0 0; }
.nav-drop[data-open] .nav-item__chevron { rotate: 180deg; }
.nav-drop[data-open] .nav-drop__toggle { background: var(--color-surface-light); }
.search { position: relative; }
.medora-live-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: 420px; overflow: auto; padding: 12px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-menu); text-align: left; }
.medora-live-results[hidden] { display: none; }
.medora-live-results a { color: var(--color-text); text-decoration: none; }
.medora-live-results a:hover { color: var(--color-primary-bright); }
.cta-form__status { grid-column: 1/-1; margin-top: 14px; text-align: center; }
.cta-form__form[aria-busy=true] { opacity: .7; }
.filters__reset-panel,.filter-opt { display: flex; text-decoration: none; }
.filter-opt.is-active .checkbox__box { color: var(--color-white); border-color: var(--color-primary-deep); background: var(--color-primary-deep); }
.medora-drawer-search { padding: 14px 18px; }
.medora-drawer-search .filters__search { margin-top: 0; }
.filters__search-clear { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; color: var(--color-text-muted); font-size: 18px; line-height: 1; text-decoration: none; }
.filters__search-clear:hover { color: var(--color-primary); background: var(--color-primary-soft); text-decoration: none; }
.pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; }
.pagination .page-numbers:not(ul) { display: grid; min-width: 36px; height: 36px; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; text-decoration: none; }
.pagination .current { color: var(--color-white); background: var(--color-primary-bright); }
.empty-state { padding: 64px 24px; text-align: center; }
.signup-phone { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px; }
@media(max-width:767px) { .signup-phone { grid-template-columns: 100px minmax(0,1fr); } }
.reviews__layout--without-summary { grid-template-columns: minmax(0, 1fr); }
.reviews__layout--without-summary .reviews__controls { grid-column: 1; }
/* The page scroll padding already accounts for the sticky section navigation. */
body.single-hospital #reviews,
body.single-doctor #reviews { scroll-margin-top: 0; }

/* Editorial content in catalogue details and archive leads. */
.modal--details .modal__richtext { font-size: 16px; line-height: 1.65; }
.modal--details .modal__richtext p { margin: 0 0 1em; }
.modal--details .modal__richtext :is(h2, h3, h4, h5, h6) { margin: 1.4em 0 .65em; line-height: 1.3; }
.modal--details .modal__richtext :is(ul, ol) { margin: 0 0 1em; padding-left: 1.5em; }
.modal--details .modal__richtext li + li { margin-top: .4em; }
.modal--details .modal__richtext > :first-child { margin-top: 0; }
.page-hero__lead > p { margin: 0; }
.page-hero__lead > p + p { margin-top: .75em; }
.location:has(> .location__map:only-child) { grid-template-columns: minmax(0, 1fr); }
.location__map-frame { filter: none; }

/* Compact offer label instead of the oversized white price pill. */
.offers .offer-card__deadline { padding: 0; border: 0; border-radius: 0; background: none; color: var(--color-gold); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.offers .offer-card__chips { flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }

/* Clamp only genuinely long reviews; never force empty fixed-height cards. */
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); columns: auto; gap: 24px; align-items: start; }
.rev-grid > * { margin-bottom: 0; min-width: 0; }
.rev-grid > .rev-card { min-height: calc(var(--review-card-height, 0px) + var(--review-expanded-extra, 0px)); width: 100%; box-sizing: border-box; }
.rev-grid .rev-card__more { margin-top: auto; }
@media (max-width: 1199px) { .rev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } }
.rev-card, .card-review { --review-preview-lines: 12; }
.rev-card { height: auto; min-height: 0; }
.rev-card__more { color: var(--color-primary); }
.rev-card__meta { flex-wrap: wrap; white-space: nowrap; }
.review-patient-country { font-size: 12px; color: var(--color-text-muted); font-weight: 400; }
.reviews__row { align-items: stretch; }
.reviews .card-review { height: auto; }
.reviews .card-review__content { flex: 1; min-height: 0; }
.card-review .card-review__text { display: block; line-height: 1.4; mask-image: none; -webkit-mask-image: none; }
.rev-card [data-review-text], .card-review [data-review-text] { white-space: pre-line; }
.rev-card.is-review-ready:not(.is-expanded) [data-review-text] { max-height: calc(1.5em * var(--review-preview-lines)); overflow: hidden; }
.card-review.is-review-ready:not(.is-expanded) [data-review-text] { max-height: calc(1.4em * var(--review-preview-lines)); overflow: hidden; }
.rev-card.is-expanded [data-review-text], .card-review.is-expanded [data-review-text] { max-height: none; overflow: visible; }
[data-review-expand][hidden] { display: none !important; }
.card-review__content > [data-review-expand] { margin-top: auto; }
@media (max-width: 767px) {
  .rev-card, .card-review { --review-preview-lines: 10; }
  .rev-card { gap: 12px; padding: 20px; }
}

/* Keep the biography toggle after both the preview and the expanded content. */
.prose__more[hidden] { display: none; }
[data-prose-toggle][aria-expanded="true"] .prose__toggle-more { display: none; }
[data-prose-toggle][aria-expanded="true"] .prose__toggle-less { display: inline; }

/* Only the drawer body scrolls; its logo and close button stay fixed. */
/* Keep the source FAQ's paragraph/subheading rhythm, including expanded text. */
.faq .accordion__a p,
.faq .accordion__a ul,
.faq .accordion__a ol { margin: 0 0 10px; }
.faq .accordion__a h2,
.faq .accordion__a h3,
.faq .accordion__a h4 { margin: 10px 0; }
.faq .accordion__a > :last-child { margin-bottom: 0; }
.program-live-section .include-card__desc p { margin: 0 0 10px; }
.program-live-section .include-card__desc p:last-child { margin-bottom: 0; }
/* CTA headings and supporting text have independent, readable line spacing. */
.cta-banner .cta-banner__content { gap: 0; }
.cta-banner .cta-banner__title { margin: 0; line-height: 1.18; }
.cta-banner .cta-banner__text { margin: 10px 0 0; line-height: 1.5; }
.cta-banner .cta-banner__content > .btn,
.cta-banner .cta-banner__content > .hw-cta__buttons { margin-top: 26px; }

.doctor-head__localized-name,
.card-doctor__localized-name { margin-top: 5px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--color-text-muted); }
.language-switcher--mobile .language-switcher__code { display: inline; font-size: 11px; font-weight: 600; }
.blog .section-head__title { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.3; letter-spacing: -0.45px; }

.card-doctor .card-doctor__localized-name { font-size: 12px; line-height: 1.35; }
.card-doctor__info > div:first-child { padding-right: 36px; }
/* Reserve space for the absolute favourite button in compact/mobile cards. */
.card-doctor--compact .card-doctor__main,
.card-doctor--stacked .card-doctor__main { gap: 12px; }
.reviews__layout { grid-template-columns: 280px minmax(0, 1fr); }
.reviews__layout--without-summary { grid-template-columns: minmax(0, 1fr); }
.reviews__row { min-width: 0; }
@media (min-width: 1024px) {
  /* Bleed to the viewport edge, preserving the partial next-slide cue. */
  .reviews__row { margin-right: calc(-1 * (var(--container-pad) + var(--bleed-edge))); }
}
@media (max-width: 1023px) { .reviews__layout { grid-template-columns: minmax(0, 1fr); } }
.article-similar .section-head__action + .section-head__action { margin-left: 0; }
.section-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.section-head__actions .section-head__action { margin-left: 0; }
.card-article__read > .icon { rotate: -90deg; }
.program-prose > .btn { margin-top: 24px; }
.pub-list__more { cursor: pointer; }
.pub-list__item[hidden] { display: none; }
@media (max-width: 767px) {
  .doctor-head--localized .doctor-head__avatar-wrap { grid-row: 1 / span 3; }
  .doctor-head--localized .doctor-head__localized-name { grid-column: 2; grid-row: 2; align-self: start; font-size: 12px; }
  .doctor-head--localized .doctor-head__spec { grid-row: 3; }
}

.drawer__panel { overflow: hidden; }
.drawer__head, .drawer__cta { flex-shrink: 0; }
.drawer__body { min-height: 0; overscroll-behavior: contain; }
@media (max-width: 1023px) {
  .medora-site .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
  body.medora-site { padding-top: 88px; }
  body.admin-bar .site-header { top: 32px; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 480px) {
  .site-header__bar { gap: 8px; padding-inline: 12px; }
  .site-header__logo-img { width: 145px; height: auto; }
  .site-header__mobile-actions { gap: 4px; }
  .site-header__mobile-actions .icon-btn,
  .language-switcher--mobile .language-switcher__current { width: 32px; height: 32px; min-width: 32px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .site-header__bar { padding-inline: 20px; gap: 16px; }
  .site-header__logo-img { width: 200px; height: auto; }
  .site-header__nav .nav-list { gap: 8px; }
  .site-header__nav .nav-item { padding-inline: 10px; }
  .site-header__actions { gap: 8px; }
  .site-header__actions .btn { padding-inline: 10px; }
}
@media (min-width: 1024px) and (max-width: 1150px) {
  .site-header__bar { padding-inline: 12px; gap: 10px; }
  .site-header__logo-img { width: 170px; }
  .site-header__nav .nav-list { gap: 4px; }
  .site-header__nav .nav-item { padding-inline: 4px; font-size: 12px; }
  .site-header__actions .btn { padding-inline: 8px; }
}
