/* Muluwin responsive hardening — loaded after all theme styles. */
html {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  max-width: none;
  overflow-x: clip;
}

.site-header,
.site-ticker,
.muluwin-page-main,
#main-content,
.site-footer,
.section-block,
.home-hero,
.entry-content {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.layout-container {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.header-layout,
.home-hero__layout,
.muluwin-page-grid,
.muluwin-showcase-grid,
.section-heading,
.section-card,
.muluwin-wide-banner,
.muluwin-phone-shot,
article,
aside,
main,
section,
header,
footer,
nav {
  min-width: 0;
}

.muluwin-wide-banner img,
.muluwin-phone-shot img,
.section-card img,
.entry-content img,
.wp-block-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Prevent editor content from forcing a wider page. */
.section-card pre,
.entry-content pre,
.section-card table,
.entry-content table {
  max-width: 100%;
  overflow-x: auto;
}

.section-card iframe,
.entry-content iframe,
.section-card video,
.entry-content video {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .site-header,
  .site-ticker,
  .muluwin-page-main,
  #main-content,
  .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .layout-container,
  .header-layout,
  .muluwin-page-hero > .layout-container,
  .section-block > .layout-container {
    width: calc(100% - 28px) !important;
    max-width: none !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .home-hero__layout,
  .muluwin-page-grid,
  .muluwin-showcase-grid,
  .card-grid--3,
  .promo-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-hero__layout,
  .muluwin-page-grid,
  .muluwin-showcase-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  .muluwin-page-grid > *,
  .home-hero__layout > *,
  .muluwin-showcase-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }

  .muluwin-phone-shot {
    position: static !important;
    top: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  .site-nav {
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 980px) {
  .header-layout {
    height: 72px;
    gap: 10px;
  }

  .site-brand__logo {
    width: clamp(132px, 38vw, 180px);
  }

  .site-nav {
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    top: calc(100% - 1px) !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 1000;
  }

  .site-nav__list {
    width: 100%;
  }

  .site-nav__link,
  .site-nav a {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .layout-container,
  .header-layout,
  .muluwin-page-hero > .layout-container,
  .section-block > .layout-container {
    width: calc(100% - 22px) !important;
    margin-left: 11px !important;
    margin-right: 11px !important;
  }

  .section-block {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .muluwin-page-hero {
    padding-top: 34px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h1,
  .muluwin-page-hero h1,
  .entry-content h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .section-card {
    padding: 22px;
    border-radius: 18px;
  }

  .muluwin-wide-banner,
  .muluwin-phone-shot {
    border-radius: 18px;
  }

  .action-row,
  .button-group,
  .hero-buttons,
  .cta-buttons {
    width: 100%;
  }

  .button,
  .wp-block-button__link {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
