/* Auto A J — design refresh (colors, header, footer, forms, brand) */
:root {
  --mi-accent: #3a9bc7;
  --mi-accent-dark: #2b7fa3;
  --mi-accent-soft: rgba(58, 155, 199, 0.16);
  --mi-ink: #0e141b;
  --mi-panel: #141c26;
  --mi-panel-2: #1a2430;
  --mi-line: #2a3848;
  --mi-text: #e8eef4;
  --mi-muted: #9aafc0;
  --mi-warm: #d4c4a8;
}

body.mi-restyle {
  background: var(--mi-ink) !important;
  color: var(--mi-text);
}

body.mi-restyle a {
  color: var(--mi-accent);
}

body.mi-restyle a:hover {
  color: #7ec4e3;
}

/* ---------- Accent replacements (was gold #edb601) ---------- */
body.mi-restyle .button,
body.mi-restyle a.button,
body.mi-restyle .list_1eft .button,
body.mi-restyle .modal-footer .btn-primary {
  background-color: var(--mi-accent) !important;
  border-color: var(--mi-accent) !important;
  color: #041018 !important;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: none !important;
}

body.mi-restyle .button:hover,
body.mi-restyle a.button:hover {
  background-color: var(--mi-accent-dark) !important;
  color: #fff !important;
}

body.mi-restyle .main_heading,
body.mi-restyle .heading1,
body.mi-restyle h1,
body.mi-restyle h2,
body.mi-restyle h3,
body.mi-restyle .showroom_heading,
body.mi-restyle .list_1eft h3 a {
  color: var(--mi-warm) !important;
}

body.mi-restyle .sidebar-nav > li > a:hover,
body.mi-restyle .nav_box ul li a:hover,
body.mi-restyle .footer_link li a:hover {
  color: var(--mi-accent) !important;
}

/* ---------- New header ---------- */
body.mi-restyle .mi-utility {
  background: #0a1016;
  border-bottom: 1px solid var(--mi-line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mi-muted);
}

body.mi-restyle .mi-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

body.mi-restyle .mi-utility a {
  color: var(--mi-muted);
  text-decoration: none;
}

body.mi-restyle .mi-utility a:hover {
  color: var(--mi-accent);
}

body.mi-restyle .mi-utility-social {
  display: flex;
  gap: 14px;
}

body.mi-restyle .navbar.navbar-static-top {
  background: linear-gradient(180deg, var(--mi-panel) 0%, #101820 100%) !important;
  border: 0 !important;
  margin: 0 !important;
  min-height: 0;
  box-shadow: 0 1px 0 var(--mi-line);
  position: relative;
  z-index: 40;
}

body.mi-restyle .navbar > .container {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  flex-wrap: nowrap;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

body.mi-restyle .navbar-header {
  float: none !important;
  margin: 0 !important;
  order: 2;
  flex: 0 0 auto;
}

body.mi-restyle .logo {
  float: none !important;
  margin: 0 !important;
  order: 1;
  flex: 0 1 auto;
}

body.mi-restyle .navbar-brand {
  float: none !important;
  padding: 0 !important;
  height: auto !important;
}

body.mi-restyle .navbar > .container {
  min-height: 72px;
}

body.mi-restyle .logo,
body.mi-restyle .navbar-brand {
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 200px !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 5;
}

body.mi-restyle .navbar-brand img,
body.mi-restyle .logo img,
body.mi-restyle img.aj-logo {
  max-height: 58px !important;
  width: 280px !important;
  height: auto !important;
  max-width: 340px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
}

body.mi-restyle .mi-footer-brand img.aj-logo {
  max-height: 52px;
  max-width: 280px;
}

body.mi-restyle .top_link {
  display: none !important;
}

body.mi-restyle .aj-address-card {
  background: var(--mi-panel);
  border: 1px solid var(--mi-line);
  border-top: 3px solid var(--mi-accent);
  min-height: 320px;
  display: flex;
  align-items: center;
}

body.mi-restyle .aj-address-inner {
  padding: 28px 24px;
}

body.mi-restyle .aj-address-inner h3 {
  margin-top: 0;
  color: var(--mi-warm) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

body.mi-restyle .aj-address-inner p {
  color: var(--mi-muted);
  line-height: 1.6;
}

/* Legal pages */
body.aj-legal-page {
  background: var(--mi-ink) !important;
  color: var(--mi-text);
}

body.aj-legal-page .aj-legal-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

body.aj-legal-page .aj-legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mi-line);
  margin-bottom: 28px;
}

body.aj-legal-page .aj-legal-header img.aj-logo {
  max-height: 48px;
}

body.aj-legal-page .aj-legal-header nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

body.aj-legal-page .aj-legal-header nav a {
  color: var(--mi-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

body.aj-legal-page .aj-legal-header nav a:hover {
  color: var(--mi-accent);
}

body.aj-legal-page .aj-legal-kicker {
  color: var(--mi-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  margin-bottom: 8px;
}

body.aj-legal-page .aj-legal-main h1 {
  color: var(--mi-warm) !important;
  margin-top: 0;
  font-size: 36px;
}

body.aj-legal-page .aj-legal-meta {
  color: var(--mi-muted);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mi-line);
}

body.aj-legal-page .aj-legal-main h2 {
  color: var(--mi-warm) !important;
  font-size: 20px;
  margin-top: 28px;
}

body.aj-legal-page .aj-legal-main p,
body.aj-legal-page .aj-legal-main li {
  color: #c5d0da;
  line-height: 1.65;
}

body.aj-legal-page .aj-legal-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--mi-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--mi-muted);
  font-size: 12px;
}

body.mi-restyle #menu-toggle.btn-default {
  background: transparent;
  border: 1px solid var(--mi-line);
  margin-right: 10px;
}

body.mi-restyle #menu-toggle .icon-bar {
  background: var(--mi-accent);
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
}

/* Horizontal nav strip under logo bar */
body.mi-restyle .mi-topnav {
  background: var(--mi-panel-2);
  border-bottom: 2px solid var(--mi-accent);
}

body.mi-restyle .mi-topnav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body.mi-restyle .mi-topnav a {
  color: var(--mi-text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-right: 1px solid var(--mi-line);
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

body.mi-restyle .mi-topnav a:hover,
body.mi-restyle .mi-topnav a.is-active {
  background: var(--mi-accent-soft);
  color: var(--mi-accent);
}

body.mi-restyle #sidebar-wrapper {
  background: #0a1016 !important;
  border-right: 1px solid var(--mi-line);
}

body.mi-restyle .sidebar-nav > li > a {
  color: var(--mi-text) !important;
  border-bottom: 1px solid var(--mi-line);
}

/* ---------- New footer ---------- */
body.mi-restyle footer {
  background: transparent !important;
  margin-top: 40px;
}

body.mi-restyle footer .footer_menu {
  background: linear-gradient(180deg, #15202b 0%, #0f161e 100%) !important;
  border-top: 3px solid var(--mi-accent) !important;
  padding: 36px 0 20px !important;
}

body.mi-restyle .mi-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

body.mi-restyle .mi-footer-brand img {
  max-width: 160px;
  margin-bottom: 14px;
}

body.mi-restyle .mi-footer-brand p {
  color: var(--mi-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

body.mi-restyle .mi-footer-col h4 {
  color: var(--mi-warm);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mi-line);
}

body.mi-restyle .mi-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mi-restyle .mi-footer-links li {
  margin: 0 0 8px;
}

body.mi-restyle .mi-footer-links a {
  color: var(--mi-text) !important;
  text-decoration: none;
  font-size: 14px;
}

body.mi-restyle .mi-footer-links a:hover {
  color: var(--mi-accent) !important;
}

body.mi-restyle .mi-footer-contact p {
  margin: 0 0 8px;
  color: var(--mi-muted);
  font-size: 14px;
}

body.mi-restyle .mi-footer-contact a {
  color: var(--mi-text);
}

body.mi-restyle .mi-footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

body.mi-restyle .mi-footer-social a {
  color: var(--mi-muted);
  text-decoration: none;
  font-size: 13px;
}

body.mi-restyle .mi-footer-social a:hover {
  color: var(--mi-accent);
}

body.mi-restyle .mi-footer-bar {
  border-top: 1px solid var(--mi-line);
  padding: 14px 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--mi-muted);
  font-size: 12px;
}

body.mi-restyle .mi-footer-bar a {
  color: var(--mi-accent);
}

/* Hide old footer pieces after rebuild */
body.mi-restyle footer.mi-footer-ready > .container:not(.mi-keep) {
  display: none;
}

body.mi-restyle footer.mi-footer-ready .footer_link,
body.mi-restyle footer.mi-footer-ready .footer_menu > .container > .row {
  display: none !important;
}

/* ---------- Forms ---------- */
body.mi-restyle .form-control,
body.mi-restyle .form_text,
body.mi-restyle input[type="text"],
body.mi-restyle input[type="email"],
body.mi-restyle input[type="tel"],
body.mi-restyle textarea {
  background: #0f1620 !important;
  border: 1px solid var(--mi-line) !important;
  color: var(--mi-text) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  padding: 11px 12px;
}

body.mi-restyle .form-control:focus,
body.mi-restyle .form_text:focus,
body.mi-restyle textarea:focus {
  border-color: var(--mi-accent) !important;
  outline: none;
  box-shadow: 0 0 0 2px var(--mi-accent-soft) !important;
}

body.mi-restyle .contact_us .form-group label,
body.mi-restyle label {
  color: var(--mi-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

body.mi-restyle .mi-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

body.mi-restyle .mi-contact-layout .mi-contact-form-wrap,
body.mi-restyle .mi-contact-layout .mi-contact-map-wrap {
  width: 100%;
  float: none !important;
}

body.mi-restyle .mi-contact-form-wrap form {
  background: var(--mi-panel);
  border: 1px solid var(--mi-line);
  border-top: 3px solid var(--mi-accent);
  padding: 22px 20px;
}

body.mi-restyle .mi-contact-form-wrap .mi-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.mi-restyle .mi-contact-map-wrap iframe {
  min-height: 480px;
  border: 1px solid var(--mi-line) !important;
}

body.mi-restyle #frmSubscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  max-width: 100%;
  box-sizing: border-box;
}

body.mi-restyle #frmSubscribe .form_text,
body.mi-restyle #frmSubscribe #sub_email {
  flex: 1 1 180px;
  margin: 0 !important;
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
}

body.mi-restyle #frmSubscribe .button {
  flex: 0 1 auto;
  margin: 0 !important;
  max-width: 100%;
}

body.mi-restyle .list_right,
body.mi-restyle .two_list {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

html,
body.mi-restyle {
  overflow-x: hidden;
}

body.mi-restyle .list_right.two_list,
body.mi-restyle .showroom_hours {
  background: var(--mi-panel) !important;
  border: 1px solid var(--mi-line);
  border-left: 3px solid var(--mi-accent);
  padding: 18px;
}

body.mi-restyle .index_top .list_1eft {
  background: var(--mi-panel);
  border: 1px solid var(--mi-line);
  padding-bottom: 16px;
}

body.mi-restyle .inner_banner.center_heading {
  border-bottom: 2px solid var(--mi-accent);
}

body.mi-restyle .banner {
  position: relative;
}

body.mi-restyle .banner .aj-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Master Slider video/layers sit around z-index 100+ */
  z-index: 120 !important;
  background:
    radial-gradient(ellipse at 72% 40%, rgba(14, 20, 27, 0.88) 0%, rgba(14, 20, 27, 0.45) 32%, rgba(14, 20, 27, 0.2) 55%),
    linear-gradient(180deg, rgba(14, 20, 27, 0.55) 0%, rgba(14, 20, 27, 0.35) 40%, rgba(14, 20, 27, 0.7) 100%);
}

body.mi-restyle .aj-mobile-hero {
  position: relative;
  z-index: 130;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
  background:
    linear-gradient(180deg, rgba(14, 20, 27, 0.55), rgba(14, 20, 27, 0.75)),
    url('/themes/default/images/banner-inner.jpg') center / cover no-repeat;
}

body.mi-restyle .aj-mobile-hero h2 {
  color: #f2f6fa !important;
  font-size: 22px !important;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hide leftover Mohr watermark layers in Master Slider */
body.mi-restyle .banner .ms-layer img[src*="mohr"],
body.mi-restyle .banner .ms-layer img[src*="Mohr"],
body.mi-restyle .banner .ms-layer img[src*="watermark"] {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Keep hero copy above the veil; Master Slider often parks captions off-screen */
body.mi-restyle .banner .ms-slide-layers,
body.mi-restyle .banner .ms-anim-layers {
  z-index: 130 !important;
  overflow: visible !important;
}

body.mi-restyle .banner .ms-layer.ms-caption,
body.mi-restyle .banner .banner-caption {
  top: 46% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(1100px, 94%) !important;
  max-width: 1100px !important;
  text-align: center !important;
  z-index: 131 !important;
  position: absolute !important;
  overflow: visible !important;
  padding: 0 16px !important;
  box-sizing: border-box;
}

body.mi-restyle .banner .ms-caption h2,
body.mi-restyle .banner .banner-caption h2 {
  display: inline-block !important;
  max-width: 100% !important;
  width: auto !important;
  box-sizing: border-box;
  padding: 18px 28px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: rgba(8, 12, 18, 0.72) !important;
  color: #f2f6fa !important;
  font-size: clamp(18px, 2.1vw, 28px) !important;
}

body.mi-restyle .banner .ms-caption a.button,
body.mi-restyle .banner .banner-caption a.button {
  background: var(--mi-accent) !important;
  border-color: var(--mi-accent) !important;
  color: #041018 !important;
  margin-top: 18px !important;
}

body.mi-restyle .banner .ms-layer,
body.mi-restyle .banner .banner-caption,
body.mi-restyle .banner .button {
  z-index: 131;
}

@media (max-width: 900px) {
  body.mi-restyle .mi-footer-grid,
  body.mi-restyle .mi-contact-layout,
  body.mi-restyle .mi-contact-form-wrap .mi-form-row {
    grid-template-columns: 1fr;
  }

  body.mi-restyle .mi-topnav a {
    border-right: 0;
    border-bottom: 1px solid var(--mi-line);
    flex: 1 1 50%;
    text-align: center;
  }

  body.mi-restyle .navbar > .container {
    justify-content: center;
  }

  body.mi-restyle .logo {
    order: 1;
    width: 100%;
    text-align: center;
  }

  body.mi-restyle .navbar-brand img,
  body.mi-restyle .logo img,
  body.mi-restyle img.aj-logo {
    width: min(280px, 78vw) !important;
    max-width: 78vw !important;
  }

  body.mi-restyle .navbar-header {
    order: 2;
    width: 100%;
    display: none !important;
  }
}

/* ---------- Layout bugfixes: kill legacy sidebar + yellow menus ---------- */
body.mi-restyle #sidebar-wrapper,
body.mi-restyle .nav_box,
body.mi-restyle #menu-toggle {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.mi-restyle #wrapper,
body.mi-restyle #wrapper.toggled,
body.mi-restyle #wrapper.inner_wrapper,
body.mi-restyle .inner_wrapper {
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.mi-restyle #page-content-wrapper,
body.mi-restyle .page-content.inset {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1;
}

/* Legacy gold dropdown leftovers */
body.mi-restyle .nav_box ul li ul,
body.mi-restyle .sidebar-nav ul,
body.mi-restyle .hassub > ul {
  display: none !important;
  background: transparent !important;
}

body.mi-restyle .mi-topnav {
  position: relative;
  z-index: 50;
  overflow: visible;
}

body.mi-restyle .mi-topnav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
}

body.mi-restyle .mi-topnav a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px !important;
  line-height: 1.2;
  box-sizing: border-box;
}

body.mi-restyle .mi-topnav a.is-active {
  background: var(--mi-accent-soft);
  color: var(--mi-accent);
}

/* Header spacing: logo row tighter + brand centered */
body.mi-restyle .navbar.navbar-static-top {
  min-height: 0 !important;
}

body.mi-restyle .navbar > .container {
  min-height: 72px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  justify-content: center !important;
}

body.mi-restyle .navbar-header {
  display: none !important; /* phone + hamburger removed */
}

body.mi-restyle .logo {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  text-align: center !important;
}

body.mi-restyle .logo .navbar-brand {
  display: inline-block !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.mi-restyle .navbar-brand img,
body.mi-restyle .logo img,
body.mi-restyle img.aj-logo {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Broken oversized notice image / Mohr leftovers */
body.mi-restyle .notice img[src*="IMG_2372"],
body.mi-restyle .notice img[style*="1050"],
body.mi-restyle .notice h1 img {
  display: none !important;
}

body.mi-restyle .notice {
  max-width: 820px;
  margin: 0 auto 24px;
  overflow: hidden;
}

body.mi-restyle .banner {
  overflow: hidden;
  min-height: 280px;
  position: relative;
}

/* Original theme hides Master Slider under 897px and expects #mainslider — restore a usable hero */
@media (max-width: 896px) {
  body.mi-restyle #banner-slide {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 280px;
  }

  body.mi-restyle .banner {
    min-height: 320px;
  }

  body.mi-restyle .banner .ms-view,
  body.mi-restyle .banner .ms-slide,
  body.mi-restyle .banner .ms-slide-bgvideocont,
  body.mi-restyle .banner .ms-slide-bgvideo {
    min-height: 320px !important;
    height: 320px !important;
  }

  body.mi-restyle .banner .ms-caption h2,
  body.mi-restyle .banner .banner-caption h2 {
    font-size: 18px !important;
    padding: 14px 16px !important;
  }
}

body.mi-restyle .inner_banner {
  overflow: hidden;
}

body.mi-restyle .inner_banner img {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Legacy Mohr showroom sign on About */
body.mi-restyle img[src*="right-sign"],
body.mi-restyle .labelfile,
body.mi-restyle #labelfile {
  display: none !important;
}

body.mi-restyle a.btn11,
body.mi-restyle .btn11 {
  background-color: var(--mi-accent) !important;
  border-color: var(--mi-accent) !important;
  color: #041018 !important;
}

body.mi-restyle .inner_banner .container {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 1170px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

body.mi-restyle .inner_banner .heading1,
body.mi-restyle .inner_banner h1 {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 12px;
  text-align: center !important;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Contact layout: prevent right column clipping */
body.mi-restyle .mi-contact-layout {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body.mi-restyle .contact_us,
body.mi-restyle .contact_us .container {
  width: 100% !important;
  max-width: 1170px;
  overflow: hidden;
}

body.mi-restyle .inventory_list,
body.mi-restyle .list_1eft {
  overflow: visible;
}

body.mi-restyle .car_list {
  overflow: visible !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
}

body.mi-restyle .car_list > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100%;
}

body.mi-restyle .car_list .col-sm-4,
body.mi-restyle .car_list .col-sm-8,
body.mi-restyle .car_list .col-sm-6 {
  box-sizing: border-box;
}

body.mi-restyle .inventory_list .car_list .info,
body.mi-restyle .inventory_list .car_list .car_detail {
  margin-right: 0 !important;
  padding-right: 12px;
  padding-left: 8px;
  box-sizing: border-box;
  overflow: visible;
  max-width: 100%;
}

body.mi-restyle .inventory_list .car_list h1,
body.mi-restyle .inventory_list .car_list h1 a {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal !important;
  max-width: 100%;
  display: block;
  padding-right: 8px;
  box-sizing: border-box;
}

body.mi-restyle .inventory_list .car_list article ul {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.mi-restyle .inventory_list .car_list article ul li {
  float: none !important;
  width: auto !important;
  max-width: 100%;
  padding-right: 0 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Top nav: centered under logo, no cutoff */
body.mi-restyle .mi-topnav .container {
  justify-content: center;
  flex-wrap: wrap;
}

body.mi-restyle .mi-topnav a {
  flex: 0 0 auto;
  padding: 10px 16px !important;
  white-space: nowrap;
}

body.mi-restyle .mi-utility .container {
  gap: 8px 16px;
}

body.mi-restyle .mi-utility-social {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.mi-restyle .mi-utility-social a {
  white-space: nowrap;
}

/* Kill remaining gold accents that flash as legacy UI */
body.mi-restyle [style*="#edb601"],
body.mi-restyle [style*="edb601"] {
  background-color: var(--mi-accent) !important;
  border-color: var(--mi-accent) !important;
  color: #041018 !important;
}

body.mi-restyle .nav_box ul li ul {
  background: var(--mi-panel-2) !important;
}
