/* Hallmark · built: MedExpert brand · redesign: polish · genre: modern-minimal · copy: verbatim · posture: committed · nav: clinic navigation · footer: existing patient links */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, shared clinical controls intentionally retain one system */
:root {
  --mdx-ui-brand: #007c8e;
  --mdx-ui-brand-hover: #006777;
  --mdx-ui-ink: #0e3449;
  --mdx-ui-muted: #4f6876;
  --mdx-ui-field: #6a8790;
  --mdx-ui-error: #a33b2e;
  --mdx-ui-line: #c8dbe0;
  --mdx-ui-paper: #ffffff;
  --mdx-ui-ground: #f4f8fa;
  --mdx-ui-accent-ink: #ffffff;
  --mdx-ui-font: 'Jost', 'Segoe UI', Arial, sans-serif;
  --mdx-ui-radius: 12px;
}

html, body { overflow-x: clip; }
.body { caret-color: var(--mdx-ui-brand); }
.body ::selection { color: var(--mdx-ui-accent-ink); background: var(--mdx-ui-brand); }
.body :is(h1, h2, h3, .title) { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
.body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--mdx-ui-brand-hover);
  outline-offset: 3px;
  transition: none;
}
.body :is(button, input, select, textarea):disabled {
  cursor: not-allowed;
}
.body .button { min-height: 44px; transition: background-color .15s, color .15s, border-color .15s; }
.body .button:active { transform: none; }
.body :is(.form__input, .form__select, .search__input) { color: var(--mdx-ui-ink); }
.body :is(.form__input, .form__select) { border: 1px solid var(--mdx-ui-field); }
.body :is(.form__input, .search__input)::placeholder { color: var(--mdx-ui-muted); opacity: 1; }
.body .form__input[aria-invalid='true'], .body .form__input.error { border-color: var(--mdx-ui-error); }
.body .form__input:focus-visible { outline-offset: 2px; }
.body textarea { resize: vertical; }
.body .answer__bottom-link { text-transform: none; letter-spacing: normal; }
.main--index .news { border: 0; box-shadow: none; background: transparent; }
.body .mdx-specialists-section__description { margin: 8px 0 24px; color: var(--mdx-ui-muted); font-size: 18px; }
.body .mdx-specialists-section__heading .title { margin-bottom: 0; }
.body .flex--wrap { flex-wrap: wrap; }
.body .breadcrumbs__curr-page { min-width: 0; white-space: normal; overflow-wrap: break-word; }
.body .card-price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 20px; width: 100%;
}
.body .card-price-row > p { min-width: 0; overflow-wrap: break-word; }
.body .card-price-row__text-big-bold { white-space: nowrap; }
.body :is(.card, .doctor-card):hover { transform: none; }
.body :is(.card, .doctor-card):hover .card__picture img { transform: none; }
.body .mdx-ui-table { max-width: 100%; overflow: auto; }
.body .mdx-ui-table table { width: 100%; }
.body .doctor-card__picture { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; overflow: hidden; }
.body .doctor-card__picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.body .mdx-ui-carousel-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--mdx-ui-line);
  border-radius: 8px; background: var(--mdx-ui-paper); color: var(--mdx-ui-ink);
  font-family: var(--mdx-ui-font); font-size: 14px; line-height: 1.4; cursor: pointer;
}

/* The approved header hierarchy is shared by all public routes. */
@media (min-width: 1100px) {
  .body .header-top .button {
    background: transparent; color: var(--mdx-ui-brand); border-radius: 8px; box-shadow: none;
    min-height: 40px; height: 40px; padding: 0 16px;
  }
  .body .header a.button { flex-shrink: 0; white-space: nowrap; min-width: max-content; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .body .header .header-bottom > .container > .columns {
    display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; margin: 0;
  }
  .body .header .header-bottom > .container > .columns > div { width: 100%; max-width: none; padding: 0; }
  .body .header .header-logo-column .logo { max-width: 100%; }
  .body .header-actions-column .header-bottom__inner { gap: 12px; }
  .body .header-actions-column .header__toolbar { width: auto; gap: 12px; }
  .body .header-actions-column .mob-menu { flex-shrink: 0; margin-left: 0; }
}

/* Dentistry has its own header markup, with the same booking priority. */
@media (min-width: 1100px) {
  .header--responsive .header-bottom__inner { display: flex; gap: 24px; }
  .header--responsive .header-bottom .logo { width: 238px; max-width: 238px; }
  .header--responsive .header__nav { flex: 1; min-width: 0; }
  .header--responsive .header__nav-list { gap: 18px; justify-content: flex-end; }
  .header--responsive .header__nav-item { margin: 0; }
  .header--responsive .header__toolbar { width: auto; flex: 0 0 auto; }
  .header--responsive .button { padding-right: 22px; padding-left: 22px; }
}

.mdx-specialists-section .specialists-filter__surface {
  padding: 24px; background: var(--mdx-ui-ground); border: 1px solid var(--mdx-ui-line); border-radius: var(--mdx-ui-radius);
}
.mdx-specialists-section .title--page { margin-bottom: 28px; }
.mdx-specialists-section .specialists-filter { margin-bottom: 24px; }
.mdx-specialists-section .doctor-card { box-shadow: none; border-color: var(--mdx-ui-line); }
.mdx-specialists-section .card__text { color: var(--mdx-ui-muted); }
.main--doctor-responsive .slider__button--next { right: 0; }
.main--doctor-responsive .slider__button--prev { left: 0; }
@media (max-width: 760px) {
  .body .card-price-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .body .card-price-row__text-big { grid-column: 1 / -1; font-size: 17px; }
  .body .card-price-row__text { font-size: 14px; }
  .body .card-price-row__text-big-bold { font-size: 17px; }
  .mdx-specialists-section .specialists-filter__surface { padding: 16px; }
  .mdx-specialists-section .title--page { margin-bottom: 22px; }
  .mdx-specialists-section .specialists-filter { margin-bottom: 20px; }
  .main--doctor-responsive .mdx-doctor-profile .mdx-doctor-profile__facts {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 12px; min-width: 0; padding: 0; margin: 0; font-size: 15px; line-height: 1.45; color: var(--mdx-ui-ink);
  }
  .main--doctor-responsive .mdx-doctor-profile__fact { margin: 0; display: block; }
  .main--doctor-responsive .mdx-doctor-profile__fact svg { width: 18px; height: 18px; flex-shrink: 0; }
  .main--doctor-responsive .mdx-doctor-booking { border: 1px solid var(--mdx-ui-line); border-radius: var(--mdx-ui-radius); box-shadow: none; }
}
.main--index .article-address__block-scroll { margin-right: 0; max-width: 100%; }
.main--index .mdx-quick__item {
  display: flex; flex-direction: row; align-items: center; gap: 12px; border: 1px solid var(--mdx-ui-line);
  background: var(--mdx-ui-paper); border-radius: var(--mdx-ui-radius); padding: 12px; min-height: 68px;
}
.main--index .mdx-quick__icon { width: 32px; height: 32px; flex: 0 0 32px; margin: 0; }

/* Editorial content keeps legal/medical wording and inherits the clinic typography. */
.body .mdx-page { font-family: var(--mdx-ui-font); color: var(--mdx-ui-ink); }
.body .mdx-page :is(h1, h2, h3) { color: var(--mdx-ui-ink); border: 0; padding-left: 0; text-align: left; }
.body .mdx-page :is(p, li) { color: var(--mdx-ui-ink); }
.body .mdx-page .content-section { box-shadow: none; border: 1px solid var(--mdx-ui-line); }
.body .mdx-page :is(.benefits-list, .contact-info, .conclusion-text, .mdx-final) { border-left: 0; background: var(--mdx-ui-ground); }
.body .mdx-page :is(.content-section, .mdx-acc-item) :is(.benefits-list, .contact-info, .conclusion-text, .mdx-final) {
  padding-left: 0; padding-right: 0; background: transparent; border-radius: 0;
}
.body :is(.html-editor, .mdx-page) p { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Dialogs use completion events to initialise forms and release focus. */
  .body *, .body *::before, .body *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}
