.general-medicine-page {
  background: #fff;
}

.general-intro {
  padding: 36px 0 46px;
}

.general-intro h1 {
  font-size: clamp(40px, 4.5vw, 68px);
}

.general-eyebrow {
  margin: 0 0 16px;
  color: #a77d35;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2em;
  line-height: 1.5;
}

.general-intro > .container > .general-eyebrow {
  margin-bottom: 20px;
}

.general-services-section {
  padding: 0 0 58px;
}

.general-medicine-page .general-services-grid {
  grid-template-columns: minmax(0, 470px);
  justify-content: center;
}

.general-service-card-link {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.general-service-card-link:focus-visible {
  outline: 3px solid #a77d35;
  outline-offset: 5px;
}

.general-card-media img {
  object-position: center;
}


.general-dialog {
  position: fixed;
  width: min(1020px, calc(100% - 44px));
  max-width: 1020px;
  max-height: min(90vh, 850px);
  max-height: min(90dvh, 850px);
  margin: auto;
  padding: 0;
  border: 1px solid #e9dcc6;
  border-radius: 22px;
  background: #fffefa;
  color: #241e17;
  box-shadow: 0 28px 90px rgba(18,16,13,.28);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.general-dialog:not([open]) {
  display: none;
}

.general-dialog::backdrop {
  background: rgba(22,19,15,.64);
  backdrop-filter: blur(3px);
}

.general-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
}

.general-dialog-image {
  min-width: 0;
  background: #f3ede5;
}

.general-dialog-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 550px;
  object-fit: cover;
  object-position: center;
}

.general-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e4d7bf;
  border-radius: 50%;
  background: #fff;
  color: #352e23;
  box-shadow: 0 7px 20px rgba(35,27,12,.12);
  cursor: pointer;
}

.general-modal-close:hover {
  background: #f7efdf;
}

.general-modal-close:focus-visible {
  outline: 3px solid #ae8438;
  outline-offset: 3px;
}

.general-dialog-body {
  min-width: 0;
  padding: 44px 44px 40px;
}

.general-dialog-body h2 {
  margin: 0 0 9px;
  color: #966e24;
  font-size: clamp(36px, 4vw, 49px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.general-dialog-lead {
  margin: 0 0 22px;
  color: #4d4539;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.general-dialog-body > p:not(.general-eyebrow):not(.general-dialog-lead) {
  margin: 0 0 12px;
  color: #6a655d;
  font-size: 14px;
  line-height: 1.68;
}

.general-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 23px;
}

.general-detail-fact {
  min-width: 0;
  border: 1px solid #ece0cb;
  border-radius: 13px;
  background: #faf7f1;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.general-detail-fact small {
  color: #96702e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.general-detail-fact strong {
  color: #29241e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.general-dialog-note {
  display: block;
  color: #777168;
  font-size: 11px;
  line-height: 1.6;
  margin: 11px 0 20px;
}

.general-dialog-body .general-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 800px) {
  .general-dialog {
    width: min(610px, calc(100% - 26px));
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 18px;
  }

  .general-dialog-layout {
    grid-template-columns: 1fr;
  }

  .general-dialog-image img {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: center;
  }

  .general-dialog-body {
    padding: 25px 26px 30px;
  }

  .general-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 700px) {
  .general-intro {
    padding: 25px 0 32px;
  }

  .general-intro h1 {
    font-size: clamp(29px, 8vw, 40px);
  }

  .general-intro .aesthetic-title-row {
    gap: 10px;
  }

  .general-intro .aesthetic-title-line {
    width: 20px;
  }

  .general-intro > .container > .general-eyebrow {
    font-size: 9px;
  }

  .general-services-section {
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .general-dialog {
    width: calc(100% - 16px);
    max-height: 96vh;
    max-height: 96dvh;
    border-radius: 14px;
  }

  .general-dialog-image img {
    aspect-ratio: 16 / 10;
  }

  .general-dialog-body {
    padding: 23px 18px 26px;
  }

  .general-dialog-body h2 {
    font-size: 33px;
  }

  .general-dialog-lead {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .general-detail-facts {
    gap: 8px;
    margin-bottom: 17px;
  }

  .general-detail-fact {
    padding: 10px;
  }

  .general-detail-fact strong {
    font-size: 13px;
  }

  .general-dialog-body .general-modal-cta {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .general-service-card-link {
    transition: none;
  }
}
