/* amac/assets/reflow.css (Bez, 2026-11-26, SPEC-BEZ-REFLOW-200-2026-11-26-01). Phones only (under 768 px). At normal text size these rules change nothing;
   when a visitor makes text larger (to 200%), lines, labels and rows give way instead of pushing the page sideways. */
@media (max-width:767px){
  /* 1. A button label wraps onto a second line instead of widening its column past the screen. */
  .btn,.btn[href]{white-space:normal;text-align:center}
  /* 2. A word wider than its line breaks inside the line instead of running off the page. */
  h1,h2,h3,.eyebrow,.lead{overflow-wrap:anywhere}
  p,li{overflow-wrap:break-word}
  /* 3. The big phone number on the contact page may take two lines when one is too short. */
  .callnum a,.callnum .nw{white-space:normal}
  /* 4. The header row wraps (menu to a second row, at the right) rather than running off the screen. */
  .top .wrap{flex-wrap:wrap;justify-content:flex-end;height:auto;min-height:56px}
}
@media (max-width:767px){
  /* 5. The town list drops to one column when the names no longer fit two. */
  .towns{columns:2 8em}
  .lst.towns{grid-template-columns:repeat(auto-fit,minmax(max(8em,calc((100% - var(--s24))/2)),1fr))}
}
/* 6. Footer links keep "(en inglés)" with their name at normal size, and may wrap once the text is large for the space. */
footer{container-type:inline-size}
@container (max-width:19em){ .fnav a{white-space:normal} .fnav .xl{display:inline-block} }
@media (max-width:767px){
  /* 7. When a button label or the big phone number takes two lines, balance them, so the break falls at the space:
     "Call (956)" / "335-0222", never "Call (956) 335-" / "0222". One-line labels are untouched. */
  .btn,.x3-btn,.x3-call,.callnum{text-wrap:balance}
}
@media(max-width:767px){
.x3-hdr{flex-wrap:wrap;justify-content:flex-end;row-gap:8px}
.x3-hdr .x3-call{white-space:normal;text-align:center;flex:1 1 min-content;max-width:max-content}
.x3h .x3c{padding-top:max(92px,calc(10em - 88px))}
.tiles.hub{grid-template-columns:minmax(0,1fr)}
.tiles.hub li,.tiles.hub .tl{min-width:0}
}
/* AMAC home: keep the company name whole at 200% text on phones. */
@media(max-width:767px){.w-home .x3h h1{font-size:12vw}}
/* Home headline grows with browser zoom (Safari aA, desktop zoom). At normal zoom it equals 12vw at every phone width from 320 px up, so nothing moves. Measured on z7, see README. */
@media(max-width:767px){.w-home .x3h h1{font-size:max(12vw,min(2.4rem,18vw))}}
/* Home hero starts below the floating header under browser zoom (Safari aA, desktop zoom), where the header wraps. At normal zoom on phones 320 px and up it stays 92 px, and text scaling is unchanged. Measured in seats/bez/review-home-zoom-offset/. */
@media(max-width:767px){.x3h .x3c{padding-top:max(92px,calc(10em - 88px),calc(271px - 56vw))}}
/* Home menu stays reachable under browser zoom: when the open menu is taller than the space under the fixed header, it scrolls inside itself. At normal zoom nothing moves. Measured in seats/bez/review-reflow-1125z9/. */
@media(max-width:1249px){#mnav{max-height:calc(100dvh - 100%);overflow-y:auto;overscroll-behavior:contain}}
/* Inner-page phone menu stays reachable on short phones and under zoom: when the open menu is taller than the space under the sticky header, it scrolls inside itself. When it fits, nothing moves. */
@media(max-width:767px){#mp{max-height:calc(100dvh - 100%);overflow-y:auto;overscroll-behavior:contain}}

/* book online (desk 12-03) */
.bk-form fieldset{border:0;margin:0 0 28px;padding:0;min-width:0}
.bk-form legend{font-weight:700;font-size:1.15rem;margin-bottom:12px}
.bk-form label{display:block;margin:0 0 12px}
.bk-form input:not([type=radio]):not([type=checkbox]),.bk-form textarea{display:block;width:100%;max-width:28rem;margin-top:4px;min-height:44px;font:inherit}
.bk-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.bk-chips label{display:inline-flex;align-items:center;gap:6px;margin:0;border:1px solid var(--outline-variant,#c7c7c7);border-radius:999px;padding:10px 14px;cursor:pointer;min-height:44px}
.bk-chips label:has(input:checked){border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor;font-weight:600}
.bk-row{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.bk-row .bk-zip{margin:0}.bk-zip input{width:8rem!important}
.bk-days{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.bk-day{border:1px solid var(--outline-variant,#c7c7c7);background:var(--surface,#fff);color:inherit;border-radius:12px;padding:12px 16px;font:inherit;cursor:pointer;min-height:44px}
.bk-day[aria-pressed=true]{border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor;font-weight:700}
.bk-form .bk-check{display:flex;gap:8px;align-items:center}
.bk-form fieldset[disabled]{opacity:.55}
.bk-form .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.x3-bkn{display:none}
.x3-book{margin-left:auto;border:2px solid currentColor;border-radius:999px;padding:10px 16px;font:600 15px/1 Roboto,sans-serif;text-decoration:none;white-space:nowrap;color:inherit}
.x3-book+.x3-call{margin-left:10px}
.bkbar{display:none}
@media (max-width:1299px){.x3-book{display:none}.x3-book+.x3-call{margin-left:auto}#mnav .x3-bkn{display:block}}
@media (max-width:767px){.top .bkb{display:none}
.bkbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface,#fff);box-shadow:0 -2px 12px rgba(0,0,0,.12)}
.bkbar a{flex:1;text-align:center;border-radius:999px;padding:13px 12px;font:600 15px/1 Roboto,sans-serif;text-decoration:none}
.bkbar .bkbar-b{background:var(--red,#E00000);color:#fff}
.bkbar .bkbar-c{border:2px solid currentColor;color:inherit}
body{padding-bottom:72px}}
