/* Desktop widths; mobile layout is preserved by the single media query. */
@media (min-width: 901px) {
  :root {
    --max: 1440px;
    /* Grow beyond 1240px only when the fixed quick menu has enough room. */
    --desktop-content-width: min(var(--max), calc(100% - 80px), max(1240px, calc(100% - 256px)));
    --desktop-body-max: 1904.4px;
    --desktop-body-width: min(var(--desktop-body-max), calc(100% - 80px), max(1240px, calc(100% - 256px)));
    --desktop-type-display: clamp(2.25rem, 2.8vw, 3.5rem);
    --desktop-type-title: clamp(2rem, 2.5vw, 3rem);
    --desktop-type-subtitle: clamp(1.125rem, 1.45vw, 1.875rem);
    --desktop-type-body: clamp(1rem, 1.15vw, 1.5rem);
    --desktop-type-small: clamp(.875rem, .95vw, 1.1875rem);
    --desktop-type-label: clamp(.75rem, .8vw, 1rem);
  }

  .header-inner,
  .section,
  .care-strip,
  .footer-inner,
  .content-width,
  .clinic-footer-shell,
  .clinic-about-page .clinic-page-tabs > .content-width {
    width: var(--desktop-content-width);
    max-width: var(--max);
    margin-inline: auto;
  }

  /* Scale the shared desktop header with the widened page content. */
  .header-inner {
    width: var(--desktop-body-width);
    max-width: var(--desktop-body-max);
    padding-inline: 0;
    gap: clamp(16px, 1.4vw, 28px);
  }

  .site-header .logo-crop {
    width: clamp(180px, 12vw, 230px);
    height: auto;
    aspect-ratio: 180 / 66;
  }

  .site-header .logo-crop img {
    width: 128.333333%;
    height: auto;
    left: -14.444444%;
    top: -125.757576%;
  }

  .desktop-nav {
    gap: clamp(16px, 1.65vw, 36px);
    margin-right: 0;
  }

  .desktop-nav a {
    font-size: var(--desktop-type-body);
    line-height: 1.5;
    padding-block: 24px;
  }

  .desktop-nav a::after { bottom: 12px; }

  .header-actions { gap: clamp(8px, .65vw, 12px); }

  .header-actions .header-link {
    min-height: clamp(44px, 3vw, 52px);
    padding: 10px clamp(14px, 1.05vw, 22px);
    font-size: var(--desktop-type-small);
    line-height: 1.5;
  }

  .header-link span { margin-left: clamp(8px, .7vw, 14px); }

  /* Banners, section menus, and body content share the same desktop edges. */
  .detail-hero > .content-width,
  .page-tabs > .content-width,
  .clinic-about-page .clinic-page-tabs > .content-width,
  #main .section,
  #main .care-strip,
  #main > .content-width,
  #main > .reading-width,
  #main > section:not(.detail-hero) > .content-width {
    width: var(--desktop-body-width);
    max-width: var(--desktop-body-max);
  }

  .home-hero-content,
  .home-hero-bottom {
    width: min(var(--desktop-body-width), calc(100% - 160px));
  }

  .page-tabs > .content-width,
  .clinic-about-page .clinic-page-tabs > .content-width {
    gap: clamp(32px, 2.8vw, 56px);
  }

  .page-tabs a {
    font-size: clamp(1rem, 1.05vw, 1.375rem);
  }

  /* Keep a clear title/body/caption hierarchy as the available width grows. */
  #main .section h2,
  #main .about-consultation > h2,
  #main .doctor-profile-copy h2,
  #main .detail-section h2,
  #main .clinic-section-head h2,
  .clinic-about-page #philosophy h2 {
    font-size: var(--desktop-type-title);
    line-height: 1.55;
  }

  .clinic-about-page .responsibility-intro-title,
  #main .clinic-location-heading h3 {
    font-size: var(--desktop-type-display);
  }

  #main .doctor-name h3,
  #main .clinic-doctor-name h3 {
    font-size: var(--desktop-type-title);
  }

  #main .detail-section h3,
  #main .treatment-card h3,
  #main .care-options h3,
  #main .clinic-space-label h3,
  #main .clinic-spaces-heading h3,
  #main .clinic-location-landmark,
  #main .responsibility-signoff {
    font-size: var(--desktop-type-subtitle);
  }

  #main .about-text,
  #main .responsibility-intro-description,
  .clinic-about-page #philosophy .detail-lead,
  #main .doctor-message,
  #main .doctor-profile-copy ul,
  #main .clinic-treatment-direction p,
  #main .clinic-career ul,
  #main .clinic-credentials ul,
  #main .clinic-section-head > p:last-child:not(.content-kicker),
  #main .clinic-location-details > p,
  #main .clinic-location-subtitle,
  #main .clinic-spaces-heading p,
  #main .clinic-space figcaption p,
  #main .detail-section > p,
  #main .detail-section > div > p,
  #main .detail-section .detail-lead,
  #main .info-box p,
  #main .process-list p,
  #main .care-options article > p,
  #main .two-column-copy p,
  #main .check-list li,
  #main .section-title-row > p,
  #main .faq-intro,
  #main .faq-list summary,
  #main .faq-answer,
  #main .care-closing > div > p:last-child {
    font-size: var(--desktop-type-body);
  }

  #main .doctor-profile-copy h4,
  #main .clinic-doctor-copy h4,
  #main .clinic-career h4,
  #main .clinic-credentials h3,
  #main .clinic-space h4 {
    font-size: var(--desktop-type-body);
  }

  #main .treatment-card p,
  #main .hours-note,
  #main .hours-list > div,
  #main .hours-panel .hours-contact-list > div,
  #main .location-list > div,
  #main .location-landmark,
  #main .parking-map figcaption strong,
  #main .clinic-location-address,
  #main .clinic-location-details .clinic-map-link,
  #main .clinic-building-photo figcaption,
  #main .clinic-story-link a,
  #main .location-map-link,
  #main .related-care a,
  #main .related-care > p,
  #main .button,
  #main .text-link {
    font-size: var(--desktop-type-small);
  }

  #main .eyebrow,
  #main .content-kicker,
  #main .section-index,
  #main .care-label,
  #main .care-options article > span,
  #main .step-number,
  #main .panel-index,
  #main .small-note,
  #main .parking-map figcaption,
  #main .medical-context {
    font-size: var(--desktop-type-label);
  }

  #main .about-signature,
  #main .doctor-name > span,
  #main .doctor-career li > span,
  #main .clinic-doctor-name > span,
  #main .clinic-career li > span:first-child,
  #main .clinic-space-label > span,
  #main .card-read {
    font-size: var(--desktop-type-small);
  }

  #main .visit-section .hours-panel h2,
  #main .location-panel h2,
  #main .location-panel .map-panel-title,
  #main .care-closing h2 {
    font-size: clamp(1.75rem, 2vw, 2.375rem);
  }

  #main .hours-panel .hours-contact-list dt {
    width: auto;
    min-width: 4.4em;
  }

  /* Match the two visit panels, spreading the hours rows instead of leaving a blank tail. */
  #main .visit-section .hours-panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  #main .visit-section .hours-list {
    display: grid;
    grid-template-rows: repeat(4, auto);
    flex: 1;
    margin-block: 24px 20px;
  }

  #main .visit-section .hours-list > div {
    align-items: center;
    padding-block: 16px;
    font-size: var(--desktop-type-body);
    line-height: 1.7;
  }

  #main .visit-section .hours-contact-list {
    margin-top: 20px;
    padding-top: 16px;
  }

  #main .visit-section .hours-contact-list > div {
    padding-block: 12px;
    font-size: var(--desktop-type-body);
    line-height: 1.8;
  }

  #main .visit-section .hours-contact-list > div:last-child {
    padding-bottom: 0;
  }

  #main .visit-section .hours-note,
  #main .visit-section .hours-panel > .small-note {
    font-size: var(--desktop-type-small);
    line-height: 1.8;
  }

  #main .visit-section .parking-guidance li + li {
    margin-top: 8px;
  }

  /* Both maps share the same inset and keep their original crop proportions. */
  #main .visit-section .location-panel-with-map {
    display: flex;
    flex-direction: column;
  }

  #main .visit-section .location-map-image {
    width: calc(100% - 44px);
    flex-shrink: 0;
  }

  #main .visit-section .location-map-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
  }

  #main .visit-section .parking-map {
    margin-inline: 0;
  }

  #main .visit-section .parking-map figcaption {
    padding-inline: 0;
  }

  /* Allow notes and inline question markers to follow the surrounding copy. */
  #main .question-mark { font-size: inherit; }
  #main .detail-section .clinical-note,
  #main .detail-section .clinical-note strong,
  #main .clinical-note p {
    font-size: var(--desktop-type-small) !important;
  }
  #main .detail-section .source-note {
    font-size: var(--desktop-type-label) !important;
  }

  .detail-hero h1 {
    font-size: clamp(2.75rem, 3.3vw, 4rem);
  }
  .detail-hero h2,
  .hero-message > p {
    font-size: var(--desktop-type-subtitle);
  }
  .detail-hero-grid > div > p:last-child {
    font-size: var(--desktop-type-body);
    max-width: 48em;
  }
  .clinic-photo-hero .detail-hero-grid > div {
    max-width: 54rem;
  }
  .detail-hero .breadcrumb {
    font-size: var(--desktop-type-small);
  }
  .home-hero-description {
    font-size: var(--desktop-type-body);
  }
}

/* Keep the full navigation comfortable on compact desktop screens. */
@media (min-width: 901px) and (max-width: 1150px) {
  .header-inner { gap: 12px; }
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: .9375rem; }
  .header-actions .header-booking { padding-inline: 12px; }
}

/* Paragraph rhythm for the clinic introduction on desktop only. */
.clinic-pc-copy-break{display:none}
@media(min-width:901px){
 .clinic-about-page #main .clinic-readable-copy{line-height:2;word-break:keep-all;overflow-wrap:break-word}
 .clinic-about-page .clinic-readable-copy .clinic-pc-copy-break{display:initial}
 .clinic-about-page .clinic-readable-copy .clinic-copy-mobile-break{display:none}
 .clinic-about-page .clinic-readable-copy .clinic-copy-paragraph{display:block;margin-top:16px}
}
