/* MEGAMAX fidelity patch: isolated styles for shared navigation and footer */
.mmx-site-header{position:sticky;top:0;z-index:99999;width:100%;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:7px clamp(14px,3vw,34px);background:#1155cc;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2);font-family:Arial,Helvetica,sans-serif;box-sizing:border-box}
.mmx-site-header *{box-sizing:border-box}
.mmx-site-brand{display:flex;align-items:center;gap:10px;color:#fff!important;text-decoration:none!important;font-weight:800;letter-spacing:.4px;font-size:18px;white-space:nowrap}
.mmx-site-brand img{width:38px;height:38px;object-fit:contain;border-radius:50%;background:#fff;border:1px solid rgba(255,255,255,.8)}
.mmx-primary-nav{display:flex;align-items:center;justify-content:flex-end;gap:clamp(10px,2vw,27px)}
.mmx-primary-nav a{display:inline-block;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:700;letter-spacing:.25px;padding:10px 0;border-bottom:2px solid transparent;white-space:nowrap}
.mmx-primary-nav a:hover,.mmx-primary-nav a:focus-visible,.mmx-primary-nav a[aria-current=page]{border-bottom-color:#fff}
.mmx-primary-nav a:focus-visible,.mmx-site-brand:focus-visible,.mmx-menu-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.mmx-menu-toggle{display:none;background:transparent;border:1px solid rgba(255,255,255,.75);border-radius:4px;color:#fff;font-size:24px;line-height:1;padding:5px 10px;cursor:pointer}
.mmx-shared-footer{display:block!important;clear:both;width:100%;margin:0!important;padding:34px 24px 18px!important;background:#1155cc!important;color:#fff!important;text-align:center!important;font-family:Arial,Helvetica,sans-serif!important;line-height:1.5!important;box-sizing:border-box!important;position:relative;z-index:1}
.mmx-shared-footer *{box-sizing:border-box}
.mmx-footer-columns{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;align-items:start;width:100%;max-width:1180px;margin:0 auto}
.mmx-shared-footer .mmx-footer-column{display:block!important;float:none!important;width:auto!important;min-width:0;padding:0 8px!important;margin:0!important;background:transparent!important;color:#fff!important;text-align:center!important}
.mmx-shared-footer h2{margin:0 0 14px!important;padding:0!important;color:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;font-weight:700!important;line-height:1.4!important}
.mmx-shared-footer h3{margin:13px 0 3px!important;padding:0!important;color:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-size:13px!important;font-weight:700!important;line-height:1.5!important}
.mmx-shared-footer p{margin:0!important;padding:0!important;color:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-size:13px!important;font-weight:400!important;line-height:1.8!important}
.mmx-shared-footer a,.mmx-shared-footer a:visited{color:#fff!important;text-decoration:underline!important;text-underline-offset:2px}
.mmx-shared-footer a:hover{opacity:.8}
.mmx-footer-group{margin-top:7px}.mmx-footer-hours{margin-top:0;margin-bottom:12px}.mmx-footer-address p{max-width:320px;margin:0 auto!important}
.mmx-footer-copyright{width:100%;max-width:1180px;margin:28px auto 0!important;padding:14px 0 0!important;border-top:1px solid rgba(255,255,255,.5)}
.mmx-footer-copyright p{font-size:12px!important}
@media(max-width:800px){.mmx-site-header{flex-wrap:wrap;min-height:54px;padding:7px 14px}.mmx-site-brand{font-size:16px}.mmx-site-brand img{width:34px;height:34px}.mmx-menu-toggle{display:inline-block;margin-left:auto}.mmx-primary-nav{display:none;flex:0 0 calc(100% + 28px);width:calc(100% + 28px);margin:0 -14px -7px;padding:8px 18px 14px;background:#1155cc;align-items:stretch;flex-direction:column;gap:0}.mmx-primary-nav.mmx-open{display:flex}.mmx-primary-nav a{padding:12px 3px;border-bottom:1px solid rgba(255,255,255,.25)}.mmx-footer-columns{grid-template-columns:1fr;gap:26px}.mmx-shared-footer{padding:28px 18px 18px!important}.mmx-shared-footer .mmx-footer-column{max-width:520px;margin:0 auto!important;padding:0!important}.mmx-footer-copyright{margin-top:24px!important}}

/* Shared page-flow correction: keep Google Sites content and the footer in normal document flow. */
html, body{height:auto!important;min-height:100%!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important}
body{display:flex!important;flex-direction:column!important;align-items:stretch!important}
body > div[jscontroller="pc62j"]{position:relative!important;display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;transform:none!important}
body > div[jscontroller="pc62j"] > div{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body > div[jscontroller="YV8yqd"]{flex:0 0 auto!important}
.mmx-shared-footer{position:relative!important;inset:auto!important;flex:0 0 auto!important;float:none!important;clear:both!important;order:999!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;transform:none!important;opacity:1!important;visibility:visible!important;margin-top:0!important}
.mmx-shared-footer .mmx-footer-columns{display:grid!important}
.mmx-shared-footer .mmx-footer-column{visibility:visible!important;opacity:1!important}
/* Survey content must be allowed to grow to its natural full height. */
body.mmx-survey-page > div[jscontroller="pc62j"],
body.mmx-survey-page > div[jscontroller="pc62j"] #s9iPrd,
body.mmx-survey-page > div[jscontroller="pc62j"] #s9iPrd > div,
body.mmx-survey-page > div[jscontroller="pc62j"] [role="main"]{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;contain:none!important}
@media(max-width:760px){.mmx-footer-columns{grid-template-columns:1fr!important}.mmx-shared-footer{padding:28px 18px 18px!important}}


/* Fix 1: the Google Sites export contains a second, mostly empty footer.
   Hide that exported footer; the shared MEGAMAX footer is the only footer shown. */
body > div[jscontroller="pc62j"] footer[jsname="yePe5c"]{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}



/* Troubleshooting2 corrections: allow Google Sites content wrappers to size to content.
   The exported Google Sites layout uses nested wrappers; fixing only the outer wrapper
   allowed the shared footer to overlap content on Welcome and Terms. */
body:not(.mmx-survey-page) > div[jscontroller="pc62j"],
body:not(.mmx-survey-page) > div[jscontroller="pc62j"] .QZ3zWd,
body:not(.mmx-survey-page) > div[jscontroller="pc62j"] .fktJzd,
body:not(.mmx-survey-page) > div[jscontroller="pc62j"] .T4nCLe,
body:not(.mmx-survey-page) > div[jscontroller="pc62j"] [role="main"] {
  height:auto!important; min-height:0!important; max-height:none!important;
  overflow:visible!important; contain:none!important; transform:none!important;
}
/* The form is externally hosted; keep its existing embed height and avoid creating
   artificial 1900–2100px blank space below the footer. */
body.mmx-survey-page iframe.pxjVId { height:500px!important; min-height:500px!important; max-height:none!important; }
/* Reserve a small clean cover over the third-party attribution badge only. */
body.mmx-survey-page .YMEQtf { position:relative!important; }


/* Troubleshooting3: use the supplied MEGAMAX logo image in the shared navigation. */
.mmx-site-brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important}
.mmx-site-brand img{display:block!important;width:42px!important;height:42px!important;max-width:42px!important;object-fit:contain!important}
@media(max-width:800px){.mmx-site-brand img{width:36px!important;height:36px!important;max-width:36px!important}}

/* Survey: keep the exported page content (including the heading and form) above the footer. */
body.mmx-survey-page{display:flex!important;flex-direction:column!important;min-height:100vh!important}
body.mmx-survey-page > header.mmx-site-header{order:0!important;flex:0 0 auto!important}
body.mmx-survey-page > div[jscontroller="pc62j"]{order:1!important;flex:0 0 auto!important;width:100%!important}
body.mmx-survey-page > footer.mmx-shared-footer{order:2!important;flex:0 0 auto!important;margin-top:0!important}
body.mmx-survey-page .YMEQtf{height:500px!important;min-height:500px!important;max-height:none!important;overflow:visible!important}
body.mmx-survey-page iframe.pxjVId{display:block!important;width:100%!important;height:500px!important;min-height:500px!important;max-height:none!important;border:0!important}
