
/* Homepage desktop/mobile layout correction: specifically keeps both viewport sizes stable. */
@media(min-width:981px){
  .ub-home-hero{padding:clamp(68px,7vw,104px) 28px!important}
  .ub-home-hero .ub-home-hero-columns{display:grid!important;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);gap:clamp(32px,4vw,76px);max-width:1180px;margin:0 auto!important;align-items:center}
  .ub-home-hero .ub-home-hero-columns>.wp-block-column{min-width:0!important;flex-basis:auto!important;width:auto!important}
  .ub-home-hero h1{font-size:clamp(48px,5vw,72px);max-width:700px;line-height:1.07;letter-spacing:-.055em}
  .ub-home-hero .ub-hero-graphic{width:100%;max-width:420px}
  .ub-home-hero .wp-block-search{max-width:575px}
  .ub-home-section{max-width:1180px;margin:0 auto;padding-left:22px;padding-right:22px}
  .ub-home-tiles{max-width:1180px;margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr))}
  .ub-home-tool-section>.wp-block-columns{max-width:1180px;margin-inline:auto;align-items:center;gap:65px}
  .ub-home-tool-section>.wp-block-columns>.wp-block-column{min-width:0}
}
@media(min-width:781px) and (max-width:980px){
  .ub-home-hero .ub-home-hero-columns{display:flex!important;flex-direction:column!important;max-width:720px;margin-inline:auto!important;gap:35px}
  .ub-home-hero .ub-home-hero-columns>.wp-block-column{width:100%!important;flex-basis:auto!important;max-width:100%!important}
  .ub-home-hero .ub-hero-graphic{max-width:560px;margin:auto;transform:none}
  .ub-home-hero h1{max-width:720px;font-size:clamp(45px,6vw,59px)}
  .ub-home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .ub-home-hero .ub-home-hero-columns{display:flex!important;flex-direction:column!important;gap:27px}
  .ub-home-hero .ub-home-hero-columns>.wp-block-column{flex-basis:auto!important;width:100%!important;max-width:100%!important}
  .ub-home-hero .wp-block-columns,.ub-home-tool-section .wp-block-columns{margin-bottom:0}
  .ub-home-hero .wp-block-search__inside-wrapper{display:flex!important;min-width:0!important}
  .ub-hero-graphic{transform:none!important}
}
@media(max-width:540px){
  .ub-home-hero{padding-inline:17px!important}
  .ub-home-hero h1{font-size:clamp(33px,8vw,42px)!important;max-width:100%;line-height:1.12!important}
  .ub-home-hero .ub-home-hero-columns{gap:22px!important}
  .ub-home-hero .wp-block-search{margin-bottom:0;max-width:100%}
  .ub-home-hero .wp-block-search__inside-wrapper{display:flex!important;flex-direction:row!important;gap:6px}
  .ub-home-hero .wp-block-search__input{flex:1 1 0!important;min-width:0!important;width:auto!important}
  .ub-home-hero .wp-block-search__button{flex:0 0 auto!important;white-space:nowrap}
  .ub-home-hero .ub-hero-graphic{width:100%!important;max-width:100%!important}
  .ub-home-tiles{grid-template-columns:1fr!important}
  .ub-home-section{max-width:100%;box-sizing:border-box}
}
@media(max-width:360px){
  .ub-home-hero .wp-block-search__button{padding:8px 10px!important}
  .ub-home-hero .ub-kicker{font-size:10px}
}

/* USABite mobile-first responsive hardening, 2026-10 */
html,body{max-width:100%;min-width:0}
html{overflow-x:clip}
body,#page,#wrapper,.site,.site-content,#inner-wrap,.content-container,.site-container,.entry-content,.entry-content-wrap,.wp-site-blocks{min-width:0;max-width:100%;overflow-wrap:break-word}
#inner-wrap,.content-container,.site-container{box-sizing:border-box}
.entry-content,.wp-block-group,.wp-block-columns,.wp-block-column,.wp-block-query,.wp-block-post-template{min-width:0}
img,svg,video,iframe{max-width:100%;height:auto}
.ub-header .ub-mark,.ub-icon-btn svg{height:initial}
:where(.entry-content,.wp-block-group) :is(pre,table,.wp-block-table,code){max-width:100%}
.entry-content pre,.wp-block-preformatted{overflow:auto;-webkit-overflow-scrolling:touch}
.wp-block-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.wp-block-embed iframe{max-width:100%}
.wp-block-columns{min-width:0}
.wp-block-column{min-width:0}
.ub-header{width:100%;max-width:100%;box-sizing:border-box}
.ub-header-inner{box-sizing:border-box;width:100%;max-width:1180px}
.ub-actions{flex-shrink:0}
.ub-header .ub-brand{flex-shrink:0}
.ub-home-hero,.ub-home-tool-section{box-sizing:border-box}
.ub-hero-graphic{box-sizing:border-box;width:100%}
.ub-page-hero,.ub-home-section,.ub-footer-inner,.ub-tiles{box-sizing:border-box;width:100%}
.ub-tiles{max-width:1180px}
.ub-tool{box-sizing:border-box}
.ub-affiliate-card,.ub-toc{box-sizing:border-box;max-width:100%}
.wp-block-search,.wp-block-search__inside-wrapper{max-width:100%;width:100%;box-sizing:border-box}
.wp-block-search__input{min-width:0!important;width:100%;flex:1 1 120px;box-sizing:border-box}
.wp-block-search__button{flex-shrink:0}
.entry-content :is(h1,h2,h3){overflow-wrap:break-word;hyphens:auto}
@media(max-width:1024px){
  .ub-header-inner{padding-inline:18px}
  .ub-home-hero{padding:60px 24px}
  .ub-home-tool-section{padding:52px 24px}
  .ub-home-section{padding:42px 24px 20px}
  .ub-tiles{padding:0 24px 36px;gap:14px}
  .ub-footer-grid{gap:26px}
  .ub-page-hero{padding:55px 24px 32px}
}
@media(max-width:780px){
  .ub-header{backdrop-filter:none}
  .ub-header-inner{min-height:64px}
  .ub-nav{display:none;position:absolute;left:0;right:0;top:100%;width:100%;max-height:calc(100dvh - 65px);overflow-y:auto;flex-direction:column;align-items:stretch;gap:0;padding:10px 20px 16px;background:var(--ub-card);border:1px solid var(--ub-border);border-left:0;border-right:0;box-shadow:0 15px 25px rgba(15,23,42,.12);box-sizing:border-box}
  .ub-nav.is-open{display:flex}
  .ub-nav a{display:flex;align-items:center;font-size:15px;min-height:46px;padding:9px 12px;border-radius:8px}
  .ub-mobile-menu{display:grid}
  .ub-header .ub-search-wrap{top:calc(100% - 1px);left:12px;right:12px;width:auto;max-width:none}
  .ub-home-hero{padding:50px 22px 48px}
  .ub-home-hero .wp-block-columns{display:flex;flex-direction:column;gap:30px}
  .ub-home-hero .wp-block-columns>.wp-block-column{width:100%!important;flex-basis:auto!important;min-width:0}
  .ub-home-hero h1{font-size:clamp(37px,8.5vw,52px);line-height:1.1;max-width:100%;letter-spacing:-.05em;margin:16px 0 20px}
  .ub-home-hero p:not(.ub-kicker){font-size:16px;line-height:1.65}
  .ub-hero-graphic{max-width:500px;margin:10px auto 0;transform:none}
  .ub-home-tool-section .wp-block-columns{display:flex;flex-direction:column;gap:30px}
  .ub-home-tool-section .wp-block-column{width:100%;flex-basis:auto!important}
  .ub-page-hero h1{font-size:clamp(36px,7.8vw,52px)}
  .ub-page-hero p{font-size:16px}
  .ub-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ub-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ub-footer-brand-col{grid-column:1/-1}
  .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile){display:flex;flex-direction:column}
  .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:auto!important;width:100%}
  .wp-block-query ul.wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .ub-header-inner{padding:0 12px;min-height:60px;gap:5px}
  .ub-header .ub-brand{font-size:21px;letter-spacing:-.06em;gap:6px}
  .ub-header .ub-mark{width:26px;height:26px}
  .ub-actions{gap:4px}
  .ub-icon-btn{min-width:40px;min-height:44px;width:40px;height:44px;padding:8px;border-radius:10px}
  .ub-icon-btn svg{width:19px;height:19px}
  .ub-home-hero{padding:40px 17px 39px}
  .ub-home-hero h1{font-size:clamp(34px,8.3vw,43px);letter-spacing:-.045em;line-height:1.12}
  .ub-home-hero .ub-kicker{font-size:11px;letter-spacing:.1em;line-height:1.5}
  .ub-home-hero .wp-block-search{margin-top:23px}
  .ub-home-hero .wp-block-search__inside-wrapper{gap:6px}
  .ub-home-hero .wp-block-search__input{font-size:14px;padding:10px 12px;min-height:46px}
  .ub-home-hero .wp-block-search__button{min-height:46px;padding:9px 13px}
  .ub-hero-graphic{padding:16px;border-radius:16px}
  .ub-hero-graphic-title{font-size:22px}
  .ub-hero-mini{padding:10px 11px;gap:10px}
  .ub-hero-mini strong{min-width:34px;text-align:center}
  .ub-hero-mini span{font-size:12px}
  .ub-hero-mini small{font-size:10px}
  .ub-home-section{padding:36px 17px 12px}
  .ub-home-section h2{font-size:clamp(27px,7vw,33px);line-height:1.2}
  .ub-tiles{padding:0 17px 24px;grid-template-columns:1fr;gap:11px}
  .ub-tile{padding:22px 20px}
  .ub-tile h2{font-size:21px}
  .ub-page-hero{padding:42px 17px 24px}
  .ub-page-hero h1{font-size:clamp(33px,8.2vw,42px)}
  .ub-page-hero p{font-size:16px}
  .ub-home-tool-section{padding:38px 18px}
  .ub-home-tool-section h2{font-size:31px}
  .ub-demo-counter{padding:13px;gap:8px}
  .ub-demo-counter div{padding:14px 10px}
  .ub-demo-counter strong{font-size:24px}
  .wp-block-query ul.wp-block-post-template.is-layout-grid{grid-template-columns:1fr}
  .wp-block-query .wp-block-post{width:100%;box-sizing:border-box}
  .ub-tool{margin:0 14px 36px;padding:17px}
  .ub-tool textarea{font-size:16px;min-height:180px}
  .ub-tool-stats{gap:6px}
  .ub-tool-stat{padding:12px 4px}
  .ub-tool-stat strong{font-size:17px}
  .ub-tool-stat span{font-size:10px}
  .ub-footer-inner{padding:36px 18px 23px}
  .ub-footer-grid{grid-template-columns:1fr;gap:18px}
  .ub-footer-brand-col{grid-column:auto}
  .ub-footer h2{margin:0 0 10px}
  .ub-footer a:not(.ub-brand){margin-bottom:9px}
  .ub-footer-bottom{margin-top:26px;line-height:1.6}
  .entry-content .wp-block-table table{min-width:480px}
  .entry-content p,.entry-content li{overflow-wrap:anywhere}
}
@media(max-width:359px){
  .ub-header .ub-brand{font-size:18px}
  .ub-header .ub-mark{width:22px;height:22px}
  .ub-icon-btn{min-width:37px;width:37px;height:42px;min-height:42px}
  .ub-header-inner{padding:0 8px}
  .ub-home-hero h1{font-size:32px}
  .ub-home-hero .wp-block-search__button{padding:8px 10px}
}

/* Homepage FIX 2026-10-12: Gutenberg alignfull was creating a negative
   margin relative to the Kadence full-width content container. The actual
   blocks now use normal flow. The section backgrounds bleed independently,
   but all text/cards remain in a bounded centered container. */
.ub-home-hero,
.ub-home-tool-section {
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box;
  isolation:isolate;
}
.ub-home-hero {
  padding:clamp(52px,6vw,90px) clamp(18px,3vw,42px)!important;
}
.ub-home-tool-section {
  background:#0f172a;
  color:#fff;
  padding:clamp(42px,5vw,68px) clamp(20px,4vw,56px)!important;
}
.ub-home-hero::before,.ub-home-tool-section::before{
  content:"";
  position:absolute;
  width:100vw;
  top:0;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  pointer-events:none;
  z-index:-1;
}
.ub-home-hero::before {
  background:linear-gradient(118deg,#eff6ff 0%,#f8fbff 55%,#fff 100%);
}
.ub-home-tool-section::before { background:#0f172a; }
.ub-home-hero > .wp-block-columns,
.ub-home-tool-section > .wp-block-columns{
  width:100%;
  max-width:100%;
  margin:0 auto!important;
  box-sizing:border-box;
}
.ub-home-tool-section > .wp-block-columns {
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
  gap:clamp(24px,4.5vw,66px)!important;
  align-items:center!important;
}
.ub-home-tool-section > .wp-block-columns > .wp-block-column {
  flex-basis:auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.ub-home-tool-section .ub-demo-counter {
  width:100%;
  max-width:410px;
  box-sizing:border-box;
}
.ub-home-tool-section h2,
.ub-home-tool-section p:not(.ub-kicker) {color:#fff!important}
.ub-home-tool-section .ub-kicker {color:#93c5fd!important}
.ub-home-tool-section .ub-demo-counter small{color:#94a3b8!important}
@media(min-width:981px){
  .ub-home-hero > .ub-home-hero-columns{
    max-width:100%;
    width:100%;
    margin:0!important;
  }
}
@media(max-width:900px){
  .ub-home-tool-section > .wp-block-columns{
    grid-template-columns:minmax(0,1fr)!important;
    gap:30px!important;
  }
  .ub-home-tool-section > .wp-block-columns > .wp-block-column{
    width:100%!important;
    max-width:100%!important;
  }
  .ub-home-tool-section .ub-demo-counter{margin:0 auto}
}
@media(max-width:540px){
  .ub-home-hero{padding:40px 18px 44px!important}
  .ub-home-tool-section{padding:44px 18px!important}
  .ub-home-tool-section h2{font-size:clamp(28px,8vw,36px);line-height:1.2;overflow-wrap:normal}
  .ub-home-tool-section p{font-size:15px;line-height:1.7}
  .ub-home-tool-section > .wp-block-columns{gap:24px!important}
  .ub-home-tool-section .wp-block-buttons,
  .ub-home-tool-section .wp-block-button {max-width:100%}
  .ub-home-tool-section .wp-block-button__link{white-space:normal;text-align:center;min-width:0}
}
html[data-ub-theme="dark"] .ub-home-hero::before{
  background:linear-gradient(115deg,#0b1220,#142239);
}

/* Gutenberg wraps Group block children in an inner container.
   Target actual rendered DOM, not only the source block's direct children. */
.ub-home-hero > .wp-block-group__inner-container,
.ub-home-tool-section > .wp-block-group__inner-container {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box;
}
.ub-home-hero > .wp-block-group__inner-container > .ub-home-hero-columns {
  min-width:0;
  width:100%;
  max-width:100%;
  margin:0!important;
}
.ub-home-tool-section > .wp-block-group__inner-container > .wp-block-columns {
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
  align-items:center!important;
  gap:clamp(24px,4.5vw,66px)!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
}
.ub-home-tool-section > .wp-block-group__inner-container > .wp-block-columns > .wp-block-column {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  flex-basis:auto!important;
  margin:0!important;
}
@media(min-width:981px) {
  .ub-home-hero > .wp-block-group__inner-container > .ub-home-hero-columns {
    display:grid!important;
    grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr)!important;
    gap:clamp(25px,4vw,64px)!important;
    align-items:center!important;
  }
  .ub-home-hero > .wp-block-group__inner-container > .ub-home-hero-columns > .wp-block-column {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex-basis:auto!important;
  }
}
@media(max-width:980px) {
  .ub-home-hero > .wp-block-group__inner-container > .ub-home-hero-columns {
    display:flex!important;
    flex-direction:column!important;
    gap:30px!important;
  }
  .ub-home-hero > .wp-block-group__inner-container > .ub-home-hero-columns > .wp-block-column {
    width:100%!important;
    flex-basis:auto!important;
    max-width:100%!important;
  }
}
@media(max-width:900px){
  .ub-home-tool-section > .wp-block-group__inner-container > .wp-block-columns{
    grid-template-columns:minmax(0,1fr)!important;
    gap:30px!important;
  }
}
@media(max-width:540px) {
  .ub-home-hero > .wp-block-group__inner-container > .ub-home-hero-columns {
    gap:20px!important;
  }
  .ub-home-tool-section > .wp-block-group__inner-container > .wp-block-columns {
    gap:23px!important;
  }
}

/* Prevent form/control overflow on narrow tool and contact pages. */
.ub-tool textarea,
.ub-tool input,
.wpcf7-form input:not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea,
.wpcf7-form select {
  box-sizing:border-box;
  max-width:100%;
}
.ub-tool textarea,.wpcf7-form textarea {width:100%}
@media(max-width:540px) {
  .ub-home-tool-section .ub-demo-counter {
    width:100%!important;
    min-width:0!important;
  }
  .ub-home-hero .wp-block-search__inside-wrapper {
    min-width:0!important;
    max-width:100%!important;
  }
}



