/* GPS Corp V4.8: responsive refinements. Desktop homepage is intentionally untouched. */
@media (min-width:981px) {
  body.gps-inner-page .gps-subbar>.container {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;min-height:32px!important;}
  body.gps-inner-page .gps-subbar .gps-sub-social {display:flex!important;align-items:center!important;gap:16px!important;white-space:nowrap!important;}
  body.gps-inner-page .gps-subbar .gps-sub-social a {display:inline-flex!important;}
  body.gps-inner-page .header>.gps-header-row {height:76px!important;min-height:76px!important;}
}
@media (max-width:980px) {
  /* Remove desktop-only promotional bars on phones and tablets. */
  .topbar,.gps-subbar,.trust {display:none!important;}
  .header>.gps-header-row {display:grid!important;grid-template-columns:minmax(0,1fr) 38px 38px 38px!important;grid-template-rows:52px 40px!important;gap:8px!important;min-height:0!important;height:auto!important;padding:10px 0 12px!important;align-items:center!important;}
  .header .gps-header-row>.brand {grid-column:1!important;grid-row:1!important;justify-self:start!important;}
  .header .gps-header-row>.brand img {width:clamp(115px,33vw,175px)!important;max-height:46px!important;}
  .header .gps-header-row>.nav {display:none!important;}
  .header .gps-header-row>.gps-lang {grid-column:2!important;grid-row:1!important;}
  .header .gps-header-row>.gps-theme-btn {grid-column:3!important;grid-row:1!important;}
  .header .gps-header-row>.menubtn {display:grid!important;place-items:center!important;grid-column:4!important;grid-row:1!important;width:38px!important;height:38px!important;min-width:38px!important;margin:0!important;}
  .header .gps-header-row>.gps-lang,.header .gps-header-row>.gps-theme-btn {width:38px!important;min-width:38px!important;height:38px!important;}
  .header .gps-header-row>.gps-header-search {grid-column:1 / -1!important;grid-row:2!important;width:100%!important;max-width:none!important;height:40px!important;padding:0 14px!important;}
  .gps-footer-v3 .gps-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:26px 18px!important;text-align:center!important;}
  .gps-footer-v3 .gps-footer-grid>div:first-child,.gps-footer-v3 .gps-footer-grid>div:last-child {grid-column:1/-1!important;}
  .gps-footer-v3 .gps-footer-grid h3,.gps-footer-v3 .gps-footer-grid p {text-align:center!important;}
  .gps-footer-v3 .gps-footer-grid .gps-social {justify-content:center!important;}
  .gps-footer-v3 .gps-footer-grid .gps-cert-grid {text-align:center!important;}
  .gps-footer-v3 .copyright {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:5px!important;}
}
@media (max-width:570px) {
  .header>.gps-header-row {width:calc(100% - 28px)!important;grid-template-columns:minmax(0,1fr) 36px 36px 36px!important;column-gap:7px!important;}
  .header .gps-header-row>.gps-lang,.header .gps-header-row>.gps-theme-btn,.header .gps-header-row>.menubtn {width:36px!important;min-width:36px!important;height:36px!important;}
  .gps-footer-v3 .gps-footer-grid {gap:24px 12px!important;}
  .gps-footer-v3 .gps-footer-grid>div {min-width:0!important;}
  .gps-footer-v3 .gps-footer-grid>div:last-child {width:100%!important;}
  .gps-footer-v3 .gps-footer-grid .gps-cert-grid {width:100%!important;}
}

/* V4.8.1: match homepage subbar, only on inner pages */
body.gps-inner-page .gps-subbar{background:#eef1f5!important;color:#60749b!important;font-size:12px!important}
body.gps-inner-page .gps-subbar>.container{width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;margin-inline:auto!important;min-height:32px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
body.gps-inner-page .gps-subbar .gps-sub-social{display:flex!important;align-items:center!important;gap:17px!important}
body.gps-inner-page .gps-subbar .gps-sub-social a{color:#60749b!important;text-decoration:none!important;font-weight:800!important;font-size:15px!important}
html[data-gps-theme=dark] body.gps-inner-page .gps-subbar{background:#18263a!important;color:#aabbd1!important}
html[data-gps-theme=dark] body.gps-inner-page .gps-sub-social a{color:#c7d8ed!important}

/* V4.8.2: align desktop inner-page promotional subbar with homepage boxed container. */
@media (min-width:981px){body.gps-inner-page .gps-subbar>.container{width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important}}

/* V4.8.3: use the SAME boxed width as the homepage subbar on desktop. */
@media (min-width:981px){body.gps-inner-page .gps-subbar>.container{width:min(1240px,calc(100% - 48px))!important;max-width:1190px!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box!important}}
