/* Home only. Shared column geometry for primary navigation, footer and socials.
   Header height is deliberately unchanged: existing scroll rooms use 84 / 72px. */
body.motion-home {
  --home-nav-edge: clamp(28px, 3.3vw, 64px);
  --home-nav-gap: clamp(12px, 1.4vw, 20px);
  --home-nav-columns: minmax(328px, 1.9fr) repeat(5, minmax(0, 1fr)) 44px;
}

body.motion-home .era-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  padding: 0;
  gap: 30px;
}
body.motion-home .era-footer .footer-brand { margin: 0; }
/* Retire legacy span-2 / span-3 placements without changing the five groups. */
body.motion-home .era-footer .footer-cols > div {
  grid-column: auto;
  grid-row: auto;
}
body.motion-home .era-footer .footer-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  border: 0;
  margin: 0;
  padding: 0;
}
body.motion-home .era-footer .footer-social a {
  justify-self: start;
  min-width: 0;
  min-height: 44px;
}
body.motion-home .era-footer .footer-bottom {
  margin: 0;
  border-top: 1px solid #cbd0c4;
  padding-top: 23px;
}

@media (min-width: 1024px) {
  body.motion-home .era-header {
    display: grid;
    grid-template-columns: var(--home-nav-columns);
    column-gap: var(--home-nav-gap);
    height: 84px;
    padding-inline: var(--home-nav-edge);
  }
  body.motion-home .era-header > .era-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 154px;
  }
  body.motion-home .era-header > .era-logo img {
    width: 154px;
    max-width: 100%;
  }
  body.motion-home .era-header > .k-direct-nav,
  body.motion-home .era-header > .era-header-tools { display: contents; }
  body.motion-home .k-direct-nav > a {
    grid-row: 1;
    min-width: 0;
    min-height: 48px;
    justify-self: start;
    font-size: clamp(12px, .91vw, 13px);
    line-height: 1.35;
    white-space: nowrap;
    padding-inline: 0;
    margin: 0;font-weight:600}
  body.motion-home .k-direct-nav > a:nth-child(1) { grid-column: 2; }
  body.motion-home .k-direct-nav > a:nth-child(2) { grid-column: 3; }
  body.motion-home .k-direct-nav > a:nth-child(3) { grid-column: 4; }
  body.motion-home .k-direct-nav > a:nth-child(4) { grid-column: 5; }
  body.motion-home .k-direct-nav > a:nth-child(5) { grid-column: 6; }

  /* Keep the secondary tools alongside the mark; Menu retains the far right. */
  body.motion-home .era-header-tools > .k-service-link,
  body.motion-home .era-header-tools > .m-motion-toggle,
  body.motion-home .era-header-tools > .era-cart {
    position: absolute;
    top: 20px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    justify-content: center;
  }
  body.motion-home .era-header-tools > .k-service-link {
    left: calc(var(--home-nav-edge) + 166px);
    gap: 5px;
  }
  body.motion-home .era-header-tools > .m-motion-toggle {
    left: calc(var(--home-nav-edge) + 218px);
  }
  body.motion-home .era-header-tools > .m-motion-toggle .m-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.motion-home .era-header-tools > .era-cart {
    left: calc(var(--home-nav-edge) + 270px);
  }
  body.motion-home .era-header-tools > .era-menu-button {
    grid-column: 7;
    grid-row: 1;
    justify-self: end;
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 0 5px;
  }

  body.motion-home .era-footer { padding-inline: var(--home-nav-edge); }
  body.motion-home .era-footer .footer-inner {
    grid-template-columns: var(--home-nav-columns);
    column-gap: var(--home-nav-gap);
    row-gap: 32px;
  }
  body.motion-home .era-footer .footer-brand {
    grid-column: 1;
    grid-row: 1;
    max-width: 245px;
  }
  body.motion-home .era-footer .footer-cols {
    grid-column: 2 / 7;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--home-nav-gap);
  }
  body.motion-home .era-footer .footer-cols > div { min-width: 0; }
  body.motion-home .era-footer .footer-col-title { font-size: 12px;font-weight:600}
  body.motion-home .era-footer .footer-cols a {
    overflow-wrap: normal;
    hyphens: auto;
    min-height: 44px;
  }
  body.motion-home .era-footer .footer-social {
    grid-column: 2 / 7;
    grid-row: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--home-nav-gap);
    row-gap: 0;
  }
  body.motion-home .era-footer .footer-social a { gap: 8px; }
  body.motion-home .era-footer .footer-bottom {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body.motion-home .era-footer .footer-cols a {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (min-width: 701px) and (max-width: 1023px) {
  body.motion-home .era-footer .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.motion-home .era-footer .footer-social {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
