/* Mobile composition and touch controls; desktop keeps its approved layout. */
.mobile-service-credential,.mobile-contact-actions,.product-filter-footer,.ghc-mobile-message {display:none}
@media(max-width:1099px) {
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-artwork {
  order:1;aspect-ratio:2 / 1;flex:none;
 }
 #home-banner-carousel .ghc-slide .ghc-actions {order:2}
 #home-banner-carousel .ghc-slide--video .ghc-video-scene {order:1;aspect-ratio:2 / 1}
 #home-banner-carousel .ghc-slide--image .ghc-image {object-fit:cover;object-position:center}
 #home-banner-carousel .ghc-video-scene :is(.ghc-image,video) {object-fit:cover;object-position:right center}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-copy {
  margin:20px auto 18px!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel :is(.ghc-title,#hero-title) {
  font-size:clamp(1.625rem,4.5vw,2.5rem)!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-actions {
  margin:20px auto 8px!important;gap:10px!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-actions .gm-button {
  min-height:48px!important;padding:12px 16px!important;font-size:1rem!important;line-height:1.4!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .gm-equipment-stage {
  width:min(94%,calc(50vw * 1.77577))!important;height:100%!important;align-self:center!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .gm-equipment-group {
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;
 }
}
/* Match the video and poster framing without an empty side panel. */
@media(min-width:701px) and (max-width:1099px) {
 #home-banner-carousel .ghc-slide--video .ghc-video-scene :is(.ghc-image,video) {
  object-fit:cover;object-position:center 70%;
 }
}
@media(max-width:980px) {
 html[data-visual-theme="consulta"] body #mobilePanel {
  padding:20px 18px calc(24px + env(safe-area-inset-bottom));
  overflow-y:auto;overscroll-behavior:contain;
  max-height:calc(100dvh - var(--header-height));box-sizing:border-box;
 }
 #mobilePanel .v7-mobile-submenu div a {display:flex;align-items:center;min-height:44px;line-height:1.4}
 .mobile-service-credential {
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 12px;
  padding:10px 20px;margin:0;background:#f6f8fb;color:#35445e;
  font-size:.8125rem;line-height:1.5;text-align:center;
 }
 .mobile-service-credential a {color:#07185d;font-weight:650;text-decoration:underline;text-underline-offset:3px}
 html[data-visual-theme="consulta"] body #appMain #productsPage #catalogCount {
  position:static!important;width:auto!important;height:auto!important;margin:6px 0 0!important;
  padding:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;
  white-space:normal!important;display:block!important;color:#53657a;font-size:.875rem;line-height:1.5;
 }
 html[data-visual-theme="consulta"] body #appMain #productsPage .catalog-results-head {display:block!important}
 html[data-visual-theme="consulta"] body #appMain #productsPage .filter-toggle {display:inline-flex!important;min-height:44px!important}
 html[data-visual-theme="consulta"] body #appMain #productsPage .filter-panel .filter-groups {display:none!important}
 html[data-visual-theme="consulta"] body #appMain #productsPage .filter-panel.open .filter-groups {display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 html[data-visual-theme="consulta"] body #appMain #productsPage .filter-panel.open .product-filter-footer {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  margin-top:16px;padding-top:16px;border-top:1px solid #dce3ef;
 }
 .product-filter-footer span {font-size:.875rem;line-height:1.5;color:#53657a}
 .mobile-contact-actions {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  grid-column:1 / -1;
 }
 html[data-visual-theme="consulta"] body #appMain #contactPage .mobile-contact-actions a {
  display:flex;align-items:center;justify-content:center;min-height:48px;
  padding:12px 8px;border:1px solid #dce3ef;border-radius:10px;
  background:#fff;color:#07185d;font-size:.9375rem;line-height:1.4;font-weight:600;
  text-align:center;text-decoration:none;
 }
 html[data-visual-theme="consulta"] body #appMain #contactPage .mobile-contact-actions a:first-child {
  background:#1677ff;color:#fff;border-color:#1677ff;
 }
 #productResultsTitle {scroll-margin-top:88px}
}
@media(max-width:700px) {
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-artwork,#home-banner-carousel .ghc-slide--video .ghc-video-scene {aspect-ratio:5 / 3}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .gm-equipment-stage {
  width:94%!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-actions {
  width:min(calc(100% - 40px),400px)!important;
 }
}
@media(max-width:620px) {
 html[data-visual-theme="consulta"] body #mobilePanel {max-height:calc(100dvh - var(--header-height))}
}
@media(max-width:600px) {
 html[data-visual-theme="consulta"] body #appMain #productsPage .catalog-product-visual {height:220px!important}
 html[data-visual-theme="consulta"] body #appMain #productsPage .catalog-pagination button {
  min-width:44px!important;min-height:44px!important;
 }
 .product-filter-footer .btn {width:100%}
}
@media(max-width:560px) {
 .gc-widget .gc-header #griddyChatClose,.gc-widget .gc-thread-header [data-gc-action="minimize"] {
  width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
  padding:12px!important;align-self:center!important;
 }
}
@media(max-width:380px) {
 .mobile-contact-actions {grid-template-columns:1fr 1fr}
 .mobile-contact-actions a:last-child {grid-column:1 / -1}
}

/* Approved mobile composition: copy on the artwork, fixed action row,
   and six native category photographs in an open two-column grid. */
@media(max-width:700px) {
 html[data-visual-theme="consulta"] body #header,html[data-visual-theme="consulta"] body #header .v7-header-inner {height:var(--header-height)}
 html[data-visual-theme="consulta"] body #header .v7-header-inner {
  display:grid;grid-template-columns:auto minmax(0,1fr) 44px;
  width:min(var(--content-width),100%);padding-inline:var(--layout-gutter);gap:var(--space-3);
 }
 html[data-visual-theme="consulta"] body #header .portal-wordmark {height:30px;width:auto}
 html[data-visual-theme="consulta"] body #header .mobile-header-authority {
  display:block;justify-self:end;color:#07185d;font-size:var(--font-small);
  line-height:1.3;font-weight:600;white-space:nowrap;
 }
 html[data-visual-theme="consulta"] body #mobilePanel {
  top:var(--header-height);max-height:calc(100dvh - var(--header-height));
 }
 #home-banner-carousel .mobile-service-credential {display:none}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel {
  --ghc-mobile-artwork-height:calc(100vw * 5 / 8);
  --ghc-mobile-scene-top:calc(24px + var(--ghc-copy-height,70px) + 12px);
  --ghc-mobile-scene-height:calc(var(--ghc-mobile-artwork-height) - var(--ghc-mobile-scene-top) - 12px);
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-artwork {
  aspect-ratio:8 / 5!important;height:var(--ghc-mobile-artwork-height)!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-copy {
  position:absolute!important;left:24px!important;top:24px!important;
  width:calc(100% - 48px)!important;height:auto!important;margin:0!important;
  pointer-events:none;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel :is(.ghc-title,#hero-title) {
  color:#fff!important;text-align:left!important;font-size:clamp(22px,6.5vw,30px)!important;
  font-weight:650!important;line-height:1.16!important;letter-spacing:-.03em!important;
  min-height:0!important;text-shadow:0 2px 12px #02091f66!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-brand {
  color:#f4510b!important;font-style:italic;font-weight:700;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel #hero-title>.gm-type-line {display:none!important}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-mobile-message,html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-mobile-message>span {display:block!important}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-slide--products .ghc-artwork,html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel #inicio.griddy-mesh-hero {background:#07185d!important}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-slide--products .gm-hero-content {
  position:absolute!important;inset:var(--ghc-mobile-scene-top) 16px 12px!important;
  width:auto!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
  grid-template-rows:minmax(0,1fr)!important;gap:0!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-slide--products .gm-equipment-stage {
  width:min(100%,calc(var(--ghc-mobile-scene-height) * 1.77577))!important;
  height:auto!important;min-height:0!important;max-height:100%!important;
  aspect-ratio:1671 / 941;margin:0!important;align-self:center!important;justify-self:center!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-slide--products .gm-equipment-group {
  width:100%!important;height:auto!important;min-height:0!important;
  animation:none!important;transform:none!important;scale:1!important;
 }
 /* Open the building scene below the common headline, using dusk sky above. */
 #home-banner-carousel #home-banner-energy .ghc-artwork {
  background:linear-gradient(110deg,#294d7b,#3e5980);
 }
 #home-banner-carousel #home-banner-energy .ghc-image {
  position:absolute;inset:var(--ghc-mobile-scene-top) 0 0;
  height:calc(var(--ghc-mobile-artwork-height) - var(--ghc-mobile-scene-top))!important;
  object-fit:cover;object-position:center bottom;
  animation:none!important;transform:none!important;scale:1!important;
 }
 #home-banner-carousel #home-banner-energy .ghc-artwork::after {
  content:"";position:absolute;left:0;right:0;top:var(--ghc-mobile-scene-top);
  height:18px;background:linear-gradient(180deg,#31537c99,transparent);
  pointer-events:none;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-actions {
  position:relative!important;left:auto!important;top:auto!important;
  grid-template-columns:minmax(0,.48fr) minmax(0,.52fr)!important;
  width:calc(100% - 40px)!important;max-width:none!important;
  margin:44px auto 8px!important;gap:10px!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .ghc-actions .gm-button {
  min-width:0!important;min-height:52px!important;padding:6px 8px!important;
  font-size:clamp(.8125rem,3.59vw,.875rem)!important;line-height:1.35!important;
  font-weight:600!important;gap:6px!important;border-radius:8px!important;
  box-shadow:0 2px 7px #07185d0d!important;
 }
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .gm-button-primary {white-space:nowrap!important}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .gm-button-secondary {border:1px solid #07185d!important}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .gm-button-secondary .gm-icon {display:none!important}
 #home-banner-carousel .ghc-service-tail {display:block}
 #home-banner-carousel .ghc-controls {
  position:absolute;left:0;right:0;top:var(--ghc-mobile-artwork-height);bottom:auto;
  width:100%;height:44px;margin:0;padding:0;gap:0;background:#fff;
 }
 #home-banner-carousel .ghc-dot span {width:7px!important;height:7px;background:#c6ccd7!important}
 #home-banner-carousel .ghc-dot.is-active span {background:#f4510b!important}
 #home-banner-carousel .ghc-dot span {box-shadow:none}
}
@media(max-width:359px) {
 html[data-visual-theme="consulta"] body #header .v7-header-inner {padding-inline:var(--layout-gutter);gap:var(--space-3)}
 html[data-visual-theme="consulta"] body #header .mobile-header-authority {font-size:var(--font-small)}
 html[data-visual-theme="consulta"] body #appMain #griddy-showcase.gm-home-reference #home-banner-carousel .gm-button-primary .gm-icon {display:none!important}
}
@layer griddy-chat {
 @media(max-width:700px) {
  .gc-widget .gc-launcher,.gc-widget .gc-toggle.gc-toggle-icon-only {
   width:46px!important;height:46px!important;min-height:46px!important;
  }
  .gc-widget .gc-toggle.gc-toggle-icon-only>svg {width:24px!important;height:24px!important}
  .gc-widget .gc-launcher-tooltip {right:60px!important}
 }
}
