/* Home copy of ATC's current navigation. Only selectors used by
   atc-home-menu.php and atc-home-menu-mobile.php are included. */
body.atc-home-v2 #menu-bg {
  position: relative; z-index: 100; width: 100%; background: #ffa800;
}
body.atc-home-v2 #menu-box.atc-global-menu {
  position: relative; display: flex; flex-wrap: nowrap; align-items: stretch;
  width: min(var(--atc-shell-width, 1320px), calc(100% - var(--atc-shell-gutter, 24px) * 2));
  margin: 0 auto; font-weight: 400;
}
body.atc-home-v2 #menu-box.atc-global-menu > .dropdown {
  position: relative; display: flex; flex: 0 0 auto; float: none;
}
body.atc-home-v2 #menu-box.atc-global-menu > a {
  display: flex; flex: 0 0 auto; color: #000; text-decoration: none;
}
body.atc-home-v2 #menu-box.atc-global-menu .menu {
  display: flex; align-items: center; min-height: 44px; padding: 10px;
  border-left: 1px solid #f8ce7b; color: #000; font-size: 16px; line-height: 24px;
  white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s;
}
body.atc-home-v2 #menu-box.atc-global-menu .menu.select,
body.atc-home-v2 #menu-box.atc-global-menu .menu:hover,
body.atc-home-v2 #menu-box.atc-global-menu a:focus-visible .menu {
  background: #1a0000; color: #fff;
}
body.atc-home-v2 #menu-box.atc-global-menu .menu.last { border-right: 1px solid #f8ce7b; }
body.atc-home-v2 #menu-box.atc-global-menu .menu > a { color: inherit; text-decoration: none; }
body.atc-home-v2 #menu-box.atc-global-menu .atc-brand-menu { font-weight: 700; }
body.atc-home-v2 #menu-box.atc-global-menu > .clear-both { display: none; }
body.atc-home-v2 #menu-box.atc-global-menu .dropdown > .dropdown-content {
  position: absolute; z-index: 101; display: none; left: 0; right: auto; top: 100%;
  width: 195px; min-width: 195px; max-height: 70vh; overflow-y: auto;
  background: #ffa800; box-shadow: 0 8px 16px #0003; font-size: 15px;
}
body.atc-home-v2 #menu-box.atc-global-menu .dropdown:hover > .dropdown-content,
body.atc-home-v2 #menu-box.atc-global-menu .dropdown:focus-within > .dropdown-content { display: block; }
body.atc-home-v2 #menu-box.atc-global-menu .dropdown-content a {
  display: block; padding: 10px 20px; border-bottom: 1px solid #f8ce7b;
  color: #000; text-decoration: none; line-height: 1.6;
}
body.atc-home-v2 #menu-box.atc-global-menu .dropdown-content a:hover,
body.atc-home-v2 #menu-box.atc-global-menu .dropdown-content a:focus-visible { background: #000; color: #fff; }
body.atc-home-v2 #menu-box.atc-global-menu a:focus-visible { outline: 2px solid #111; outline-offset: -3px; }

/* Stable logo and contracted 728 x 90 B-Quik creative. */
body.atc-home-v2 #header { width: 100%; background: #111; }
body.atc-home-v2 #header-box {
  width: min(var(--atc-shell-width, 1320px), calc(100% - var(--atc-shell-gutter, 24px) * 2));
  margin: 0 auto;
}
body.atc-home-v2 #bg-header { position: relative; }
body.atc-home-v2 #bg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; min-height: 128px; margin: 0; padding: 14px 0;
}
body.atc-home-v2 #logo { display: block; flex: 0 1 320px; min-width: 0; height: 100px; }
body.atc-home-v2 #bg-head1 { width: 100%; height: 100%; }
body.atc-home-v2 #bg-head1 img {
  display: block; width: 100% !important; height: 100%;
  object-fit: contain; object-position: left center;
}
body.atc-home-v2 #banner-header { flex: 0 0 728px; width: 728px; height: 90px; margin: 0; }
body.atc-home-v2 #div-gpt-ad-1667725338201-0 { width: 728px; min-height: 90px; }
body.atc-home-v2 #bg-head > .clear-both { display: none; }

/* Mobile menu keeps the original routes and native accessible toggle. */
body.atc-home-v2 #myTopnav {
  position: relative; display: none; color: #fff; line-height: 1.6;
}
body.atc-home-v2 #myTopnav > a:first-child {
  display: inline-flex; align-items: center; max-width: calc(100% - 54px); min-height: 70px;
}
body.atc-home-v2 #myTopnav > a:first-child img {
  display: block; width: 216px; height: 60px; max-width: calc(100% - 10px);
  object-fit: contain; object-position: left center;
}
body.atc-home-v2 #myTopnav .atc-home-menu-toggle {
  position: absolute; top: 12px; right: var(--atc-shell-gutter, 16px); display: block; float: none;
  width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #6d6d6d;
  border-radius: 6px; background: #171717; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
body.atc-home-v2 #myTopnav a:focus-visible,
body.atc-home-v2 #myTopnav button:focus-visible { outline: 2px solid #ffcf66; outline-offset: 3px; }
body.atc-home-v2 .banner-top.atc-home-banner-top {
  display: none; width: 100%; min-height: 300px; padding: 10px 0; margin: 0;
  border-radius: 0; background: #f2f2f2; overflow: visible;
}
body.atc-home-v2 #div-gpt-ad-1667727055812-0 { width: 336px; min-height: 280px; margin: 0 auto; }
@media (max-width: 1100px) {
  body.atc-home-v2 #header,
  body.atc-home-v2 #menu-bg { display: none; }
  body.atc-home-v2 #myTopnav {
    display: block; float: none; padding: 0 var(--atc-shell-gutter, 16px); min-height: 73px;
    background: #000; border-bottom: 3px solid #f90; text-align: left;
  }
  body.atc-home-v2 #myTopnav a:not(:first-child) { display: none; }
  body.atc-home-v2 #myTopnav.responsive { max-height: 85vh; overflow-y: auto; overscroll-behavior: contain; }
  body.atc-home-v2 #myTopnav.responsive a:not(:first-child) {
    display: block; float: none; padding: 10px 16px; color: #fff; text-align: left;
  }
  body.atc-home-v2 #myTopnav.responsive a.atc-brand-entry { color: #ffcf66; font-weight: 700; }
  body.atc-home-v2 .banner-top.atc-home-banner-top { display: block; }
}
/* The 336px creative cannot fit a narrower viewport. This matches GPT mapping. */
@media (max-width: 335px) {
  body.atc-home-v2 .banner-top.atc-home-banner-top { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.atc-home-v2 #menu-box.atc-global-menu .menu { transition: none; }
}
