/* Compact doctor pages — mobile width / overflow lock (dxc mirrors hxc) */

html.doctor-page-root,
html.doctor-page-root body,
body.page-doctors {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}

body.page-doctors,
body.page-doctors main,
body.page-doctors .doctor-detail-page,
body.page-doctors .doctor-detail-shell,
body.page-doctors .doctor-listing-shell,
body.page-doctors .dxc {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.page-doctors *,
body.page-doctors *::before,
body.page-doctors *::after {
  box-sizing: border-box;
}

.doctor-detail-shell,
.doctor-listing-shell {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

@media (min-width: 390px) {
  .doctor-detail-shell,
  .doctor-listing-shell { --dxc-pad: 14px; }
}

body.page-doctors .hp-header,
body.page-doctors .mobile-action-bar,
body.page-doctors .hp-mab {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}
body.page-doctors .hp-header__inner {
  gap: 6px;
  padding-inline: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
body.page-doctors .hp-brand { min-width: 0; flex: 1 1 auto; }
body.page-doctors.page-doctor-detail .hp-brand__tag,
body.page-doctors.page-doctor-detail .hp-lang { display: none !important; }
body.page-doctors .hp-brand__name {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
body.page-doctors .hp-header__actions { gap: 4px; flex: 0 0 auto; min-width: 0; }
body.page-doctors .hp-mab__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
body.page-doctors .hp-mab__btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 380px) {
  body.page-doctors.page-doctor-detail .hp-brand__name { display: none; }
  body.page-doctors.page-doctor-detail .hp-brand__logo { width: auto; height: 36px; max-width: 140px; }
}
@media (min-width: 900px) {
  body.page-doctors.page-doctor-detail .hp-lang { display: block !important; }
}

.dxc {
  --dxc-blue: #0b4f8a;
  --dxc-blue-deep: #083a66;
  --dxc-soft: #eef4fa;
  --dxc-line: #dce6ef;
  --dxc-ink: #132338;
  --dxc-muted: #5a6b7c;
  --dxc-radius: 16px;
  --dxc-pad: 12px;
  background: #f5f8fb;
  color: var(--dxc-ink);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  font-family: "Plus Jakarta Sans", "Noto Sans Arabic", system-ui, sans-serif;
  box-sizing: border-box;
}
.dxc *, .dxc *::before, .dxc *::after { box-sizing: border-box; }
.dxc section,
.dxc .dxc-hero,
.dxc .dxc-hero__body,
.dxc .dxc-hero__cta,
.dxc .dxc-panel,
.dxc .dxc-review,
.dxc .dxc-tabs,
.dxc .dxc-tabs__panels,
.dxc .dxc-tabs__nav,
.dxc .dxc-facts,
.dxc .dxc-facts__track,
.dxc .dxc-related,
.dxc .dxc-related__track,
.dxc .dxc-featured,
.dxc .dxc-featured__track,
.dxc .dxc-grid,
.dxc .dxc-listing__layout,
.dxc .dxc-listing__main {
  min-width: 0;
  max-width: 100%;
}
.dxc img,
.dxc video,
.dxc iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.dxc h1, .dxc h2, .dxc h3,
.dxc p, .dxc li, .dxc span, .dxc strong, .dxc a, .dxc button,
.dxc-hero__title, .dxc-summary, .dxc-fact__value, .dxc-badge {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}
.dxc h1, .dxc h2, .dxc h3,
.dxc-hero__title {
  font-family: "Plus Jakarta Sans", "Noto Sans Arabic", system-ui, sans-serif !important;
  font-weight: 800;
}

/* HERO */
.dxc-hero {
  background: #fff;
  border-bottom: 1px solid var(--dxc-line);
  width: 100%;
  max-width: 100%;
}
.dxc-hero--listing .dxc-hero__body {
  padding: 14px var(--dxc-pad) 16px;
}
.dxc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--dxc-muted);
}
.dxc-breadcrumb a { color: var(--dxc-blue); text-decoration: none; font-weight: 600; }
.dxc-hero__lead {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--dxc-muted);
}
.dxc-hero__media {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(160px, 46vw, 200px);
  overflow: hidden;
  background: #0b1b2e;
}
.dxc-hero__media--portrait {
  height: clamp(180px, 52vw, 240px);
}
.dxc-hero__media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.dxc-hero__fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b4f8a, #1a6fb0);
}
.dxc-hero__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(7, 20, 38, .35));
  pointer-events: none;
}
.dxc-hero__body {
  padding: 8px var(--dxc-pad) 10px;
  width: 100%;
  max-width: 100%;
}
.dxc-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.dxc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.dxc-badge.is-verified { background: #e8f7ee; color: #146c3b; border-color: #b9e3c8; }
.dxc-badge.is-spec { background: #e8f0fb; color: var(--dxc-blue); border-color: #c5d7ef; }
.dxc-hero__title {
  margin: 0;
  font-size: clamp(22px, 5.6vw, 26px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.dxc-hero__designation {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #33465c;
  line-height: 1.35;
}
.dxc-hero__loc {
  margin: 4px 0 0;
  color: var(--dxc-muted);
  font-size: 13px;
  line-height: 1.35;
}
.dxc-hero__cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
}
.dxc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
  background: #fff;
  color: var(--dxc-ink);
}
.dxc-btn--primary { background: var(--dxc-blue); color: #fff; }
.dxc-btn--ghost { background: #fff; color: var(--dxc-ink); border-color: var(--dxc-line); }
.dxc-btn--link { background: var(--dxc-soft); color: var(--dxc-blue); }
.dxc-btn--block { width: 100%; }
.dxc-btn--sm { min-height: 36px; font-size: 12px; padding: 6px 8px; }

/* FACTS */
.dxc-facts {
  padding: 10px var(--dxc-pad) 4px;
  width: 100%;
}
.dxc-facts__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 0;
}
.dxc-fact {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: 14px;
  padding: 8px 8px 9px;
  min-height: 72px;
  display: grid;
  gap: 2px;
  align-content: start;
  box-shadow: 0 4px 12px rgba(15, 35, 56, .04);
}
.dxc-fact__icon { font-size: 14px; line-height: 1; }
.dxc-fact__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dxc-muted);
}
.dxc-fact__value {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* TABS */
.dxc-tabs {
  padding: 4px 0 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.dxc-tabs__nav {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 0 var(--dxc-pad) 8px;
  position: sticky;
  top: 56px;
  z-index: 40;
  background: rgba(245, 248, 251, .96);
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dxc-tabs__nav::-webkit-scrollbar { display: none; }
.dxc-tabs__btn {
  flex: 0 0 auto;
  max-width: calc(100vw - 48px);
  border: 1px solid var(--dxc-line);
  background: #fff;
  color: var(--dxc-muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.dxc-tabs__btn.is-active {
  background: var(--dxc-blue);
  border-color: var(--dxc-blue);
  color: #fff;
}
.dxc-tabs__panels {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.dxc-panel {
  margin: 0 var(--dxc-pad);
  width: auto;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: var(--dxc-radius);
  padding: 14px;
  overflow-wrap: anywhere;
}
.dxc-panel[hidden] { display: none !important; }
.dxc-panel > * { min-width: 0; max-width: 100%; }
.dxc-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #33465c;
  overflow-wrap: anywhere;
}
.dxc-more { margin-top: 8px; }
.dxc-more summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--dxc-blue);
}
.dxc-more p, .dxc-why {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #405468;
  white-space: pre-line;
}
.dxc-highlights {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.dxc-highlights li {
  background: var(--dxc-soft);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
}
.dxc-sub { margin: 12px 0 6px; font-size: 14px; }
.dxc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dxc-chips span {
  background: var(--dxc-soft);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
}
.dxc-verify { display: grid; gap: 8px; font-size: 13px; }
.dxc-note, .dxc-micro, .dxc-empty {
  margin: 0;
  font-size: 12px;
  color: var(--dxc-muted);
  line-height: 1.45;
}
.dxc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dxc-links a,
.dxc-links .dxc-textbtn {
  border: 1px solid var(--dxc-line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dxc-blue-deep);
  text-decoration: none;
  cursor: pointer;
}
.dxc-textbtn {
  display: inline-flex;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--dxc-blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.dxc-media-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 220px;
  background: var(--dxc-soft);
}
.dxc-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dxc-video {
  margin-top: 12px;
  border: 1px solid var(--dxc-line);
  border-radius: 14px;
  overflow: hidden;
}
.dxc-video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0b1b2e;
}
.dxc-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dxc-video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #c62828;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.dxc-video__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}
.dxc-video__meta strong { font-size: 13px; }
.dxc-video__meta a { font-size: 12px; font-weight: 700; color: var(--dxc-blue); }

/* REVIEW CTA */
.dxc-review {
  margin: 10px var(--dxc-pad) 8px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: var(--dxc-radius);
  padding: 14px;
  overflow: hidden;
}
.dxc-review h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
}
.dxc-review p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--dxc-muted);
  line-height: 1.4;
}
.dxc-review__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.dxc-review--compact { margin-top: 16px; }

/* RELATED */
.dxc-related {
  padding: 4px var(--dxc-pad) 12px;
  width: 100%;
  max-width: 100%;
}
.dxc-related h2 {
  margin: 0 0 8px;
  font-size: 15px;
}
.dxc-related__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.dxc-related__card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--dxc-line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.dxc-related__card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center top;
}
.dxc-related__card span {
  display: grid;
  gap: 2px;
  padding: 8px;
}
.dxc-related__card strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.dxc-related__card em {
  font-style: normal;
  font-size: 11px;
  color: var(--dxc-muted);
}

/* LISTING */
.dxc-listing__layout {
  display: grid;
  gap: 12px;
  padding: 12px var(--dxc-pad) 8px;
  width: 100%;
}
.dxc-filters {
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: var(--dxc-radius);
  padding: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.dxc-filters__title {
  margin: 0 0 10px;
  font-size: 15px;
}
.dxc-filter-form {
  display: grid;
  gap: 10px;
}
.dxc-filter-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.dxc-filter-form input,
.dxc-filter-form select {
  width: 100%;
  border: 1px solid var(--dxc-line);
  border-radius: 11px;
  padding: 10px;
  font: inherit;
}
.dxc-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
}
.dxc-check input { width: auto; }
.dxc-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dxc-filter-toggle { display: inline-flex; }
@media (max-width: 899px) {
  .dxc-filters:not(.is-open) { display: none; }
  .dxc-filters.is-open { display: block; }
}
.dxc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dxc-toolbar__count {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
.dxc-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
.dxc-chip {
  background: var(--dxc-soft);
  border: 1px solid var(--dxc-line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
}
.dxc-chip-clear {
  font-size: 12px;
  font-weight: 700;
  color: var(--dxc-blue);
  text-decoration: none;
}
.dxc-section__title {
  margin: 0 0 10px;
  font-size: 16px;
}

/* Featured horizontal slider */
.dxc-featured {
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.dxc-featured__track {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dxc-featured__track::-webkit-scrollbar { display: none; }
.dxc-card--featured {
  flex: 0 0 78%;
  width: 78%;
  max-width: 78%;
  min-width: 0;
  scroll-snap-align: start;
}

/* Grid */
.dxc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
.dxc-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: var(--dxc-radius);
  overflow: hidden;
  display: grid;
}
.dxc-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #dbe5ef;
  overflow: hidden;
}
.dxc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.dxc-card__fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b4f8a, #1a6fb0);
}
.dxc-card__body {
  padding: 10px;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dxc-card__name {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}
.dxc-card__name a { color: inherit; text-decoration: none; }
.dxc-card__spec,
.dxc-card__hosp,
.dxc-card__loc,
.dxc-card__langs {
  margin: 0;
  font-size: 12px;
  color: var(--dxc-muted);
  line-height: 1.35;
}
.dxc-card__hosp { font-weight: 600; color: #33465c; }
.dxc-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.dxc-browse { margin: 18px 0; }
.dxc-browse__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.dxc-browse__item {
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dxc-browse__item strong { font-size: 13px; }
.dxc-browse__item span { font-size: 11px; color: var(--dxc-muted); }
.dxc-browse__item--hosp {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.dxc-browse__item--hosp img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.dxc-browse__item--hosp em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--dxc-muted);
}

.dxc-how { margin: 18px 0; }
.dxc-how__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: dxc-step;
}
.dxc-how__steps li {
  counter-increment: dxc-step;
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: 14px;
  padding: 12px 12px 12px 44px;
  position: relative;
  display: grid;
  gap: 4px;
}
.dxc-how__steps li::before {
  content: counter(dxc-step);
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dxc-soft);
  color: var(--dxc-blue);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.dxc-how__steps strong { font-size: 13px; }
.dxc-how__steps span { font-size: 12px; color: var(--dxc-muted); line-height: 1.4; }

.dxc-faq {
  margin: 16px 0 8px;
  background: #fff;
  border: 1px solid var(--dxc-line);
  border-radius: var(--dxc-radius);
  padding: 12px;
}

/* BOTTOM SHEET */
.dxc-sheet[hidden] { display: none !important; }
.dxc-sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;
}
.dxc-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 28, .55);
}
.dxc-sheet__panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0,0,0,.18);
}
.dxc-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dxc-sheet__head h2 { margin: 0; font-size: 16px; }
.dxc-sheet__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 22px;
  cursor: pointer;
}
.dxc-form { display: grid; gap: 8px; }
.dxc-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.dxc-form input,
.dxc-form select,
.dxc-form textarea {
  width: 100%;
  border: 1px solid var(--dxc-line);
  border-radius: 11px;
  padding: 10px;
  font: inherit;
}
.dxc-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}
body.dxc-sheet-open { overflow: hidden; }

@media (min-width: 600px) {
  .dxc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dxc-card--featured { flex-basis: 46%; width: 46%; max-width: 46%; }
  .dxc-hero__cta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dxc-browse__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .doctor-detail-shell,
  .doctor-listing-shell,
  .dxc {
    max-width: 1180px;
    margin-inline: auto;
    padding-bottom: 24px;
    border-inline: 1px solid var(--dxc-line);
    min-height: 100vh;
  }
  .dxc-hero__media,
  .dxc-hero__media--portrait { height: 280px; }
  .dxc-facts__track {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
  .dxc-tabs__nav { top: 64px; }
  .dxc-related__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dxc-sheet__panel {
    inset-inline: 50%;
    transform: translateX(-50%);
    width: min(560px, 92vw);
    max-width: min(560px, 92vw);
    bottom: 24px;
    border-radius: 18px;
    max-height: 80vh;
  }
  [dir="rtl"] .dxc-sheet__panel { transform: translateX(50%); }
}

@media (min-width: 900px) {
  .dxc-listing__layout {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: start;
  }
  .dxc-filters { display: block !important; position: sticky; top: 72px; }
  .dxc-filter-toggle { display: none; }
  .dxc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .dxc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body.page-doctors,
  .doctor-detail-page,
  .doctor-detail-shell,
  .doctor-listing-shell,
  .dxc {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
}

@media (max-width: 360px) {
  .dxc-hero__cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dxc-facts__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dxc-card__actions { grid-template-columns: minmax(0, 1fr); }
  .dxc-review__actions { grid-template-columns: minmax(0, 1fr); }
}
