/* Exhaustive inventory parity corrections after all 56 public surfaces were
   compared at 1440px and 390px against the current production site. */

/* Patient Registration: the production form sits inside a white, full-height
   flex card. Matching only the form coordinates left the surrounding card
   100px too narrow and visually delayed even though total page height passed.
   Preserve the source card, inset, and bottom-aligned form contract. */
.npdc-registration {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 2483.64px;
  padding: 220px 20px 120px;
}

.npdc-registration__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1280px, 100%);
  min-height: 0;
  margin-inline: 0;
  padding: 50px;
  background: #fff;
}

.npdc-registration__card .gform_wrapper {
  background: transparent;
}

@media (max-width: 767px) {
  .npdc-registration {
    min-height: 3649.39px;
    padding: 220px 20px 120px;
  }

  .npdc-registration__card {
    width: 100%;
    min-height: 0;
    padding: 50px;
  }
}

/* About: the source commitment band is shorter than the reusable section
   default while its content still fits at the desktop release viewport. */
@media (min-width: 768px) {
  .npdc-about-commitment {
    min-height: 762.21875px;
  }
}

/* Native archive/search images preserve the source template's two sizing
   contracts: intrinsic-width images (normally 800px, 400px for FAV.png) and
   large crops that span the 1140px result column at a 500px crop height. */
.npdc-source-result .wp-block-post-featured-image {
  width: 100%;
  max-width: none;
  margin-bottom: 8.796875px;
}

.npdc-source-results .wp-block-post-template > li + li {
  /* Core's flow layout contributes an additional 16px between list items.
     The source archive gap is 8px, so offset half of that generated gap. */
  margin-block-start: -8px;
}

.npdc-source-result {
  margin-bottom: 0;
}

.npdc-source-result .wp-block-post-title a {
  font-weight: 500;
}

@media (min-width: 768px) {
  .npdc-source-result .wp-block-post-featured-image img:not(.attachment-large) {
    width: 800px;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: fill;
  }

  .npdc-source-result .wp-block-post-featured-image img:not(.attachment-large)[width="400"] {
    width: 400px;
  }

  .npdc-source-result .wp-block-post-featured-image img.attachment-large {
    width: 100%;
    max-width: 100%;
    height: 500px;
    max-height: 500px;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .npdc-source-result .wp-block-post-title a {
    display: inline;
    line-height: 22.4px;
  }

  .npdc-source-result .wp-block-post-featured-image {
    margin-bottom: 6.40625px;
  }

  .npdc-source-result .wp-block-post-featured-image img:not(.attachment-large) {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: fill;
  }

  .npdc-source-result .wp-block-post-featured-image img.attachment-large {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  /* New Patients: reproduce the four source band boundaries exactly. The
     former generic minima introduced a blank strip and compressed reviews. */
  .npdc-production-hero--patients,
  .npdc-production-hero--patients .npdc-production-hero__inner {
    height: 461.40625px;
    min-height: 461.40625px;
  }

  .npdc-new-patients {
    margin-top: 0 !important;
  }

  .npdc-new-patients__intro {
    height: 725.09375px;
    min-height: 725.09375px;
  }

  .npdc-new-patients__visit {
    height: 692.8125px;
    min-height: 692.8125px;
  }

  .npdc-new-patients__testimonials {
    height: 1788.40625px;
    min-height: 1788.40625px;
  }

  /* Legal pages use content-specific source band heights. Fixed values keep
     every color boundary, CTA, and footer start aligned to production. */
  .npdc-production-parity-page--privacy-policy .npdc-legal > .npdc-legal__section:nth-of-type(2) { height: 376.25px; min-height: 376.25px; }
  .npdc-production-parity-page--privacy-policy .npdc-legal > .npdc-legal__section:nth-of-type(3) { height: 353.84375px; min-height: 353.84375px; }
  .npdc-production-parity-page--privacy-policy .npdc-legal > .npdc-legal__section:nth-of-type(4) { height: 533.09375px; min-height: 533.09375px; }
  .npdc-production-parity-page--privacy-policy .npdc-legal > .npdc-legal__section:nth-of-type(5) { height: 443.46875px; min-height: 443.46875px; }
  .npdc-production-parity-page--privacy-policy .npdc-legal > .npdc-legal__cta { height: 514.84375px; min-height: 514.84375px; }

  .npdc-production-parity-page--terms-of-service .npdc-legal > .npdc-legal__section:nth-of-type(2) { height: 331.4375px; min-height: 331.4375px; }
  .npdc-production-parity-page--terms-of-service .npdc-legal > .npdc-legal__section:nth-of-type(3) { height: 364.4375px; min-height: 364.4375px; }
  .npdc-production-parity-page--terms-of-service .npdc-legal > .npdc-legal__section:nth-of-type(4) { height: 409.25px; min-height: 409.25px; }
  .npdc-production-parity-page--terms-of-service .npdc-legal > .npdc-legal__section:nth-of-type(5) { height: 398.65625px; min-height: 398.65625px; }
  .npdc-production-parity-page--terms-of-service .npdc-legal > .npdc-legal__cta { height: 492.4375px; min-height: 492.4375px; }

  .npdc-production-parity-page--hipaa-notice .npdc-production-hero--patients,
  .npdc-production-parity-page--hipaa-notice .npdc-production-hero--patients .npdc-production-hero__inner { height: 519.40625px; min-height: 519.40625px; }
  .npdc-production-parity-page--hipaa-notice .npdc-legal > .npdc-legal__section:nth-of-type(2) { height: 476.46875px; min-height: 476.46875px; }
  .npdc-production-parity-page--hipaa-notice .npdc-legal > .npdc-legal__section:nth-of-type(3) { height: 331.4375px; min-height: 331.4375px; }
  .npdc-production-parity-page--hipaa-notice .npdc-legal > .npdc-legal__section:nth-of-type(4) { height: 398.65625px; min-height: 398.65625px; }
  .npdc-production-parity-page--hipaa-notice .npdc-legal > .npdc-legal__section:nth-of-type(5) { height: 488.28125px; min-height: 488.28125px; }
  .npdc-production-parity-page--hipaa-notice .npdc-legal > .npdc-legal__cta { height: 537.25px; min-height: 537.25px; }
}
