:root {
  color-scheme: light;
  --mp-ink: #172033;
  --mp-muted: #526070;
  --mp-border: #dbe4ed;
  --mp-bg: #f8fafc;
  --mp-panel: #ffffff;
  --mp-green: #0f766e;
  --mp-blue: #2563eb;
  --mp-gold: #b7791f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--mp-bg);
  color: var(--mp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--mp-green); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }

.mp-external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.mp-external-link-icon {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3Cpath d='M17 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3Cpath d='M17 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mp-header, .mp-footer {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.mp-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.mp-logo {
  display: inline-flex;
  align-items: center;
  color: var(--mp-ink);
  text-decoration: none;
}

.mp-logo img {
  display: block;
  width: 148px;
  height: auto;
}

.mp-header nav, .mp-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.mp-header nav a, .mp-lang a, .mp-footer nav a {
  color: var(--mp-muted);
  font-weight: 650;
  text-decoration: none;
}

.mp-header nav a {
  position: relative;
  padding: 8px 0;
}

.mp-header nav a:hover,
.mp-header nav a:focus-visible,
.mp-header nav a.is-active {
  color: var(--mp-ink);
}

.mp-header nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--mp-green);
}

.mp-nav-cue {
  display: none;
}

.mp-lang {
  position: relative;
}

.mp-lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--mp-border);
  border-radius: 6px;
  color: var(--mp-muted);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.mp-lang summary::-webkit-details-marker {
  display: none;
}

.mp-lang summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mp-lang[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.mp-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 96px;
  padding: 6px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: var(--mp-panel);
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.12);
}

.mp-lang-menu a {
  padding: 8px 10px;
  border-radius: 5px;
}

.mp-lang-menu a:hover,
.mp-lang-menu a:focus-visible,
.mp-lang-menu a[aria-current="page"] {
  background: var(--mp-bg);
  color: var(--mp-ink);
}

.mp-main {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.mp-flash {
  width: min(1120px, calc(100vw - 32px));
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: var(--mp-panel);
  color: var(--mp-ink);
  font-weight: 650;
}

.mp-flash-alert {
  border-color: #f2c8a2;
  background: #fff7ed;
}

.mp-flash-notice {
  border-color: #99d2cb;
  background: #ecfdf5;
}

.mp-hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(32px, 6vw, 72px);
  border-top: 1px solid var(--mp-border);
}

.mp-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.mp-eyebrow, .mp-kicker {
  margin: 0 0 12px;
  color: var(--mp-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-summary {
  max-width: 720px;
  margin-top: 24px;
  color: var(--mp-muted);
  font-size: clamp(18px, 2vw, 23px);
}

.mp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.mp-hero--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.mp-hero-media {
  margin: 0;
  padding: clamp(10px, 2vw, 18px);
}

.mp-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.mp-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--mp-green);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.mp-button-primary { background: var(--mp-green); color: #fff; }
.mp-button-secondary { color: var(--mp-green); background: transparent; }

.mp-section {
  padding: clamp(36px, 6vw, 76px) 0;
  border-top: 1px solid var(--mp-border);
}

.mp-section h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.mp-richtext {
  max-width: 800px;
  color: var(--mp-muted);
  font-size: 18px;
}

.mp-richtext h3 { color: var(--mp-ink); margin-top: 28px; }
.mp-richtext li { margin: 8px 0; }

.mp-article .mp-hero {
  padding-top: clamp(44px, 7vw, 84px);
  padding-bottom: clamp(28px, 5vw, 52px);
}

.mp-article .mp-hero--with-media {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.mp-article .mp-hero-media {
  align-self: end;
}

.mp-article .mp-section {
  display: grid;
  justify-items: start;
  padding: clamp(34px, 5vw, 58px) 0;
}

.mp-article .mp-kicker,
.mp-article h2,
.mp-article .mp-richtext {
  width: min(820px, 100%);
}

.mp-article h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.mp-article .mp-richtext {
  color: #3f4c5e;
  font-size: 19px;
}

.mp-article .mp-richtext p {
  margin: 0 0 20px;
}

.mp-article .mp-richtext h3 {
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.18;
}

.mp-article-cta {
  display: grid;
  justify-items: center;
}

.mp-article-cta-inner {
  width: min(820px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: var(--mp-panel);
}

.mp-article-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
}

.mp-article-cta .mp-richtext {
  margin-bottom: 22px;
}

.mp-article-cta .mp-richtext p {
  margin: 0;
}

.mp-error-page {
  width: min(1120px, calc(100vw - 32px));
  min-height: 66vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 72px 0 96px;
}

.mp-error-panel {
  max-width: 760px;
}

.mp-error-panel h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.08;
}

.mp-error-panel p:not(.mp-eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--mp-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.mp-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mp-cards ul, .mp-cards ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.mp-cards ol {
  counter-reset: medprofile-step;
}

.mp-cards li {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: var(--mp-panel);
}

.mp-cards ol li {
  counter-increment: medprofile-step;
  padding-top: 58px;
  position: relative;
}

.mp-cards ol li::before {
  content: counter(medprofile-step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--mp-green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.mp-blog-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--mp-border);
}

.mp-blog-entry:first-of-type {
  border-top: 0;
}

.mp-blog-entry-image {
  display: block;
  align-self: stretch;
  min-height: 150px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: #eef6f5;
  overflow: hidden;
}

.mp-blog-entry-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-blog-entry-title {
  display: block;
  margin-bottom: 8px;
  color: var(--mp-green);
}

.mp-blog-entry-title h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.mp-blog-entry .mp-richtext {
  font-size: 18px;
}

.mp-blog-entry .mp-richtext p {
  margin: 0;
}

.mp-resource-entry {
  padding: 24px 0;
  border-top: 1px solid var(--mp-border);
}

.mp-resource-entry:first-of-type {
  border-top: 0;
}

.mp-resource-entry-title {
  display: block;
  margin-bottom: 8px;
  color: var(--mp-green);
}

.mp-resource-entry-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.mp-resource-entry .mp-richtext {
  font-size: 18px;
}

.mp-resource-entry .mp-richtext p {
  margin: 0;
}

.mp-profile-page {
  padding: 28px 0 72px;
  border-top: 1px solid var(--mp-border);
}

.mp-profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.mp-profile-card,
.mp-profile-panel,
.mp-booking-panel {
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: var(--mp-panel);
}

.mp-profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
}

.mp-avatar {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid #b9d8d5;
  border-radius: 999px;
  background: #d7ebe8;
  color: var(--mp-green);
  font-size: 30px;
  font-weight: 900;
}

.mp-profile-card h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.mp-profile-specialty {
  margin: 8px 0 14px;
  color: var(--mp-muted);
  font-size: 20px;
  font-weight: 650;
}

.mp-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-profile-facts li,
.mp-tag-list li {
  border: 1px solid var(--mp-border);
  border-radius: 999px;
  background: var(--mp-bg);
  color: var(--mp-muted);
  font-size: 14px;
  font-weight: 700;
}

.mp-profile-facts li {
  padding: 5px 10px;
}

.mp-profile-panel {
  margin-top: 16px;
  padding: 24px;
}

.mp-profile-panel h2,
.mp-booking-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.mp-profile-panel h3 {
  margin: 20px 0 6px;
  font-size: 17px;
}

.mp-profile-panel p {
  color: var(--mp-muted);
}

.mp-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-tag-list li {
  padding: 7px 11px;
}

.mp-service-list ul,
.mp-timeline ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-service-list li,
.mp-timeline li {
  padding: 16px 0;
  border-top: 1px solid var(--mp-border);
}

.mp-service-list li:first-child,
.mp-timeline li:first-child {
  border-top: 0;
  padding-top: 0;
}

.mp-service-list strong,
.mp-timeline strong {
  display: block;
  color: var(--mp-ink);
}

.mp-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--mp-ink);
  font-weight: 800;
}

.mp-booking-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.mp-booking-steps {
  margin: 0 0 18px;
}

.mp-booking-steps dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.mp-booking-steps dt {
  color: var(--mp-gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-booking-steps dd {
  margin: 4px 0 0;
  color: var(--mp-muted);
}

.mp-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 18px;
}

.mp-time-grid span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid #b9d8d5;
  border-radius: 6px;
  color: var(--mp-green);
  font-weight: 800;
}

.mp-profile-booking-note {
  color: var(--mp-muted);
  font-size: 14px;
}

.mp-contact-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin: 28px 0 0;
}

.mp-form-field {
  display: grid;
  gap: 7px;
}

.mp-form-field label {
  color: var(--mp-ink);
  font-weight: 800;
}

.mp-form-field input,
.mp-form-field textarea {
  width: 100%;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  background: var(--mp-panel);
  color: var(--mp-ink);
  font: inherit;
  padding: 12px 14px;
}

.mp-form-field textarea {
  min-height: 156px;
  resize: vertical;
}

.mp-form-field input:focus,
.mp-form-field textarea:focus {
  border-color: var(--mp-green);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.mp-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mp-footer {
  display: grid;
  gap: 14px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--mp-border);
  color: var(--mp-muted);
}

@media (max-width: 760px) {
  .mp-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 12px 0;
    position: relative;
  }

  .mp-nav-cue {
    position: absolute;
    right: 0;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    color: var(--mp-muted);
    cursor: pointer;
    appearance: none;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0), var(--mp-bg) 45%);
    font-size: 24px;
    font-weight: 750;
    line-height: 1;
  }

  .mp-logo img {
    width: 132px;
  }

  .mp-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding: 0 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mp-header nav::-webkit-scrollbar {
    display: none;
  }

  .mp-header nav a {
    flex: 0 0 auto;
    padding: 4px 0 7px;
    font-size: 15px;
    white-space: nowrap;
  }

  .mp-lang {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .mp-lang summary {
    min-height: 34px;
    padding: 0 9px;
  }

  .mp-hero--with-media { grid-template-columns: 1fr; }
  .mp-hero-media { max-width: 320px; padding: 0; }
  .mp-blog-entry { grid-template-columns: 1fr; }
  .mp-blog-entry-image { min-height: 180px; }
  .mp-profile-shell { grid-template-columns: 1fr; }
  .mp-profile-card { grid-template-columns: 1fr; }
  .mp-booking-panel { position: static; }
  .mp-time-grid { grid-template-columns: 1fr; }
}
