/* Global Fox design system — MWS 2026-11-26 (lead-site-pattern skill).
   Linked on every page except Privacy, Terms and Jalpa Oaks.
   1 alternating section bands · 2 one heading scale · 3 one button standard · 4 phone heroes */

/* ── 1 · Section bands: sections are tagged in the HTML, alternating white (mws-sec-l) / black (mws-sec-d) ── */
.mws-sec-l{background:#fff!important}
.mws-sec-d{
  background:#0b0b0b!important;color:#fff;
  --foreground:0 0% 100%;
  --muted-foreground:0 0% 100% / .72;
  --border:0 0% 100% / .16;
}
/* light "islands" (cards, forms, dialogs) keep the light theme inside a black band */
.mws-sec-d :is(.bg-card,.bg-white,.bg-background,form,[role=dialog]){
  --foreground:210 24% 24%;
  --muted-foreground:210 24% 40%;
  --border:0 0% 90%;
  color:hsl(210 24% 24%);
}
.mws-sec-d .bg-muted\/30,.mws-sec-d .bg-muted\/20,.mws-sec-d .bg-muted{background:transparent!important}
.mws-sec-d a:not([class*="inline-flex"]):not(.mws-cta):not([data-mws-apply]):not(.bg-card *){color:hsl(25 95% 60%)}
/* the home FAQ widget inside a black band */
.mws-sec-d .mws-faq-in details{background:#161616!important;border-color:hsl(0 0% 100%/.14)!important}
.mws-sec-d .mws-faq-in summary,.mws-sec-d .mws-faq-in>h2{color:#fff!important}
.mws-sec-d .mws-faq-in details p{color:hsl(0 0% 100%/.78)!important}
.mws-sec-d .mws-faq-sub,.mws-sec-d .mws-faq-all a{color:hsl(0 0% 100%/.75)!important}

/* ── 2 · One heading scale ──
   Section heading = H2 48px (36px phones) + 20px subtitle. Not inside cards/forms, not accordion headers. */
:is(.mws-sec-l,.mws-sec-d) h2:not(.bg-card *):not(form *):not(:has(>button)):not([id="gf-chambers-title"]),
.mws-band h2{font-size:3rem!important;line-height:1.1!important;font-weight:700!important;letter-spacing:-.01em;text-transform:none!important}
@media (max-width:767.98px){
  :is(.mws-sec-l,.mws-sec-d) h2:not(.bg-card *):not(form *):not(:has(>button)):not([id="gf-chambers-title"]),
  .mws-band h2{font-size:2.25rem!important}
}
:is(.mws-sec-l,.mws-sec-d) h2:not(.bg-card *):not(:has(>button))+p,.mws-sub{font-size:1.25rem!important;line-height:1.6!important}
.mws-sub{color:hsl(var(--muted-foreground));max-width:42rem;margin:-.25rem auto 2.5rem;text-align:center}
:is(.mws-sec-l,.mws-sec-d) .text-left>h2+.mws-sub,:is(.mws-sec-l,.mws-sec-d) h2.text-left+.mws-sub{text-align:left;margin-left:0}
:is(.mws-sec-l,.mws-sec-d) h3:not(:has(>button)){font-size:1.375rem!important;line-height:1.3!important;font-weight:700!important}
:is(.mws-sec-l,.mws-sec-d) .bg-card h3:not(:has(>button)){font-size:1.25rem!important}
:is(.mws-sec-l,.mws-sec-d) h4{font-size:1.125rem!important;font-weight:700!important}
/* accordion questions (h2/h3 wrapping a toggle button): readable, never headline-size */
:is(.mws-sec-l,.mws-sec-d) :is(h2,h3):has(>button[aria-expanded]){font-size:1.0625rem!important;font-weight:600!important;line-height:1.4!important}

/* ── 3 · One button standard: 52px, 10px radius, 17.6px/700 ──
   Signature of a real button on these pages: inline-flex + rounded-md (cards and chips don't have it). */
:is(.mws-sec-l,.mws-sec-d,section:has(h1),article) :is(a,button)[class*="inline-flex"][class*="rounded-md"]:not(:is(h2,h3)>*):not(nav *):not([role=tab]):not(.mws-hf *),
:is(.mws-sec-l,.mws-sec-d,section:has(h1),article) a[href^="tel:"]>button,
section:has(h1) a[href^="tel:"][class]:not(nav *){
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
  height:auto!important;min-height:52px!important;padding:12px 28px!important;border-radius:10px!important;
  font-size:1.1rem!important;font-weight:700!important;line-height:1.2!important;text-transform:none!important;
  white-space:normal!important;text-align:center;max-width:100%}
/* black (bg-primary) buttons are secondary: outline */
:is(.mws-sec-l,.mws-sec-d,article) :is(a,button)[class*="inline-flex"].bg-primary:not(.mws-cta){
  background:transparent!important;border:1.5px solid hsl(var(--foreground)/.35)!important;color:hsl(var(--foreground))!important}
:is(.mws-sec-l,.mws-sec-d,article) :is(a,button)[class*="inline-flex"].bg-primary:not(.mws-cta):hover{border-color:hsl(25 95% 53%)!important;color:hsl(25 95% 45%)!important}

/* ── 4 · Inner-page heroes on phones: compact, so the buttons sit above the fold on short phones ── */
@media (max-width:767.98px){
  section:has(h1):not(#home){padding-top:96px!important;padding-bottom:40px!important}
  section:has(h1):not(#home) h1{font-size:clamp(1.7rem,min(4.6svh,9.2vw),2.5rem)!important;line-height:1.12!important;margin-bottom:.75rem!important}
  section:has(h1):not(#home) h1~p,section:has(h1):not(#home) h1~div p{font-size:clamp(.95rem,2.3svh,1.1rem)!important;line-height:1.5!important;margin-bottom:.75rem!important}
  section:has(h1):not(#home) :is(.mb-8,.mb-6){margin-bottom:1rem!important}
  :is(.mws-sec-l,.mws-sec-d,section:has(h1),article) :is(a,button)[class*="inline-flex"][class*="rounded-md"]:not(:is(h2,h3)>*):not(nav *){width:100%}
}

/* ── 5 · Form fit: a long Spanish <select> option set the grid column's min-content and pushed the form 17px past a 360px screen ── */
.mws-contact-grid>*{min-width:0}
form.mws-hf :is(select,input,textarea){max-width:100%;min-width:0}
/* footer columns: long Spanish link labels wrap instead of pushing past a 320px screen */
.mws-fcol{min-width:0}
.mws-fcol a{max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
.mws-fbtn :is(a,button){max-width:100%;white-space:normal!important;text-align:center}
/* button rows: wrap the row instead of squeezing buttons until their labels break onto 2 lines (TPIP at 768px) */
:is(.mws-sec-l,.mws-sec-d,section:has(h1),article) .flex:has(>:is(a,button)[class*="inline-flex"][class*="rounded-md"]){flex-wrap:wrap}
:is(.mws-sec-l,.mws-sec-d,section:has(h1),article) .flex>:is(a,button)[class*="inline-flex"][class*="rounded-md"]{flex-shrink:0}

/* ── 6 · City page heroes: solid black, no gradient or grid texture (Guillermo, 2026-11-26) ── */
.mws-hero-black{background:#0b0b0b!important}
.mws-hero-black>.absolute.inset-0{display:none!important}

/* ── 7 · "About <city>" block on city pages (unique local copy, between the intro and the stats) ── */
.mws-city{max-width:46rem;margin:0 auto 2.75rem;padding-top:2rem;border-top:1px solid hsl(var(--border));text-align:left}
.mws-city h3{margin:0 0 .85rem;color:hsl(var(--foreground))}
.mws-city p{font-size:1.0625rem;line-height:1.75;color:hsl(var(--muted-foreground));margin:0 0 1rem}
.mws-city p:last-child{margin-bottom:0}

/* ── 8 · Edge buffer: the footer's bottom strip (city row + ©) had 0px side padding, so text touched the browser edge ── */
.mws-foot-b{padding-left:max(1rem,env(safe-area-inset-left))!important;padding-right:max(1rem,env(safe-area-inset-right))!important}
/* 320px phones: the Spanish bar label "HOJA DE OFERTA" sat 10px from the edge — tighter bar, no letter-spacing */
@media (max-width:359.98px){.mws-mbar{padding-left:12px!important;padding-right:12px!important;gap:6px!important}.mws-mbar-b{letter-spacing:0!important;padding:0 2px!important;font-size:9.5px!important}}
/* quote hero: the grid column grew to its widest child (361px in a 312px box) and the hero clipped the Spanish title + badges */
@media (max-width:1023.98px){.mws-hero-grid{grid-template-columns:minmax(0,1fr)}}
.mws-hero-grid>*{min-width:0}
.mws-hero-grid [class*="whitespace-nowrap"]{white-space:normal!important}
/* city stats row: "$50K-$5M" ran 8px past a 320px screen — scale the numbers with the width on small phones */
@media (max-width:479.98px){.grid.grid-cols-2 > .text-center > .text-3xl{font-size:clamp(1.35rem,7.2vw,1.875rem)!important}}
