/* ==========================================================================
   Site overrides — loaded on every page after the page stylesheet.
   1) Scroll performance  2) Responsive fixes
   ========================================================================== */

/* --- 1) Scroll performance --- */
/* The ambient blobs already use soft radial gradients, so the extra 55–80px
   filter blur was near-invisible but re-rasterised ~850px layers every frame. */
.gradient-blob{filter:none!important}

/* The header background is ~97% opaque; a live backdrop blur over animated,
   scrolling content cost a full-width re-blur per frame for no visible gain. */
.site-header{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* The JS smooth scroller drives position itself; native smooth would fight it. */
html.smooth-scroll-active{scroll-behavior:auto!important}


/* --- 2) Responsive fixes ---
   ========================================================================== */

/* --- Homepage contact section: body copy was dark ink on the navy panel. --- */
.contact-section .reading-copy{color:var(--paper)}

/* --- Homepage footer: phone and address ran together on one line. --- */
.home-footer-details{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px;margin-top:24px;padding-top:20px;border-top:1px solid #ffffff1f;font-size:13px;line-height:1.6;color:var(--paper)}
.home-footer-details address{font-style:normal;display:flex;flex-wrap:wrap;gap:6px 28px}
.home-footer-details a:hover{color:var(--brand-cyan)}
.home-footer-details p{margin:0;opacity:.55}

/* --- Tablet (701–1050px) --- */
@media(max-width:1050px) and (min-width:701px){
  /* Doctor portrait filled the whole width and became very tall. */
  .doctor-picture{max-width:520px;margin-inline:auto;width:100%}
}

/* --- Tablet and phone: lift labels that dropped to 7–10px. --- */
@media(max-width:1050px){
  .story-progress small{font-size:11px}
  .doctor-copy .eyebrow{font-size:12px}
  .patient-controls>span{font-size:12px}
  .process-number{font-size:13px}
  .scene-kicker,.scene-number{font-size:12px}
  .inner-site .inner-motion-toggle{font-size:12px}
  .inner-site .inner-footer-links nav a>span:first-child{font-size:12px}
}

/* --- Phone (≤700px) --- */
@media(max-width:700px){
  /* Header booking button was an unlabeled icon: give it a short label. */
  .site-header .header-booking.button{width:auto;min-width:0;padding:0 12px;gap:7px}
  .site-header .header-booking.button::before{content:"Book";font-size:13px;font-weight:500;letter-spacing:0}
  [data-language="es"] .site-header .header-booking.button::before{content:"Cita"}
  .site-header .header-booking.button>.arrow{font-size:14px}

  /* Footer page list: readable size, arrow never on its own line. */
  .inner-site .inner-footer-links nav a{font-size:15px;gap:10px}

  /* FAQ jump links. */
  .inner-site .inner-faq-nav a{font-size:15px}

  .home-footer-details,.home-footer-details address{flex-direction:column;gap:6px}
}

/* --- Small phones (≤480px) --- */
@media(max-width:480px){
  /* Concern buttons were two narrow columns ("Headache-s" broke mid-word). */
  .condition-list{grid-template-columns:1fr}
  .condition-list>button{min-height:62px;padding-block:16px;font-size:19px}
  /* Footer page list and FAQ jump links: one column. */
  .inner-site .inner-footer-links nav{grid-template-columns:1fr;gap:14px}
  .inner-site .inner-faq-nav{grid-template-columns:1fr}
}


/* --- 3) Spacing on tablet and phone ---------------------------------------
   Between sections: tablet ~48px (24 + 24), phone ~40px (20 + 20).
   Sections with their own dark or tinted background keep a little more
   padding inside (tablet 44px, phone 32px) so text does not touch the edge.
   Text blocks use the full column width instead of narrow desktop measures. */
@media(max-width:1050px){
  /* Section rhythm */
  body .section-pad{padding-top:24px;padding-bottom:24px}
  .inner-site .inner-pad{padding-top:24px;padding-bottom:24px}
  .inner-site .inner-review-grid.inner-pad,.inner-site .staff-profiles.inner-pad{padding-top:0}
  .conditions-section.section-pad,.contact-section.section-pad,
  .inner-site .inner-concerns.inner-pad,.inner-site .inner-download-section.inner-pad,
  .inner-site .service-close.inner-pad,.inner-site .inner-editorial.inner-pad,
  .inner-site .community-support.inner-pad,.inner-site .inner-qualifications.inner-pad,
  .inner-site .inner-contact-grid.inner-pad{padding-top:44px;padding-bottom:44px}
  .inner-site .inner-hero{margin-bottom:24px}
  .inner-site .service-mast{margin-bottom:0}

  /* Gaps inside sections */
  /* The doctor caption hangs 84px under the photo: reserve just that, not 125px. */
  .bridge-composition{padding-bottom:96px;min-height:0}
  .approach-section .values-grid{margin-top:12px}
  .patient-section{gap:28px}
  .google-reviews-link{margin-top:16px;padding-top:16px}
  .contact-grid{gap:28px}
  .inner-site.inner-our-staff .staff-profile{padding-top:24px;padding-bottom:24px}
  .inner-site .google-reviews-link{margin-bottom:24px}

  /* Concern explorer: size to the selected panel, not the tallest one. */
  .conditions-enhanced .condition-stage{min-height:0}
  .conditions-enhanced .condition-panel.is-selected{position:relative}

  /* Remaining large internal gaps found by measurement */
  .service-grid{margin-top:28px;row-gap:36px}
  .condition-showcase{margin-top:28px}
  .condition-panel{padding-bottom:20px}
  .clinic-section .section-heading,.section-heading{margin-bottom:24px}
  .process-grid{margin-top:24px}
  .inner-site .staff-profiles.inner-pad{padding-bottom:20px}

  /* Footers */
  .inner-site .inner-footer{padding-top:44px}
  .inner-site .inner-footer-links{margin-bottom:28px;row-gap:24px}
  .footer-bottom{margin-top:20px}

  /* Text uses the available width (desktop measures left gaps on the right). */
  /* !important: several desktop measures use higher-specificity selectors. The homepage
     story keeps its two-column copy on tablet. */
  main :is(p,h1,h2,h3,h4,blockquote,li):not(figure *):not(.story-scene *){max-width:none!important}
  .contact-section .reading-copy,.bridge-signature{max-width:none}
}
@media(max-width:700px){
  body .section-pad{padding-top:20px;padding-bottom:20px}
  .inner-site .inner-pad{padding-top:20px;padding-bottom:20px}
  .inner-site .inner-review-grid.inner-pad,.inner-site .staff-profiles.inner-pad{padding-top:0}
  .conditions-section.section-pad,.contact-section.section-pad,
  .inner-site .inner-concerns.inner-pad,.inner-site .inner-download-section.inner-pad,
  .inner-site .service-close.inner-pad,.inner-site .inner-editorial.inner-pad,
  .inner-site .community-support.inner-pad,.inner-site .inner-qualifications.inner-pad,
  .inner-site .inner-contact-grid.inner-pad{padding-top:32px;padding-bottom:32px}
  .inner-site .inner-hero{margin-bottom:20px}
  .inner-site .inner-footer{padding-top:32px}
  .inner-site.inner-our-staff .staff-profile{padding-top:20px;padding-bottom:20px}
}


/* --- 4) Headings: at most 3 lines on tablet and phone ---------------------
   Tablet: headings that sat in a narrow side column now stack above their text. */
@media(max-width:1050px) and (min-width:701px){
  .section-heading{display:block}
  .section-heading>.reading-copy{margin-top:16px}
  .service-site .service-section{grid-template-columns:1fr;gap:14px}
}
/* Font sizes below were measured in the browser: the largest size at which the
   longest English/Spanish version of each heading fits in 3 lines. */
@media(max-width:1050px) and (min-width:701px){
  .inner-site .inner-hero-copy h1:not(.inner-doctor-title){font-size:34px}
  .inner-site .inner-section-heading h2{font-size:29px}
  .faq-editorial .display-title{font-size:38px}
  .patient-intro .display-title{font-size:44px}
}
@media(max-width:700px){
  .inner-site .inner-hero-copy h1:not(.inner-doctor-title){font-size:34px}
  .journal-article-header h1{font-size:33px}
  .inner-site.inner-our-staff .staff-intro h1{font-size:38px}
  .bridge-editorial .display-title{font-size:37px}
  .faq-editorial .display-title{font-size:40px}
  .inner-site .inner-section-heading h2{font-size:30px}
}
@media(max-width:400px){
  .inner-site .inner-hero-copy h1:not(.inner-doctor-title){font-size:30px}
  .journal-article-header h1{font-size:31px}
  .inner-site.inner-our-staff .staff-intro h1{font-size:35px}
  .bridge-editorial .display-title{font-size:34px}
  .faq-editorial .display-title{font-size:37px}
  .section-heading .display-title{font-size:36px}
  .inner-site .inner-section-heading h2{font-size:27px}
}
@media(max-width:1050px) and (min-width:861px){
  /* Two-column here, so the heading column is only ~370px wide. */
  .bridge-editorial .display-title{font-size:clamp(36px,4.1vw,42px)}
}


/* --- 5) Request-an-appointment hero (all screen sizes) ---------------------
   The photo was a fixed 22% strip (~155px, only the floor showed) with empty
   navy space above it. Now the copy takes what it needs and the photo fills the
   rest, focused on the reception desk and treatment room. */
.inner-site .inner-hero-booking-panel{justify-content:flex-start}
.inner-site .inner-hero-booking-panel .inner-hero-booking-copy{flex:0 0 auto}
.inner-site .inner-hero-booking-panel .inner-hero-photo{flex:1 1 auto;height:auto;min-height:260px}
.inner-site .inner-hero-booking-panel .inner-hero-photo-frame img{object-position:50% 45%!important}
@media(max-width:700px){
  /* Phone: no fixed panel height; a 4:3 photo under the text. */
  .inner-site .inner-hero-booking-panel{height:auto;max-height:none}
  .inner-site .inner-hero-booking-panel .inner-hero-photo{flex:none;min-height:0;aspect-ratio:4/3}
}
@media(max-width:1050px) and (min-width:701px){
  /* Tablet: the narrow column makes the text tall; let the panel grow instead of clipping the photo. */
  .inner-site .inner-hero-booking-panel{height:auto;max-height:none}
  .inner-site .inner-hero-booking-panel .inner-hero-photo{flex:none;height:300px}
}


/* --- 6) Hero photos that were squeezed -------------------------------------
   Testimonials: a fixed-height single-column hero left the photo a 130px strip. */
.inner-site .inner-hero.inner-hero--testimonials-main{height:auto!important;max-height:none!important;min-height:0!important;grid-template-rows:auto auto}
.inner-site .inner-hero--testimonials-main .inner-hero-photo{height:auto;flex:none}
.inner-site .inner-hero--testimonials-main .inner-hero-photo-frame{flex:none;height:clamp(240px,34vw,460px)}
.inner-site .inner-hero--testimonials-main .inner-hero-photo-frame img{object-position:50% 50%!important}
@media(max-width:700px){
  .inner-site .inner-hero--testimonials-main .inner-hero-photo-frame{height:auto;aspect-ratio:4/3}
}
/* Contact on tablet: the landscape clinic photo sat in a tall narrow box
   (only 45% visible). Stack text over a 4:3 photo instead. */
@media(max-width:1050px) and (min-width:701px){
  .inner-site .inner-hero--contact-us{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0}
  .inner-site .inner-hero--contact-us .inner-hero-photo-frame{flex:none;aspect-ratio:4/3;height:auto}
}


/* --- 7) Forms (send.php) --- */
.form-trap{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden;opacity:0}
.form-notice{margin:0 0 18px;padding:12px 16px;border-radius:8px;background:#fdecea;border:1px solid #f1b8b2;color:#7a1f16;font-size:15px;line-height:1.5}

/* --- 8) Thank-you page heading: scales with the screen (52px overflowed a 360px phone in Spanish). --- */
.inner-site .inner-thank-you .inner-section-heading h1{font-size:clamp(30px,6vw,64px);line-height:1.06;overflow-wrap:break-word}
.inner-site .inner-thank-you .inner-lead+.inner-lead{margin-top:14px}

/* --- 9) Desktop: text that was squeezed far narrower than its heading/column --- */
.contact-section .reading-copy{max-width:34em}

/* --- 10) Inner pages: "More" dropdown in the header (same menu as the homepage's) --- */
.inner-site .inner-desktop-nav{align-items:center}
.inner-site .inner-pages-dropdown{position:static}
.inner-site .inner-pages-dropdown>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;line-height:1.4;white-space:nowrap}
.inner-site .inner-pages-dropdown>summary::-webkit-details-marker{display:none}
.inner-site .inner-pages-dropdown>summary svg{transition:transform .22s}
.inner-site .inner-pages-dropdown[open]>summary svg{transform:rotate(180deg)}
.inner-site .inner-pages-dropdown>summary:focus-visible{outline:3px solid #277b8d;outline-offset:6px;border-radius:2px}
/* The fixed header is the positioning box, so the panel centres on the page. */
.inner-site .inner-page-links.site-mega{position:absolute;top:calc(100% + 10px);left:50%;translate:-50% 0;width:min(900px,calc(100vw - 48px));max-height:calc(100svh - 120px);overflow-y:auto;padding:0;background:#f2f7f8;border:1px solid #ffffffd9;border-radius:18px;box-shadow:0 24px 64px #06152f26;animation:home-navigation-enter .22s cubic-bezier(.16,1,.3,1);z-index:50}
@keyframes home-navigation-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.inner-site .inner-page-links.site-mega{animation:none}}
/* Header-nav link rules (hidden arrow span, nowrap, 14px) must not reach the menu inside the dropdown. */
.inner-site .inner-desktop-nav .inner-page-links a>span{display:inline}
.inner-site .inner-desktop-nav .inner-page-links a{white-space:normal;font:550 15px/1.38 var(--sans)}
.inner-site .inner-desktop-nav .inner-page-links .mega-menu-top .mega-menu-phone{white-space:nowrap}

/* --- 11) Homepage concerns: the related service link looked like plain text --- */
.home-condition-links{margin-top:14px}
.home-condition-links a{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:underline;text-decoration-color:#89eeff80;text-underline-offset:5px;font-size:15px}
.home-condition-links a::after{content:"↗";font-size:13px;text-decoration:none}
.home-condition-links a:hover{color:var(--brand-cyan)}
/* Thank-you page: give the short message room so the footer does not start mid-screen. */
@media(min-width:1051px){.inner-site .inner-thank-you{min-height:52vh;align-content:center}}
/* Request page heading: "Conversemos." (Spanish) was wider than the 250-260px panel at 42px. */
@media(max-width:1050px){.inner-site .inner-hero-booking-panel h1{font-size:38px}}
@media(max-width:400px){.inner-site .inner-hero-booking-panel h1{font-size:36px}}
@media(max-width:340px){.inner-site .inner-hero-booking-panel h1{font-size:32px}}

/* --- 12) Homepage story on portrait tablets ---------------------------------
   Desktop overlaps the text column (53%) and the image box (65%) on purpose; on a
   tall narrow tablet the object fills that box and covered the paragraph.
   Portrait tablets: text across the top, image below it, above the controls. */
@media(min-width:701px) and (max-width:1050px) and (orientation:portrait){
  .story-enhanced .story-scene .scene-copy{top:190px;bottom:auto;translate:0 0;width:auto;right:var(--gutter);max-width:none}
  .story-enhanced .story-scene .scene-visual,
  .story-enhanced .scene-doctor .scene-visual{top:auto;bottom:140px;left:8%;right:8%;width:auto;height:max(220px,calc(100svh - 812px));max-height:none}
}

/* --- 13) Inner page heroes on portrait tablets -------------------------------
   The two-column hero made the photo frame tall and narrow (~300x800), so the
   landscape photo sat small in the middle with big empty space. Portrait
   tablets now use the phone layout: text on top, full-width photo below. */
@media(min-width:701px) and (max-width:1050px) and (orientation:portrait){
  .inner-site .inner-hero{display:flex;flex-direction:column;height:auto!important;min-height:0!important;max-height:none!important}
  .inner-site .inner-hero .inner-hero-copy{padding-bottom:8px}
  .inner-site .inner-hero .inner-hero-photo{flex:none;height:auto;min-height:0}
  .inner-site .inner-hero .inner-hero-photo-frame{flex:none;height:auto;aspect-ratio:4/3}
  .inner-site .inner-hero .inner-hero-photo-frame img{object-fit:cover}
  .inner-site .inner-hero--meet-dr-patrick-maloney .inner-hero-photo-frame{aspect-ratio:4/5;max-height:640px}
  .inner-site .inner-hero--meet-dr-patrick-maloney .inner-hero-photo-frame img{object-fit:contain;object-position:50% 100%}
}
/* Staff intro: fixed height left ~350px empty under the text on tablets. */
@media(max-width:1050px){
  .inner-site.inner-our-staff .staff-intro.inner-hero--staff{height:auto;min-height:0;max-height:none}
}

/* --- 14) Request page columns + inner hero heights + download cards ---------- */
/* Request page, desktop: both columns the same height (the photo fills the rest). */
@media(min-width:1051px){
  .inner-site .inner-booking-layout{align-items:stretch}
  .inner-site .inner-booking-layout .inner-hero-booking-panel{height:auto;max-height:none;align-self:stretch}
}
/* Request page, tablet: panel on top, form below, both full width. */
@media(min-width:701px) and (max-width:1050px){
  .inner-site .inner-booking-layout{grid-template-columns:1fr;gap:24px}
  .inner-site .inner-booking-layout .inner-hero-booking-panel .inner-hero-photo{height:auto;aspect-ratio:16/9}
}
/* Inner page heroes, desktop and landscape tablet: the fixed 72svh height left
   empty space around short text; the hero now fits its content and the photo
   column matches it. */
@media(min-width:701px){
  .inner-site .inner-hero:not(.inner-hero--testimonials-main){height:auto;min-height:0;max-height:none;align-items:stretch}
  .inner-site .inner-hero:not(.inner-hero--testimonials-main) .inner-hero-copy{padding-block:clamp(36px,4.5vw,72px)}
}
/* Patient paperwork cards: one per row on phones (two were too narrow). */
@media(max-width:700px){
  .inner-site .inner-downloads{grid-template-columns:1fr}
}
/* The portrait photo was setting the hero's height; let the text decide and the photo fill it. */
@media(min-width:701px){
  .inner-site .inner-hero:not(.inner-hero--testimonials-main) .inner-hero-photo-frame{position:relative;min-height:320px}
  .inner-site .inner-hero:not(.inner-hero--testimonials-main) .inner-hero-photo-frame img{position:absolute;inset:0;width:100%;height:100%}
}
/* Request page, desktop: the form sets the row height; the photo fills what is left in the panel. */
@media(min-width:1051px){
  .inner-site .inner-booking-layout .inner-hero-booking-panel .inner-hero-photo-frame{position:relative}
  .inner-site .inner-booking-layout .inner-hero-booking-panel .inner-hero-photo-frame img{position:absolute;inset:0;width:100%;height:100%}
}

/* --- 15) Contact page map: same height as the address column (before and after loading) --- */
@media(min-width:701px){
  .inner-site .inner-contact-grid{align-items:stretch}
  .inner-site .inner-contact-grid>div:has(>.inner-map){display:flex;flex-direction:column}
  .inner-site .inner-contact-grid .inner-map{flex:1 1 auto;height:auto;min-height:320px}
  .inner-site .inner-contact-grid .inner-map iframe{display:block;width:100%;height:100%;border:0}
}

/* --- 16) Testimonials hero: room between the button and the photo (was ~20px) --- */
.inner-site .inner-hero--testimonials-main .inner-hero-copy{padding-top:clamp(32px,3.5vw,56px);padding-bottom:clamp(28px,3vw,48px)}
/* Several related links (e.g. auto accident + whiplash) sit side by side; EN badge on Spanish pages. */
.home-condition-links{display:flex;flex-wrap:wrap;gap:8px 22px}
.home-condition-links a small{font:700 10px/1 var(--sans);color:var(--brand-cyan);text-decoration:none;margin-left:2px}

/* --- 17) Homepage story on short desktop/laptop screens --------------------
   On laptops (e.g. 1440x700, 1536x730 at 125% Windows scaling) the first scene
   was taller than the space between the top line and the controls and, being
   centred, ran up into "Move better. Live Better.". On short screens the
   paragraph gets a wider measure (fewer lines), spacing tightens and the
   heading scales with the screen height (never larger than its normal size). */
@media(min-width:1051px) and (max-height:1000px){
  .story-enhanced .scene-kicker{margin-bottom:14px}
  .story-enhanced .scene-description{max-width:34em;font-size:16px;line-height:1.6;margin-top:16px}
  .story-enhanced .scene-actions{margin-top:18px}
  .story-enhanced .story-scene .scene-copy{margin-top:13px}
  .story-enhanced .scene-title{font-size:min(74px,5.2vw,calc((100svh - 486px) / 3))}
}
@media(min-width:1750px) and (max-height:1000px){
  .story-enhanced .scene-title{font-size:min(86px,calc((100svh - 486px) / 3))}
}

/* --- 18) FAQ hover: a soft rounded card instead of a flat full-width band --- */
.faq-item summary{padding-left:14px;padding-right:14px;border-radius:12px;transition:background .25s,box-shadow .25s,color .25s}
.faq-item summary h3{transition:transform .25s ease}
.faq-item summary .index,.faq-item summary .inner-faq-index{transition:color .25s}
.faq-item .plus{transition:transform .3s,background .25s,color .25s,border-color .25s}
@media(hover:hover){
  .faq-item summary:hover{background:#ffffffb8;box-shadow:0 10px 28px -18px #102e4066;color:var(--navy)}
  .faq-item summary:hover h3{transform:translateX(4px);color:var(--teal)}
  .faq-item summary:hover .index,.faq-item summary:hover .inner-faq-index{color:var(--teal);opacity:1}
  .faq-item summary:hover .plus{background:var(--navy);color:var(--brand-cyan);border-color:var(--navy)}
}
.faq-item summary:focus-visible{background:#ffffffb8;color:var(--teal)}
/* Open item: answer lines up with the question text. */
.faq-item[open] summary{background:#ffffff73}
.faq-item .faq-answer{padding-left:14px;padding-right:14px}
/* Inner pages set `.inner-site .faq-item summary{padding:25px 0}`; keep the side padding there too. */
.inner-site .faq-item summary{padding-left:16px;padding-right:16px}
.inner-site .faq-item .faq-answer{padding-left:16px;padding-right:16px}
/* Homepage FAQ: answer starts under the question text, not under the number. */
.faq-section .faq-item .faq-answer p{margin-left:32px}
@media(max-width:700px){.faq-section .faq-item .faq-answer p{margin-left:24px}}

/* --- 19) Inner heroes on phones: give the text more of the card's width ----- */
@media(max-width:700px){
  .inner-site .inner-hero{margin-left:16px;margin-right:16px}
  .inner-site .inner-hero .inner-hero-copy{padding-left:20px;padding-right:20px}
  .inner-site .inner-hero .inner-hero-photo{padding-left:12px;padding-right:12px}
}
@media(max-width:700px){.inner-site .inner-hero .inner-lead{font-size:17px}}
@media(max-width:370px){.inner-site .inner-hero .inner-lead{font-size:16px}}

/* --- 20) Tablet: image + text sections stack; stacked sections show content first, image after --- */
@media(min-width:701px) and (max-width:1050px){
  .bridge-grid,.doctor-section,
  .inner-site .inner-photo-band,
  .inner-site.inner-our-staff .staff-profile,
  .service-site .service-mast{grid-template-columns:1fr!important;gap:28px}
  .service-site .service-mast-image{max-width:none;width:100%;justify-self:stretch}
  .inner-site.inner-our-staff .staff-profile .staff-photo,
  .inner-site .inner-photo-band>figure{max-width:560px;width:100%;justify-self:center}
  .doctor-section .doctor-picture{justify-self:center}
  /* Inner heroes: same stacked layout on landscape tablets as on portrait. */
  .inner-site .inner-hero{display:flex;flex-direction:column;height:auto!important;min-height:0!important;max-height:none!important}
  .inner-site .inner-hero .inner-hero-photo{flex:none;height:auto;min-height:0}
  .inner-site .inner-hero .inner-hero-photo-frame{flex:none;height:auto;aspect-ratio:4/3}
  .inner-site .inner-hero--meet-dr-patrick-maloney .inner-hero-photo-frame{aspect-ratio:4/5;max-height:640px}
  .inner-site .inner-hero--injury-care .inner-hero-copy{border-radius:18px 18px 0 0}
  .inner-site .inner-hero--injury-care .inner-hero-photo-frame{border-radius:0 0 18px 18px}
}
/* Whenever these sections are stacked (tablet and phone): text first, image after. */
@media(max-width:1050px){
  .doctor-section .doctor-picture{order:2}
  .inner-site .inner-photo-band>figure{order:2}
  .inner-site.inner-our-staff .staff-profile .staff-photo{order:2}
  .faq-editorial{display:flex;flex-direction:column;align-items:flex-start}
  .faq-editorial .faq-art{order:3;margin-top:20px}
}
/* Staff: alternate profiles pin the photo to column 2; undo that when stacked. */
@media(max-width:1050px){
  .inner-site.inner-our-staff .staff-profile>*{grid-column:1/-1!important;grid-row:auto!important}
  .inner-site.inner-our-staff .staff-profile .staff-photo{width:100%;max-width:560px;justify-self:center;align-self:start}
}
/* Homepage FAQ on tablet: heading above, questions full width (two narrow columns wrapped questions to 4 lines). */
@media(min-width:701px) and (max-width:1050px){.faq-section{grid-template-columns:1fr!important;gap:28px}}

/* --- 21) Phone numbers inside running text are links: show them as links --- */
.integration-note a[href^="tel:"],.faq-answer a[href^="tel:"],.form-notice a[href^="tel:"],.inner-request-panel a[href^="tel:"]{color:inherit;font-weight:600;text-decoration:underline;text-decoration-color:#29697480;text-underline-offset:3px;white-space:nowrap}
.integration-note a[href^="tel:"]:hover,.faq-answer a[href^="tel:"]:hover{color:var(--teal)}

/* Service pages on tablet: the hero image card uses the full width. */
@media(min-width:701px) and (max-width:1050px){
  .service-site .service-mast-image{aspect-ratio:16/10;height:auto;min-height:0;overflow:hidden}
  .service-site .service-mast-image img{width:auto;max-width:100%;height:100%;min-height:0;object-fit:contain}
}

/* --- 22) Blog posts use the same container as the blog archive and site (no narrow centred column) --- */
.journal-article-main{max-width:none}
.journal-article-content{max-width:none}

/* --- 23) 404 page: site layout with the full page list as a card --- */
.inner-site .not-found-menu{border:1px solid #ffffffd9;border-radius:18px;background:#f2f7f8;box-shadow:0 24px 64px -40px #06152f40}
.inner-site .not-found-menu .mega-menu-content{max-width:none}
.inner-site .inner-not-found h1{font-size:clamp(34px,4.6vw,64px);line-height:1.04;letter-spacing:-.05em}

/* --- 24) Homepage scroll performance: same look, without the costly GPU effects --- */
/* Frosted-glass blur on small buttons and nav: a slightly more solid background instead. */
.art-toggle,.service-explore{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.art-toggle{background:#ffffffc4}
.service-explore{background:#fcfdf9e0}
.desktop-nav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#fbfdfae6}
.home-pages-header .home-page-links{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* Soft glows are already radial gradients; the extra blur filter only cost repaint time. */
.service-halo,.condition-plinth,.object-ground{filter:none!important}
/* Faint drop shadows on large moving images (7% alpha) forced a full repaint every frame. */
.scene-visual img,.service-art>img{filter:none!important}
/* Blend-mode layers: normal blending at matching strength. */
.pointer-aura,.story-light{mix-blend-mode:normal!important}
.studio-light,.specular{mix-blend-mode:normal!important}
.studio-light{opacity:calc(var(--depth-active)*.16)}
/* Story: keep scaled 3D images as ready GPU layers (no redraw on every scroll frame),
   and stop the background colour drift while the near-opaque story panel covers it. */
.story-enhanced .scene-visual,.story-enhanced .asset-frame,.clinical-asset .asset-frame{will-change:transform}
/* Background colour glow: hold it still. The drift took 35-48s per cycle (hardly visible),
   but kept three screen-sized layers redrawing on every frame across the whole page. */
.gradient-blob{animation-play-state:paused!important}
/* While the page is scrolling, cards moving under a still mouse do not start hover/tilt effects. */
html.is-scrolling [data-depth],html.is-scrolling .service-card,html.is-scrolling .condition-list{pointer-events:none}

/* --- 25) reCAPTCHA checkbox on appointment forms --- */
.captcha-field .g-recaptcha{min-height:78px}
#appointment-dialog .captcha-field{margin:6px 0 18px}
.inner-request-panel .captcha-field{margin:4px 0 20px}
/* The Google box is a fixed 304px wide; shrink it on the narrowest phones. */
@media(max-width:360px){.captcha-field .g-recaptcha{transform:scale(.86);transform-origin:0 0;min-height:68px}}

/* --- 26) Homepage story: no "Skip the story" link and no pause button (the slides still play on scroll).
   The button stays in the page (hidden) because home.js reads it. --- */
.atmosphere-toggle{display:none!important}

/* --- 27) Story captions: one fixed place on every chapter.
   The caption now sits in the chapter itself (not inside the moving 3D image),
   so on desktop it lines up with the right end of the chapter bar, just above it. --- */
.story-scene>.visual-caption{position:static;left:auto;right:auto;bottom:auto;grid-column:-2/-1;justify-self:end;max-width:none;margin:-6px 0 0}
.story-enhanced .story-scene>.visual-caption{position:absolute;left:auto;right:var(--gutter);bottom:104px;margin:0;justify-content:flex-end;white-space:nowrap;z-index:6;pointer-events:none}
/* Landscape tablets: lift the image button a little so the caption below it never touches it. */
@media(min-width:701px) and (max-width:1050px) and (orientation:landscape){.story-enhanced .story-scene .art-toggle{margin-bottom:16px}}

/* --- 28) Homepage team card: bigger card, the photo stands on the card's bottom edge
   and rises to just under the top padding. On phones the text comes first, photo below. --- */
.clinic-team-card{max-width:1000px;align-items:stretch;gap:48px;padding:40px 56px 0 44px;overflow:hidden}
.clinic-team-card>img{align-self:flex-end;display:block;width:264px;height:330px;object-fit:contain;object-position:center bottom;margin:0}
.clinic-team-card>div{align-self:center;padding:8px 0 40px}
@media(max-width:1050px){
  .clinic-team-card{gap:32px;padding:34px 36px 0 30px}
  .clinic-team-card>img{width:220px;height:275px}
  .clinic-team-card>div{padding-bottom:34px}
}
@media(max-width:700px){
  .clinic-team-card{flex-direction:column;align-items:stretch;gap:24px;padding:28px 24px 0}
  .clinic-team-card>div{order:1;padding:0}
  .clinic-team-card>img{order:2;align-self:flex-start;width:220px;height:275px}
}
