/**
 * Block: doctor-profile
 * BEM root: .doctor-profile
 *
 * ──── Layout contract ─────────────────────────────────────────────
 *   body              100% width, max-width 1920px (set globally in theme)
 *   .doctor-profile              section, always 100% width; padding scales w/ breakpoint
 *   .doctor-profile__inner       always 100% width; flex column; gap 60px
 *
 *   Width rule: every block element uses width: 100% and max-width
 *   in PERCENTAGES (or no max-width at all). Never set absolute pixel
 *   widths — they break fluid layouts and container queries. Two-
 *   column rows: each column gets width:100% + max-width:50% (with a
 *   flex-basis calc to absorb the gap).
 *
 * ──── Breakpoints (max-width, desktop-first cascade) ──────────────
 *   Desktop          ≥ 1280px  (default values)
 *   Small desktop    ≤ 1279px
 *   Tablet           ≤ 1024px
 *   Mobile           ≤ 767px  (also overrides typography tokens)
 *
 * ──── Typography ──────────────────────────────────────────────────
 *   Tokens --font-size-h1..h6, --font-size-par/button/label and
 *   matching --line-height-* are declared on .doctor-profile so they cascade
 *   only inside this block. Mobile redefines them inside the ≤ 767px
 *   media query — no per-element font-size overrides needed.
 *   Default font: Lato (used as the fallback in --heading-font and
 *   --paragraph-font). The theme can override either var globally.
 *
 * ──── Global vars expected from theme ─────────────────────────────
 *   --primary-color, --secondary-color, --tertiary-color
 *   --heading-font, --paragraph-font  (default fallback: Lato)
 */

/* ═══════════════════════════════════════════════════════════════════
 * 1 · Block root — typography tokens + layout
 * ═══════════════════════════════════════════════════════════════════ */
.doctor-profile {
  /* Typography scale (block-scoped) */
  --font-size-h1: 50px;
  --line-height-h1: 60px;
  --font-size-h2: 44px;
  --line-height-h2: 56px;
  --font-size-h3: 36px;
  --line-height-h3: 48px;
  --font-size-h4: 30px;
  --line-height-h4: 42px;
  --font-size-h5: 24px;
  --line-height-h5: 32px;
  --font-size-h6: 18px;
  --line-height-h6: 26px;
  --font-size-par: 18px;
  --line-height-par: 26px;
  --font-size-button: 20px;
  --line-height-button: 20px;
  --font-size-label: 16px;
  --line-height-label: 24px;

  /* Layout */
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding: 100px 6%;
  font-family: var(--paragraph-font, "Lato", system-ui, sans-serif);
  font-size: var(--font-size-par);
  line-height: var(--line-height-par);
  color: var(--primary-color, #111);
}

.doctor-profile *,
.doctor-profile *::before,
.doctor-profile *::after {
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════
 * 2 · Inner wrapper — flex column with consistent gap
 * ═══════════════════════════════════════════════════════════════════ */
.doctor-profile .doctor-profile__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ═══════════════════════════════════════════════════════════════════
 * 3 · Default heading style
 *      .doctor-profile__heading is applied to the first field whose name
 *      contains "title". Wrapping tag is dynamic ($heading_tag): h1
 *      for hero blocks, h2 for inner blocks.
 * ═══════════════════════════════════════════════════════════════════ */
.doctor-profile .doctor-profile__heading {
  font-family: var(--heading-font, "Lato", system-ui, sans-serif);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  margin: 0;
  color: var(--primary-color, #111);
}

/* Image reset */
.doctor-profile img {
  max-width: 100%;
  height: auto;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════
 * 4 · Per-field BEM stubs — fill in styles for each ACF field
 * ═══════════════════════════════════════════════════════════════════ */
.doctor-profile .doctor-profile__doctor-image {
  /* .doctor-profile__doctor-image styles */
}

.doctor-profile .doctor-profile__doctor-name {
  /* .doctor-profile__doctor-name styles */
}

.doctor-profile .doctor-profile__credentials {
  /* .doctor-profile__credentials styles */
}

.doctor-profile .doctor-profile__specialty {
  /* .doctor-profile__specialty styles */
}

.doctor-profile .doctor-profile__bio {
  /* .doctor-profile__bio styles */
}

.doctor-profile .doctor-profile__cta-label {
  /* .doctor-profile__cta-label styles */
}

.doctor-profile .doctor-profile__cta-link {
  /* .doctor-profile__cta-link styles */
}

/* ═══════════════════════════════════════════════════════════════════
 * 5 · WYSIWYG vertical rhythm (scoped to .doctor-profile)
 *      Headings: 32px top, 0 bottom · :first-child resets to 0
 *      Body elements: 16px top, 0 bottom · :first-child resets to 0
 * ═══════════════════════════════════════════════════════════════════ */
.doctor-profile .wysiwyg--content h1,
.doctor-profile .wysiwyg--content h2,
.doctor-profile .wysiwyg--content h3,
.doctor-profile .wysiwyg--content h4,
.doctor-profile .wysiwyg--content h5,
.doctor-profile .wysiwyg--content h6 {
  margin-top: 32px;
  margin-bottom: 0;
}

.doctor-profile .wysiwyg--content h1:first-child,
.doctor-profile .wysiwyg--content h2:first-child,
.doctor-profile .wysiwyg--content h3:first-child,
.doctor-profile .wysiwyg--content h4:first-child,
.doctor-profile .wysiwyg--content h5:first-child,
.doctor-profile .wysiwyg--content h6:first-child {
  margin-top: 0;
}

.doctor-profile .wysiwyg--content p,
.doctor-profile .wysiwyg--content ul,
.doctor-profile .wysiwyg--content ol,
.doctor-profile .wysiwyg--content blockquote,
.doctor-profile .wysiwyg--content pre,
.doctor-profile .wysiwyg--content code,
.doctor-profile .wysiwyg--content table,
.doctor-profile .wysiwyg--content img,
.doctor-profile .wysiwyg--content iframe,
.doctor-profile .wysiwyg--content video,
.doctor-profile .wysiwyg--content audio,
.doctor-profile .wysiwyg--content embed,
.doctor-profile .wysiwyg--content object {
  margin-top: 16px;
  margin-bottom: 0;
}

.doctor-profile .wysiwyg--content p:first-child,
.doctor-profile .wysiwyg--content ul:first-child,
.doctor-profile .wysiwyg--content ol:first-child,
.doctor-profile .wysiwyg--content blockquote:first-child,
.doctor-profile .wysiwyg--content pre:first-child,
.doctor-profile .wysiwyg--content code:first-child,
.doctor-profile .wysiwyg--content table:first-child,
.doctor-profile .wysiwyg--content img:first-child,
.doctor-profile .wysiwyg--content iframe:first-child,
.doctor-profile .wysiwyg--content video:first-child,
.doctor-profile .wysiwyg--content audio:first-child,
.doctor-profile .wysiwyg--content embed:first-child,
.doctor-profile .wysiwyg--content object:first-child {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════
 * 6 · Gutenberg align-wide / align-full
 * ═══════════════════════════════════════════════════════════════════ */
.doctor-profile.alignwide,
.doctor-profile.alignfull {
  max-width: unset;
  margin-left: unset;
  margin-right: unset;
}

/* ═══════════════════════════════════════════════════════════════════
 * 7 · Editor-only overrides (block-editor iframe / preview)
 * ═══════════════════════════════════════════════════════════════════ */
.editor-styles-wrapper .doctor-profile {
  /* Prevent editor chrome from bleeding into block layout */
}

/* ═══════════════════════════════════════════════════════════════════
 * 8 · Responsive — Small desktop (≤ 1279px)
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1279px) {
  .doctor-profile {
    padding: 80px 60px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * 9 · Responsive — Tablet (≤ 1024px)
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .doctor-profile {
    padding: 60px 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * 10 · Responsive — Mobile (≤ 767px)
 *       Also redefines typography tokens inside .doctor-profile so any
 *       descendant using var(--font-size-h2) etc. responds automatically.
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .doctor-profile {
    /* Typography overrides */
    --font-size-h1: 42px;
    --line-height-h1: 50px;
    --font-size-h2: 34px;
    --line-height-h2: 46px;
    --font-size-h3: 30px;
    --line-height-h3: 42px;
    --font-size-h4: 24px;
    --line-height-h4: 36px;
    --font-size-h5: 20px;
    --line-height-h5: 28px;
    --font-size-h6: 16px;
    --line-height-h6: 24px;
    --font-size-par: 16px;
    --line-height-par: 24px;
    /* button + label intentionally not overridden */

    /* Layout */
    padding: 40px 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 * Doctor Profile Section — image-left + content-right two-column card.
 *   All selectors below are scoped under .doctor-profile (BEM with parent
 *   ancestor) so styles cannot leak to any other block or section.
 * ═══════════════════════════════════════════════════════════════════ */
.doctor-profile {
  background-color: #ffffff;
  font-family: var(--paragraph-font, "Lato", system-ui, sans-serif);
  color: #404040;
}

.doctor-profile .doctor-profile__inner {
  width: 100%;
  max-width: 100%;
  /* percentage cap — never absolute px */
  margin: 0 auto;
}

/* Two-column row — agency convention: percentage widths only.
   align-items: stretch makes the image column track the body column's
   height so the photo always matches whatever copy length the editor
   enters. */
.doctor-profile .doctor-profile__layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 80px;
  width: 100%;
}

.doctor-profile .doctor-profile__image-wrap,
.doctor-profile .doctor-profile__body {
  width: 100%;
  max-width: 50%;
}

/* Image-side floor — when the body is shorter than this, the image
   keeps a tall portrait instead of collapsing. When the body is taller,
   align-items: stretch pulls the image past the floor automatically. */
.doctor-profile .doctor-profile__image-wrap {
  position: relative;
  display: flex;
  min-height: 480px;
}

@media (min-width: 1024px) {
  .doctor-profile .doctor-profile__image-wrap {
    max-width: 43%;
  }

  .doctor-profile .doctor-profile__body {
    max-width: 57%;
  }
}

@media (min-width: 768px) {
  .doctor-profile .doctor-profile__image-wrap {
    border-radius: 40px;
    overflow: hidden;
  }
}

.doctor-profile .doctor-profile__image {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 6px;
}

.doctor-profile .doctor-profile__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 24px 0;
}

.doctor-profile .doctor-profile__heading {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.5vw, 36px);
  line-height: 1.2;
  color: #141414;
  margin: 0;
  width: 100%;
  font-style: italic;
}

.doctor-profile .doctor-profile__heading .highlighted {
  color: #701346;
}

/* Credentials — inline pill list with dot separators between items. */
.doctor-profile .doctor-profile__credentials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.doctor-profile .doctor-profile__credentials-item {
  position: relative;
  padding-right: 14px;
}

.doctor-profile .doctor-profile__credentials-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: #c5c5c5;
  border-radius: 50%;
}

.doctor-profile .doctor-profile__body .doctor-profile__content {
  display: flex;
  flex-flow: column nowrap;
  gap: 6px;
}

.doctor-profile .doctor-profile__specialty {
  color: #24306A;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  /* 150% */
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0;
}

.doctor-profile .doctor-profile__bio,
.doctor-profile .doctor-profile__bio * {
  color: #000;

  /* New/Desktop/Par - Desktop */
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  /* 144.444% */
}

.doctor-profile .doctor-profile__bio strong {
  font-weight: 700;
}

.doctor-profile .doctor-profile__bio blockquote {
  width: 100%;
  max-width: 100%;
  background: #F4E7ED;
  padding: 16px 16px 16px 38px;
  position: relative;
  margin-left: 0;
  margin-right: 0;
}

.doctor-profile .doctor-profile__bio blockquote:before {
  content: '';
  width: 100%;
  max-width: 6px;
  height: calc(100% - 32px);
  background: #701446;
  position: absolute;
  top: 16px;
  left: 16px;
}

.doctor-profile .doctor-profile__bio p {
  margin: 0 0 12px;
}

.doctor-profile .doctor-profile__bio ul {
  margin-left: 0;
  margin-bottom: 12px;
  padding-left: 30px;
  display: flex;
  flex-flow: column nowrap;
  gap: 8px;
}

.doctor-profile .doctor-profile__bio ul.checkmark {
  padding: 0;
  list-style: none;
}

.doctor-profile .doctor-profile__bio ul.checkmark li {
  position: relative;
  padding-left: 34px;
}

.doctor-profile .doctor-profile__bio ul.checkmark li:before {
  content: '';
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyNiIgZmlsbD0ibm9uZSIgeG1sbnM9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jU3NDExIDEyLjcxMTMgOS40MzMyNCAxMi44NTIyQzkuMjkyMzggMTIuOTkzMSA5LjIxMjQ4IDEzLjE4MzYgOS4yMTA3NSAxMy4zODI4QzkuMjA5MDIgMTMuNTgyIDkuMjg1NiAxMy43NzM5IDkuNDIzOTkgMTMuOTE3MkwxMS43MDMyIDE2LjE5NjRDMTEuNzc3OSAxNi4yNzEgMTEuODY3MiAxNi4zMjkzIDExLjk2NTYgMTYuMzY3NEMxMi4wNjQgMTYuNDA1NiAxMi4xNjkzIDE2LjQyMjggMTIuMjc0NyAxNi40MThDMTIuMzgwMiAxNi40MTMyIDEyLjQ4MzQgMTYuMzg2NSAxMi41NzggMTYuMzM5NkMxMi42NzI1IDE2LjI5MjcgMTIuNzU2MiAxNi4yMjY2IDEyLjgyMzggMTYuMTQ1NUwxNi42MjI1IDExLjU4NzFaIiBmaWxsPSIjNzAxNDQ2Ii8+Cjwvc3ZnPgo=');
  position: absolute;
  top: 0;
  left: 0;
}

.doctor-profile .doctor-profile__bio p:last-child {
  margin-bottom: 0;
}

.doctor-profile .doctor-profile__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 28px;
  background-color: transparent;
  color: #701346;
  font-family: var(--heading-font, "Lato", system-ui, sans-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 20px;
  text-transform: capitalize;
  text-decoration: none;
  border-radius: 999px;
  border-radius: 200px;
  border: 1px solid #701346;
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.doctor-profile .doctor-profile__cta .icon {
  width: 20px;
  height: 20px;
}

.doctor-profile .doctor-profile__cta .icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.doctor-profile .doctor-profile__cta:hover,
.doctor-profile .doctor-profile__cta:focus-visible {
  background: transparent;
  border-color: #24306A;
  color: #24306A;
}

.doctor-profile .doctor-profile__cta:hover .icon svg path,
.doctor-profile .doctor-profile__cta:focus-visible .icon svg path {
  fill: #24306A;
}

.doctor-profile .doctor-profile__cta:focus {
  opacity: 0.75;
}

@media (max-width: 1024px) {
  .doctor-profile .doctor-profile__layout {
    gap: 40px;
  }
}

/* ─── Mobile (≤ 767px) — stacked, image full-width above body, no min-height ── */
@media (max-width: 767px) {
  .doctor-profile .doctor-profile__layout {
    gap: 32px;
    flex-flow: column nowrap;
  }

  .doctor-profile .doctor-profile__image-wrap,
  .doctor-profile .doctor-profile__body {
    max-width: 100%;
  }


  /* Mobile: drop the desktop floor — image returns to its natural
     aspect ratio above the body. */
  .doctor-profile .doctor-profile__image-wrap {
    min-height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
  }

  .doctor-profile .doctor-profile__image {
    height: 100%;
  }

  .doctor-profile .doctor-profile__body {
    padding: 0;
    gap: 14px;
  }

  .doctor-profile .doctor-profile__specialty {
    font-size: 14px;
    line-height: 22px;
    /* 157.143% */
    letter-spacing: 0.7px;
  }

  .doctor-profile .doctor-profile__bio,
  .doctor-profile .doctor-profile__bio * {
    font-size: 16px;
    line-height: 24px;
  }

  .doctor-profile .doctor-profile__cta {
    width: 100%;
    padding: 20px 24px;
    max-width: 100%;
  }
}