/* Opt-in service styles based on approved Diabetes typography. Load after page CSS. */
body main.bb-service-design {
  --bb-h1-size: 44px;
  --bb-h2-size: 36px;
  --bb-subsection-size: 32px;
  --bb-section-space: 44px;
  --bb-copy-color: var(--mid);
  --bb-title-color: var(--text);
  --bb-subtitle-color: var(--green-dk);
  --bb-tick-color: var(--green);
  font-family: var(--ss);
}

body main.bb-service-design > section:not(.service-hero-with-form) {
  padding: var(--bb-section-space) 0;
}

body main.bb-service-design > section:not(.service-hero-with-form) h2 {
  margin: 0 0 20px;
  color: var(--bb-title-color);
  font: 700 var(--bb-h2-size)/1.18 var(--sf);
  letter-spacing: 0;
}

body main.bb-service-design > section:not(.service-hero-with-form) h3 {
  margin: 0 0 8px;
  color: var(--bb-subtitle-color);
  font: 750 18px/1.3 var(--ss);
  letter-spacing: 0;
}

body main.bb-service-design > section :is(.pmos-concerns, .pituitary-card-grid, .op-grid.four, .meno-stage-grid, .lowt-card-grid, .adrenal-condition-grid, .weight-card-grid-4) h3 {
  font-size: 17px;
}

body main.bb-service-design > section:not(.service-hero-with-form) :is(p, li, td, th) {
  color: var(--bb-copy-color);
  font-family: var(--ss);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body main.bb-service-design > section:not(.service-hero-with-form) p {
  margin: 0 0 14px;
}

body main.bb-service-design > section:not(.service-hero-with-form) p:last-child {
  margin-bottom: 0;
}

body main.bb-service-design :is(.pmos-authority, .pituitary-authority, .authority, .meno-authority, .lowt-authority, .weight-authority, .adrenal-physician-band) {
  --bb-copy-color: rgba(255, 255, 255, .85);
  --bb-title-color: #fff;
  --bb-subtitle-color: #fff;
  --bb-tick-color: #b5dfcc;
}

body main.bb-service-design > section :is(.op-specialist-compact, .op-audience, .weight-followup-panel) h3 {
  margin-bottom: 20px;
  font: 700 var(--bb-subsection-size)/1.2 var(--sf);
}

/* Keep the established two-column layout; normalize type and spacing around it. */
body main.bb-service-design .service-hero-with-form {
  padding: 56px 0;
}

body main.bb-service-design .service-hero-with-form > .w {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

body main.bb-service-design .service-hero-with-form > .w > div {
  min-width: 0;
  max-width: 100%;
}

body main.bb-service-design .service-hero-with-form h1 {
  margin: 4.8px 0 17.6px;
  color: var(--text);
  font: 700 var(--bb-h1-size)/1.12 var(--sf);
  letter-spacing: 0;
}

body main.bb-service-design .service-hero-with-form h1 span {
  display: block;
  color: var(--green-dk);
}

body main.bb-service-design .service-hero-with-form > .w > div:first-child > p:not(:where([class*="-location"])) {
  max-width: 52ch;
  margin: 0 0 14px;
  color: var(--navy);
  font: 400 17.28px/1.68 var(--ss);
}

body main.bb-service-design .service-hero-with-form > .w > div:first-child > p a {
  color: inherit;
  text-decoration: underline;
}

body main.bb-service-design .service-hero-with-form :is(.pmos-location, .pituitary-location, .op-location, .meno-location, .lowt-location, .adrenal-location, .weight-location) {
  max-width: 56ch;
  margin: 12.8px 0 0;
  color: var(--mid) !important;
  font: 400 15.68px/1.62 var(--ss);
}

body main.bb-service-design :is(.pmos-actions, .pituitary-actions, .op-actions, .meno-actions, .lowt-actions, .adrenal-actions, .weight-actions) {
  gap: 13.6px;
  margin: 24.8px 0 0;
}

body main.bb-service-design .service-hero-with-form .btn {
  padding: 12.8px 23.2px;
  font-family: var(--ss);
  font-size: 16px;
  white-space: normal;
  text-align: center;
}

body main.bb-service-design .service-hero-with-form .appt-form-card {
  border-radius: 14px;
}

body main.bb-service-design .service-hero-with-form .form-head {
  padding: 18px 20px;
}

body main.bb-service-design .service-hero-with-form .form-head h3,
body main.bb-service-design .service-hero-with-form .appt-form-card > h2.sh {
  margin: 8px 0 0 !important;
  font: 800 24px/1.25 var(--ss) !important;
  letter-spacing: 0 !important;
}

body main.bb-service-design .service-hero-with-form .appt-form-card > .ey {
  padding: 18px 20px 0;
}

body main.bb-service-design .service-hero-with-form .appt-form-card > h2.sh {
  padding-inline: 20px;
}

body main.bb-service-design .service-hero-with-form .appt-form-card > p {
  padding: 0 20px 18px;
}

body main.bb-service-design .service-hero-with-form .appt-form-card > form {
  padding: 18px 20px 20px;
}

body main.bb-service-design .service-hero-with-form .form-block {
  padding: 16px;
}

/* Replace legacy dots/circled checks with the approved Diabetes tick. */
body main.bb-service-design :is(.pmos-checks, .pituitary-compact-list, .op-check, .meno-compact-list, .lowt-compact-list, .adrenal-check-list, .weight-compact-list, .bb-checklist) {
  display: grid;
  gap: 18px 28px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

body main.bb-service-design :is(.pmos-checks, .pituitary-compact-list, .op-check, .meno-compact-list, .lowt-compact-list, .adrenal-check-list, .weight-compact-list, .bb-checklist):last-child {
  margin-bottom: 0;
}

body main.bb-service-design :is(.pmos-checks, .pituitary-compact-list, .op-check, .meno-compact-list, .lowt-compact-list, .adrenal-check-list, .weight-compact-list, .bb-checklist) > li {
  position: relative;
  padding: 0 0 0 27px;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: 400;
}

body main.bb-service-design :is(.pmos-checks, .pituitary-compact-list, .op-check, .meno-compact-list, .lowt-compact-list, .adrenal-check-list, .weight-compact-list, .bb-checklist) > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 7px;
  height: 12px;
  border: solid var(--bb-tick-color);
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: none;
  transform: rotate(45deg);
}

body main.bb-service-design .adrenal-check-list > li::after {
  content: none;
}

body main.bb-service-design .diabetes-faq > .w {
  max-width: 960px;
}

body main.bb-service-design .diabetes-faq h2 {
  text-align: center;
}

body main.bb-service-design .faq-in summary {
  font: 900 16px/1.65 var(--ss);
  letter-spacing: 0;
}

body main.bb-service-design .faq-in summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body main.bb-service-design {
    --bb-h1-size: 38px;
  }

  body main.bb-service-design .service-hero-with-form > .w {
    grid-template-columns: minmax(0, 1fr);
    max-width: 700px;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  body main.bb-service-design {
    --bb-h1-size: 32px;
    --bb-h2-size: 28px;
    --bb-subsection-size: 28px;
    --bb-section-space: 32px;
  }

  body main.bb-service-design > section:not(.service-hero-with-form) > .w {
    width: 100%;
    max-width: 100%;
    padding-inline: 20px;
  }

  body main.bb-service-design :is(.pmos-split, .pituitary-split, .meno-split, .lowt-split, .weight-split) > div,
  body main.bb-service-design :is(.pmos-media, .pituitary-media, .meno-media, .lowt-media, .weight-media) {
    width: 100%;
    max-width: 100%;
  }

  body main.bb-service-design > section:not(.service-hero-with-form) h2,
  body main.bb-service-design > section :is(.op-specialist-compact, .op-audience, .weight-followup-panel) h3 {
    margin-bottom: 18px;
  }

  body main.bb-service-design .service-hero-with-form {
    padding: 24px 0 30px;
  }

  body main.bb-service-design .service-hero-with-form > .w {
    padding-inline: 16px;
    gap: 20px;
  }

  body main.bb-service-design .service-hero-with-form h1 {
    line-height: 1.15;
  }

  body main.bb-service-design .service-hero-with-form .form-head h3,
  body main.bb-service-design .service-hero-with-form .appt-form-card > h2.sh {
    font-size: 20px !important;
  }
}
