/* ─────────────────────────────────────────────────────────────
   DOCTOR PAGE — #sec-faq (שאלות נפוצות)

   Figma: desktop 460:45090 / 460:45085 / 460:47000 in frame 460:44760
          mobile  460:75151 / 460:75154 / 460:75159 in frame 460:75121

   DESKTOP — two columns of cards with a pinned heading between them
     heading   730,6726  460x124  Polin Bold 62 / 62, centred
     CTA       853,6888  215x57   centred under it
     cards              398 wide  radius 20, inner content inset 45 / 59,
                                  95 between cards down a column
     columns   left 353..751, right 1169..1567; the left column starts 115
               lower than the right

   MOBILE — an accordion
     heading    39,5836  312x100  Bold 42 / 50, two lines
     CTA        84,5961  223x49
     items      18,6057  355 wide, 102 tall closed, 25 apart
     gaps: heading → CTA 25, CTA → first item 47

   The column inset is measured against .dmc-faq-float__cards, which is
   1280 wide and starts at 317 — not against the 1460 container. From the
   frame's 353 and 1567 that is 36 on the left and 30 on the right, so 33
   either side lands both within three pixels. Measuring it off the wrong
   box first drove the columns 90px too close together.

   The heading was pinned by the template's scroll handler; since
   2026-10-08 it is a column of its own with native position:sticky — see
   the last block of this file.
   ───────────────────────────────────────────────────────────── */


@media (min-width: 1025px) {

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__cards {
    padding-left: 33px !important;
    padding-right: 33px !important;
    box-sizing: border-box !important;
  }

  /* Card padding: the inner block sits 59 from the top and 45 from each
     side in the frame. */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__card {
    padding: 59px 45px !important;    /* was 40px 36px */
  }

  /* The left column starts 115 below the right one, not 80. */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__column--left {
    padding-top: 115px !important;    /* was 80 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__btn {
    width: 215px !important;          /* was 204 */
    min-width: 215px !important;
  }
}


@media (max-width: 767px) {

  /* Two lines on a 50px line, as the frame sets it. The 30px below the
     centre block has to go with the title's own margin, or the two stack
     and the CTA sits 55 down instead of 25. */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__title {
    line-height: 50px !important;     /* was 42 */
    margin-bottom: 25px !important;   /* was 10 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__center {
    margin-bottom: 0 !important;      /* was 30 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-mobile-top__btn {
    margin-bottom: 47px !important;   /* was 35 */
  }

  /* Items are 355 wide with 25 between them; they were 339 with 12. Both
     the width and a max-width of 339 are set on the item, so the margins
     alone did nothing — the cap has to be lifted too. */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-mobile__item {
    width: auto !important;
    max-width: none !important;
    margin: 0 10px 25px 10px !important;
  }
}

/* ============================================================
   DESKTOP — the cards were being cut off (2026-10-04)

   team-member.css makes the block a 100vh frame (overflow:hidden,
   align-items:center) inside a 130vh section, and the card columns never
   move — only the heading is moved by the template's scroll handler. That
   only works while both columns fit on one screen, as the short demo
   answers did. With the real answers from the content document a column
   runs ~1,900px (Yoash Permut: 552 + 526 + 714 + 2×95), so the frame
   centred it and clipped ~500px off the top and the bottom: the first card
   on the right showed only its last lines, and anything outside the frame
   was never visible at all.

   The frame now takes the height of its columns. The heading still travels
   down between them: the handler works from the section's own height, so a
   taller section simply gives it a longer run.
   ============================================================ */
@media (min-width: 1025px) {
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float {
    height: auto !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__sticky-container {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    align-items: flex-start !important;
  }
}

/* ============================================================
   DESKTOP — FAQ like the homepage (2026-10-08)

   1) Answers clamp to three lines, with "קראו עוד" at the foot of the
      card as on the homepage. faq-readmore.js adds the toggle (a button,
      aria-expanded) and shows it only when the answer really runs past
      three lines. The full text is in the DOM; nothing is cut.

   2) The heading block no longer sits on top of the cards. The template
      parks .dmc-faq-float__center absolutely in the middle, 460 wide,
      between two 398 columns inside 1214 — so it overlapped each column
      by ~20px and long answers ran under it. faq-readmore.js moves the
      block between the two columns on desktop; here it becomes a flex
      column of its own, 40px clear of each card column, held with native
      position:sticky (the treatment page's fix). `transform: none` beats
      the inline transform the template's handler still writes on scroll.
   ============================================================ */
.dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__card-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Same look as the homepage's .dmc-faq-float__read-more. */
.dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__toggle {
  align-self: flex-start;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #087CF5;
  font-family: 'Polin', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-decoration: underline;
}
/* hello-elementor's reset.css paints button:hover/:focus pink (#c36). The
   keyboard focus ring comes from a11y-focus.css (outline), not background. */
.dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__toggle:hover,
.dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__toggle:focus,
.dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__toggle:active {
  background: none !important;
  color: #087CF5 !important;
}

@media (min-width: 1025px) {
  /* Sticky needs no scroll container between it and the viewport. The
     wrapper's overflow-y:auto (team-member.css) makes it one, though it
     never scrolls (scrollHeight == clientHeight, measured). clip keeps
     the horizontal crop without that. */
  .single-dmc_team .dmc-dr-page-wrapper.dmc-dr-story {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__sticky-container {
    position: static !important;
    display: block !important;
  }
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__cards {
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 40px !important;
    margin: 0 auto !important;        /* the container was a centring flex box */
  }
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__column {
    flex: 0 0 398px !important;
  }
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__center {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 240px !important;
    left: auto !important;
    transform: none !important;
    align-self: flex-start !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 120px !important;
    text-align: center !important;
    align-items: center !important;
  }
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-faq-float__title {
    font-size: 42px !important;
    line-height: 1.2 !important;
  }
}
