/* Shared header language for Motors pages outside the React homepage. */
body:not(.ed-react-active) #header { background: transparent; }

body:not(.ed-react-active) .ed-header-legacy {
  background: rgba(11, 13, 15, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: relative;
  width: 100%;
  z-index: 5;
}

body:not(.ed-react-active) .ed-header-legacy .ed-header-inner {
  align-items: center;
  display: flex;
  gap: 2rem;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 88px;
  padding: 1rem 1.25rem;
  width: 100%;
}

body:not(.ed-react-active) .ed-header-legacy .ed-brand {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  letter-spacing: .22em;
  line-height: 1;
  min-width: 175px;
  text-decoration: none;
  text-transform: uppercase;
}

body:not(.ed-react-active) .ed-header-legacy .ed-brand-script {
  color: #f0c878;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: -.03em;
  text-transform: none;
}

body:not(.ed-react-active) .ed-header-legacy .ed-brand-rule {
  background: #d9b36a;
  display: block;
  height: 1px;
  margin: .32rem 0;
  width: 3.6rem;
}

body:not(.ed-react-active) .ed-header-legacy .ed-brand-subtitle {
  color: #d9b36a;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .4em;
  margin-left: .4em;
}

body:not(.ed-react-active) .ed-header-legacy .ed-nav {
  display: flex;
  flex: 1;
  gap: clamp(1rem, 3vw, 2.6rem);
  justify-content: center;
}

body:not(.ed-react-active) .ed-header-legacy .ed-nav a {
  color: rgba(245, 241, 233, .74);
  font-size: .78rem;
  letter-spacing: .08em;
  padding: .5rem 0;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body:not(.ed-react-active) .ed-header-legacy .ed-nav a::after {
  background: #d9b36a;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  width: 100%;
}

body:not(.ed-react-active) .ed-header-legacy .ed-nav a:hover,
body:not(.ed-react-active) .ed-header-legacy .ed-nav a:focus-visible,
body:not(.ed-react-active) .ed-header-legacy .ed-nav a.is-active { color: #f5f1e9; }

body:not(.ed-react-active) .ed-header-legacy .ed-nav a:hover::after,
body:not(.ed-react-active) .ed-header-legacy .ed-nav a:focus-visible::after,
body:not(.ed-react-active) .ed-header-legacy .ed-nav a.is-active::after { transform: scaleX(1); }

body:not(.ed-react-active) .ed-header-legacy .ed-menu-toggle {
  background: transparent;
  border: 0;
  color: #f5f1e9;
  display: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: .25rem;
}

body:not(.ed-react-active) .ed-header-legacy :where(a, button):focus-visible {
  outline: 2px solid #f0c878;
  outline-offset: 4px;
}
body:not(.ed-react-active) .header-listing {
  background: rgba(11, 13, 15, .96);
  border-bottom: 1px solid rgba(245, 241, 233, .14);
  box-sizing: border-box;
  height: 80px;
  min-height: 80px;
  padding: 0 !important;
}

body:not(.ed-react-active) .header-listing .header-inner-content {
  align-items: center;
  display: flex;
  gap: 2rem;
  height: 80px;
  max-width: 1240px;
  padding: 1rem 1.25rem;
  width: 100%;
}

body:not(.ed-react-active) .header-listing .listing-logo-main {
  float: none;
  margin: 0 !important;
  min-width: 175px;
}

body:not(.ed-react-active) .header-listing .listing-logo-main .blogname {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

body:not(.ed-react-active) .header-listing .listing-logo-main .blogname h1 {
  color: #f0c878 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

body:not(.ed-react-active) .header-listing .listing-service-right {
  align-items: center;
  display: flex;
  flex: 1;
  float: none;
  margin-left: auto;
  padding-right: 150px;
  width: auto;
}

body:not(.ed-react-active) .header-listing .listing-right-actions { display: none; }

body:not(.ed-react-active) .header-listing .listing-menu {
  align-items: center;
  display: flex !important;
  flex: 1;
  float: none;
  gap: clamp(.85rem, 2.2vw, 2rem);
  justify-content: center;
  margin: 0 !important;
  padding: 0;
}

body:not(.ed-react-active) .header-listing .listing-menu li {
  float: none;
  margin: 0;
  padding: 0;
}

body:not(.ed-react-active) .header-listing .listing-menu li a {
  color: rgba(245, 241, 233, .74);
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .08em;
  line-height: 1.2;
  padding: .5rem 0;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body:not(.ed-react-active) .header-listing .listing-menu li a::after {
  background: #d9b36a;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  width: 100%;
}

body:not(.ed-react-active) .header-listing .listing-menu li a:hover,
body:not(.ed-react-active) .header-listing .listing-menu li.current-menu-item a,
body:not(.ed-react-active) .header-listing .listing-menu li a:focus-visible {
  color: #f5f1e9;
}

body:not(.ed-react-active) .header-listing .listing-menu li a:hover::after,
body:not(.ed-react-active) .header-listing .listing-menu li.current-menu-item a::after,
body:not(.ed-react-active) .header-listing .listing-menu li a:focus-visible::after {
  transform: scaleX(1);
}

body:not(.ed-react-active) .weglot-container.wg-default {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: absolute !important;
  right: max(1.25rem, calc((100vw - 1240px) / 2)) !important;
  top: 1rem !important;
  width: auto !important;
  /* Motors' #header creates a higher stacking context on secondary templates. */
  z-index: 10000 !important;
}

body:not(.ed-react-active) .weglot-container.wg-default .weglot_switcher {
  background: #12161a !important;
  border: 1px solid rgba(230, 187, 112, .7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  min-width: 7.5rem;
  padding: .2rem .55rem !important;
}

body:not(.ed-react-active) .weglot-container.wg-default .weglot_switcher a {
  color: #f5f1e9 !important;
  font-size: .7rem;
  letter-spacing: .04em;
}

body:not(.ed-react-active) .weglot-container.wg-default .weglot_switcher a:hover,
body:not(.ed-react-active) .weglot-container.wg-default .weglot_switcher a:focus-visible {
  color: #f0c878 !important;
}

body:not(.ed-react-active) .weglot-container.wg-default .language-list {
  background: #12161a !important;
  border: 1px solid rgba(230, 187, 112, .5) !important;
  margin-top: .35rem !important;
  min-width: 7.5rem;
}

body:not(.ed-react-active) .weglot-container.wg-default .language-list a {
  display: block;
  padding: .5rem .7rem !important;
}

body:not(.ed-react-active) .weglot-container.wg-default .language-list a:hover,
body:not(.ed-react-active) .weglot-container.wg-default .language-list a:focus-visible { background: #171c20 !important; }

@media (max-width: 900px) {
  body:not(.ed-react-active) .ed-header-legacy .ed-header-inner {
    gap: 1rem;
    padding: .9rem 1rem;
  }

  body:not(.ed-react-active) .ed-header-legacy .ed-nav {
    background: #12161a;
    border: 1px solid rgba(255, 255, 255, .12);
    display: none;
    flex-direction: column;
    gap: .25rem;
    left: 1rem;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: calc(100% + .5rem);
  }

  body:not(.ed-react-active) .ed-header-legacy .ed-nav.is-open { display: flex; }
  body:not(.ed-react-active) .ed-header-legacy .ed-menu-toggle { display: block; margin-left: auto; }

  body:not(.ed-react-active) .header-listing .header-inner-content {
    flex-wrap: wrap;
    gap: .55rem 1rem;
    height: auto;
    min-height: 80px;
  }

  body:not(.ed-react-active) .header-listing .listing-service-right {
    flex: 1 1 100%;
    padding-right: 0;
    width: 100%;
  }

  body:not(.ed-react-active) .header-listing .listing-menu {
    flex-wrap: wrap;
    gap: .35rem .8rem;
    justify-content: flex-end;
  }

  body:not(.ed-react-active) .header-listing .listing-menu li a { font-size: .62rem; }
  /* Keep the language control clear of the mobile menu button. */
  body:not(.ed-react-active) .weglot-container.wg-default {
    right: 4.5rem !important;
    top: .8rem !important;
  }

  body:not(.ed-react-active) .weglot-container.wg-default .weglot_switcher {
    min-width: 7.25rem;
  }
}

/* Reserve language-control space for the extended seller navigation. */
body.ed-seller-navigation .ed-header .ed-header-inner { box-sizing: border-box; max-width: 1560px; padding-right: 220px; gap: 1.25rem; }
body.ed-seller-navigation .ed-header .ed-nav { gap: 1rem; margin-right: 0; min-width: 0; }
body.ed-seller-navigation .ed-header .ed-nav a { white-space: nowrap; font-size: .75rem; letter-spacing: .035em; }
body.ed-seller-navigation .ed-header .ed-brand { min-width: 145px; flex-shrink: 0; }
body.ed-seller-navigation .ed-header .ed-header-cta { margin-right: 0; flex-shrink: 0; }
body.ed-seller-navigation .weglot-container.wg-default { right: max(1.25rem, calc((100vw - 1560px) / 2 + 1.25rem)) !important; }
@media(max-width:1550px) {
  body.ed-seller-navigation .ed-header .ed-header-inner { padding-right: 235px; }
  body.ed-seller-navigation .ed-header .ed-nav { display: none; position: absolute; top: 100%; left: 1rem; right: 1rem; padding: 1.25rem; margin: 0; background: #12161a; border: 1px solid #353a3d; flex-direction: column; align-items: flex-start; max-height: 75vh; overflow-y: auto; }
  body.ed-seller-navigation .ed-header .ed-nav.is-open { display: flex; }
  body.ed-seller-navigation .ed-header .ed-menu-toggle { display: block; margin-left: auto; color: #f5f1e9; flex-shrink: 0; }
  body.ed-seller-navigation .ed-header .ed-header-cta { display: none; }
  body.ed-seller-navigation .weglot-container.wg-default { right: 1rem !important; }
}
@media(max-width:600px) {
  body.ed-seller-navigation .ed-header .ed-header-inner { padding-left: 1rem; padding-right: 175px; gap: .5rem; }
  body.ed-seller-navigation .ed-header .ed-brand { min-width: 100px; }
  body.ed-seller-navigation .ed-header .ed-brand-script { font-size: 1.25rem; }
  body.ed-seller-navigation .weglot-container.wg-default { max-width: 145px !important; }
  body.ed-seller-navigation .weglot-container.wg-default .weglot_switcher { min-width: 0; }
}
/* The seller menu now has only three links and fits on desktop widths. */
@media(min-width:1101px) {
 body.ed-seller-navigation .ed-header .ed-nav { display:flex; position:static; flex-direction:row; align-items:center; padding:0; border:0; background:transparent; max-height:none; overflow:visible; }
 body.ed-seller-navigation .ed-header .ed-menu-toggle { display:none; }
}

/* Keep the public navigation outside the language switcher's reserved area. */
body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-header-inner { box-sizing:border-box; max-width:1560px; padding-right:200px; gap:1.5rem; }
body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-nav { min-width:0; gap:1rem; }
body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-nav a { white-space:nowrap; letter-spacing:.04em; }
body:not(.ed-react-active):not(.ed-seller-navigation) .weglot-container.wg-default { right:max(1.25rem, calc((100vw - 1560px) / 2 + 1.25rem)) !important; }
@media(max-width:1200px) {
 body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-header-inner { padding-right:200px; }
 body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-nav { display:none; position:absolute; left:1rem; right:1rem; top:100%; flex-direction:column; align-items:flex-start; background:#12161a; padding:1rem; border:1px solid #353a3d; max-height:75vh; overflow-y:auto; }
 body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-nav.is-open { display:flex; }
 body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-menu-toggle { display:block; margin-left:auto; flex-shrink:0; }
 body:not(.ed-react-active):not(.ed-seller-navigation) .weglot-container.wg-default { right:1rem !important; }
}
@media(max-width:600px) {
 body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-header-inner { padding-left:1rem; padding-right:175px; gap:.5rem; }
 body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-brand { min-width:100px; }
 body:not(.ed-react-active):not(.ed-seller-navigation) .ed-header-legacy .ed-brand-script { font-size:1.25rem; }
 body:not(.ed-react-active):not(.ed-seller-navigation) .weglot-container.wg-default { max-width:145px !important; }
}

