/* ─────────────────────────────────────────────────────────────
   DOCTOR PAGE — #sec-services, ALIGNED TO THE DESIGN FILE

   Figma: desktop 460:46950 / 460:47067 / 460:46916 in frame 460:44760 (1920)
          mobile  460:75335 / 460:75336 / 460:75347 in frame 460:75121 (390)

   DESKTOP, page coordinates in the 1920 frame — three centred blocks of
   three different widths:
     heading   577,3542   767x144  Polin Bold 62 / 72, centred, 2 lines
     tabs      440,3735  1040x48   five 200x48 pills, 10 apart
     panel     353,3831  1214x428  radius 40, padding 18 / 80 / 18 / 18
       image   371,3850   552x391  radius 30
       text    970,3905   517x280  vertical auto-layout, gap 23
         title            517x52   Polin Semibold 42 / 52, right
         desc             472x125  Polin Regular 18 / 25, right
         cta              192x57   radius 50, #087CF5, Medium 18 white
     gaps: heading → tabs 49, tabs → panel 48, image → text 47

   MOBILE, in the 390 frame
     heading    21,3576   347x126  Bold 42 / 42, centred, 3 lines
     tabs                  170x48  pills, 10 apart, the row scrolls
     panel      14,3847   360x618  radius 40
       title             285x32   Semibold 32 / 32, CENTRED
       desc              320x154  Regular 16, right
       image             320x233  radius 30
       cta               320x57   full width
     gaps: heading → tabs 43, tabs → panel 54,
           title → desc 28, desc → image 28, image → cta 23

   The heading's line break is set in doctor-page-fixes.php §7, not here:
   the design breaks it before the doctor's name, and where a 767px box
   happens to wrap depends on how long that name is.
   ───────────────────────────────────────────────────────────── */


/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 1025px) {

  /* The panel is the widest of the three blocks at 1214; the container was
     1174, which squeezed all of them. */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-services .dmc-clinic-services__container {
    max-width: 1214px !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-clinic-services__title {
    line-height: 72px !important;      /* was 77.5 */
    max-width: 767px !important;
    margin: 0 auto 49px auto !important;  /* was 60 below */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__nav {
    justify-content: center !important;
    margin-bottom: 48px !important;    /* was 60 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__nav-item {
    flex: 0 0 200px !important;        /* was 180 */
    width: 200px !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__pane {
    gap: 47px !important;              /* was 40 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__image-wrap {
    flex: 0 0 552px !important;
    max-width: 552px !important;
  }

  /* The text column is what the panel has left (1116 − 47 − 552 = 517); the
     paragraph sits inside it at 472, flush right. */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__pane-desc {
    max-width: 472px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
  }
}

/* The container carries 20px of side padding, so raising its max-width to
   1214 still left the panel at 1174. Dropping the padding is only safe once
   the viewport is wide enough to keep a gutter of its own. */
@media (min-width: 1300px) {
  .dmc-dr-page-wrapper.dmc-dr-story #sec-services .dmc-clinic-services__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 767px) {

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-clinic-services__title {
    margin-bottom: 43px !important;    /* was 30 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__nav {
    margin-bottom: 54px !important;    /* was 30 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__nav-item {
    flex: 0 0 170px !important;        /* was 180 */
    width: 170px !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__pane {
    border-radius: 40px !important;    /* was 24 */
    gap: 0 !important;                 /* the children carry the spacing below */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__pane-desc {
    margin-top: 28px !important;       /* title → desc */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__image-wrap {
    border-radius: 30px !important;    /* was 20 */
    margin-top: 28px !important;       /* desc → image */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-services-tabs__btn {
    margin-top: 23px !important;       /* image → cta */
  }
}
