/*
 * V102.51.15.22 — Brand Development mobile footer compact refinement.
 * Shared mobile-only closure for every current/future Brand Master and Market
 * Landing rendered through the public Brand Development system.
 *
 * Goals:
 * - ELIXEMARKET + brand identity on one compact row.
 * - Markets / Positions / Client Area always on one readable row.
 * - Real visual separation between navigation items (no merged labels).
 * - Compact legal navy strip with no artificial 72px empty safe-zone.
 * - Desktop/tablet publishing, content, SEO and routing remain untouched.
 */

@media (max-width:760px){
  /* Contained beige editorial field: compact, still clearly separated from CTA. */
  .emwh-brand-development-body .emwh-brand-visual-footer-inner{
    width:calc(100% - 24px)!important;
    grid-template-columns:1fr!important;
    align-items:start!important;
    row-gap:14px!important;
    padding:18px 18px 17px!important;
  }

  /* Approved identity grammar: ELIXEMARKET / BRAND, compressed into one row. */
  .emwh-brand-development-body .emwh-brand-visual-footer-brand{
    display:flex!important;
    align-items:baseline!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    min-width:0!important;
    padding-top:11px!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-brand:before{
    width:42px!important;
    background:#bd8736!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-brand a{
    flex:0 0 auto!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-brand strong{
    font-size:9.5px!important;
    line-height:1.15!important;
    letter-spacing:.14em!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-context{
    flex:0 1 auto!important;
    min-width:0!important;
    margin:0!important;
    color:#b27b2d!important;
    font-family:Georgia,'Times New Roman',serif!important;
    font-size:22px!important;
    line-height:1!important;
    font-weight:500!important;
    letter-spacing:-.015em!important;
  }

  /* Navigation: one row, comfortable touch/readability, visible separators. */
  .emwh-brand-development-body .emwh-brand-visual-footer-navigation{
    width:100%!important;
    max-width:none!important;
    padding-top:0!important;
    justify-self:stretch!important;
    text-align:left!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-navigation .emwh-brand-visual-footer-primary-nav{
    display:flex!important;
    width:100%!important;
    grid-template-columns:none!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
    overflow:visible!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a{
    position:relative!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    min-height:30px!important;
    margin:0!important;
    padding:4px 10px!important;
    border:0!important;
    border-radius:0!important;
    color:#59666d!important;
    font-family:Inter,Arial,sans-serif!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    font-weight:760!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    text-decoration:none!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:first-child{
    padding-left:0!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:last-child{
    padding-right:0!important;
  }
  /* Neutralise the historical arrow/dot pseudo element. A hairline separator is
   * materially clearer at 360px and cannot disappear through font rendering. */
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:after{
    content:none!important;
    display:none!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:not(:last-child){
    margin-right:10px!important;
    padding-right:10px!important;
    border-right:1px solid #c8beaf!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:hover,
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:focus-visible{
    color:#a66f28!important;
    transform:none!important;
  }

  /* Final legal band: two concise rows, not a tall empty block. */
  .emwh-brand-development-body .emwh-brand-visual-footer-meta-strip{
    margin:0!important;
    padding:0!important;
    background:#182a34!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-meta{
    box-sizing:border-box!important;
    width:calc(100% - 24px)!important;
    min-height:58px!important;
    margin:0 auto!important;
    padding:8px 6px calc(9px + env(safe-area-inset-bottom))!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:3px!important;
    border:0!important;
    color:#9aabb4!important;
    font-size:9.5px!important;
    line-height:1.3!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-left-meta{
    display:flex!important;
    align-items:center!important;
    flex-flow:row nowrap!important;
    gap:6px!important;
    min-width:0!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-copyright,
  .emwh-brand-development-body .emwh-brand-visual-footer-legal,
  .emwh-brand-development-body .emwh-brand-visual-footer-legal a{
    font-size:9.5px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-legal{
    gap:6px!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-legal a{
    color:#d5dde1!important;
    font-weight:700!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-b2b{
    align-self:flex-start!important;
    color:#93a5ae!important;
    font-size:9px!important;
    line-height:1.25!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
}

@media (max-width:390px){
  .emwh-brand-development-body .emwh-brand-visual-footer-inner{
    padding-left:16px!important;
    padding-right:16px!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-brand{
    gap:10px!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-context{
    font-size:21px!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a{
    font-size:10px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:not(:last-child){
    margin-right:7px!important;
    padding-right:7px!important;
  }
}

@media (max-width:350px){
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a{
    font-size:9.4px!important;
  }
  .emwh-brand-development-body .emwh-brand-visual-footer-primary-nav a:not(:last-child){
    margin-right:5px!important;
    padding-right:5px!important;
  }
}
