/* Emira360 — phone and small-tablet layout. Loaded after the page's own styles. */
img,svg,video,figure{max-width:100%}
figure{min-width:0}
.m-menu-btn,.m-menu{display:none}

@media (max-width: 820px){
  html,body{overflow-x:hidden}
  /* wide multi-column grids become one column */
  [style*="grid-template-columns: repeat(6"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4, minmax"]{grid-template-columns:1fr!important}
  [style*="grid-column: span"]{grid-column:auto!important}
  [style*="minmax(320px"],[style*="minmax(300px"]{grid-template-columns:1fr!important}
}

@media (max-width: 760px){
  /* header + menu */
  header nav[aria-label="Main"]{display:none!important}
  .m-menu-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:auto;border:0;background:none;border-radius:10px;cursor:pointer;color:#1D1D1F}
  .m-menu-btn+a{margin-left:4px!important}
  header > div{gap:8px!important;padding:0 16px!important}
  header a[href^="/welcome"]{padding:7px 12px!important}
  .m-menu{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','SF Pro Text','Inter','Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased;position:fixed;left:0;right:0;top:52px;bottom:0;z-index:50;background:rgba(255,255,255,.98);backdrop-filter:blur(20px);padding:12px 20px 32px;overflow:auto}
  .m-menu.open{display:block}
  .m-menu a{display:block;padding:16px 4px;border-bottom:1px solid #E8E8ED;font-size:22px;font-weight:600;letter-spacing:-.02em;color:#1D1D1F;text-decoration:none}
  .m-menu a.cta{margin-top:24px;border:0;background:#12372A;color:#fff;text-align:center;border-radius:980px;font-size:18px;padding:15px}
  .m-menu a.wa{border:0;background:#25D366;color:#fff;text-align:center;border-radius:980px;font-size:18px;padding:15px;margin-top:10px}

  /* type */
  h1{font-size:40px!important;line-height:1.07!important;letter-spacing:-.03em!important}
  h2{font-size:30px!important;line-height:1.12!important}
  [style*="font-size: 120px"]{font-size:84px!important}
  [style*="font-size: 32px"]{font-size:26px!important}
  [style*="font-size: 28px"]{font-size:24px!important}
  [style*="font-size: 22px"],[style*="font-size: 21px"]{font-size:18px!important}
  [style*="font-size: 19px"]{font-size:17px!important}

  /* spacing */
  section > div{padding-left:16px!important;padding-right:16px!important}
  [style*="padding: 130px"],[style*="padding: 120px"],[style*="padding: 110px"],[style*="padding: 100px"]{padding-top:64px!important;padding-bottom:64px!important}
  [style*="padding: 80px 24px"],[style*="padding: 96px 24px"]{padding-top:48px!important}
  [style*="padding: 44px"],[style*="padding: 48px"],[style*="padding: 40px"],[style*="padding: 36px"]{padding:24px!important}
  [style*="margin-top: 72px"],[style*="margin: 72px"]{margin-top:40px!important}
  [style*="margin-top: 64px"],[style*="margin: 64px"]{margin-top:36px!important}
  [style*="gap: 96px"],[style*="gap: 64px"],[style*="gap: 56px"],[style*="gap: 48px"]{gap:28px!important;flex-wrap:wrap!important}
  [style*="min-height: 340px"]{min-height:0!important}

  /* side-by-side blocks stack */
  [style*="flex: 1 1"],[style*="flex: 1.2 1"],[style*="flex: 1.35 1"],[style*="flex: 1.6 1"]{flex-basis:100%!important;min-width:0!important}
  [style*="position: sticky; top: 90px"]{position:static!important}
  nav[aria-label="On this page"]{display:none!important}

  /* tables */
  table[style*="min-width: 560px"]{min-width:0!important}
  th[style*="width: 140px"]{width:auto!important;font-size:15px!important;padding-left:6px!important}
  td,th{word-break:normal}
  .tablewrap,table{max-width:100%}

  /* home hero: laptop mockup */
  [style*="width: 300px; background: #FFFFFF; border-radius: 12px"]{display:none!important}
  [style*="width: 170px; background: #12372A"]{display:none!important}
  [style*="display: flex; height: 470px"]{height:280px!important}
  [aria-hidden="true"][style*="position: absolute; inset: 0"]{opacity:.45}
  [style*="right: -24px; bottom: -40px"]{position:relative!important;right:auto!important;bottom:auto!important;margin:24px auto 0!important}

  /* owners: laptop + phone + tablet sets */
  .trio-wrap{height:auto!important;margin-top:36px!important}
  .trio-wrap > div{position:static!important}
  .trio{height:340px!important;max-width:100%!important;overflow:hidden;margin:0 auto}
  .trio > div:nth-child(1){left:-6%!important;top:56px!important;width:250px!important;opacity:.95}
  .trio > div:nth-child(2){right:-4%!important;top:44px!important}
  .trio > div:nth-child(2) > div{width:150px!important}
  .trio > div:nth-child(3) > div{width:150px!important}
  .trio-hero{height:500px!important}
  .trio-hero > div:nth-child(3) > div{width:190px!important}
  [style*="left: -40px; top: 430px"],[style*="right: -40px; top: 20px"]{display:none!important}

  /* devices never wider than the screen */
  [style*="width: 520px"],[style*="width: 470px"],[style*="width: 440px"],[style*="width: 420px"]{max-width:100%!important}
  [style*="margin-left: 120px"]{margin-left:0!important}
}
