/* ==========================================================================
   BLAQ responsive hardening (loaded last)
   - Stops any wide child from stretching the page (iPad/iPhone Safari keeps
     a stale, narrower layout width after rotation when the page overflows).
   - Fluid media, tables, iframes; safe-area padding; tablet fixes.
   ========================================================================== */
html {
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  position: relative;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* Ticker / sliders must never widen the page */
.site-header, .header-topbar, .header-topbar__marquee, .marquee,
.hero, .hero-video, main, footer, .site-footer {
  max-width: 100%;
}
.header-topbar, .header-topbar__marquee, .marquee, .hero { overflow: clip; }
@supports not (overflow: clip) {
  .header-topbar, .header-topbar__marquee, .marquee, .hero { overflow: hidden; }
}

/* Fluid media */
img, video, canvas, svg, iframe, embed, object { max-width: 100%; }
img, video { height: auto; }
.hero-video--embed iframe { max-width: none; } /* intentionally oversized, cropped by wrapper */

/* Long words / URLs never push layout */
h1, h2, h3, h4, p, li, a, td, th { overflow-wrap: anywhere; }
.site-header a, .main-navigation a, nav a { overflow-wrap: normal; }

/* Tables and code scroll inside themselves */
.entry-content table, .woocommerce table.shop_table, .woocommerce-account table {
  display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
pre, code { max-width: 100%; overflow-x: auto; }

/* Notch / home-indicator safe areas */
@supports (padding: max(0px)) {
  .site-header, .site-footer {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* Inputs >=16px on touch so iOS doesn't zoom the page on focus */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea { font-size: max(16px, 1em); }
  a, button { min-height: 40px; }
  .site-footer a, .entry-content a, p a { min-height: 0; }
}

/* iPad landscape / small laptops: use the desktop header, 3-4 col grids */
@media (min-width: 861px) and (max-width: 1194px) {
  .container { padding-left: clamp(1rem, 3vw, 2rem); padding-right: clamp(1rem, 3vw, 2rem); }
  .hero { min-height: min(70vh, 640px); }
}

/* Phones */
@media (max-width: 480px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .woocommerce ul.products { gap: 0.75rem; }
}

/* Short landscape phones: don't let the hero eat the whole screen */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; }
}
