/* =====================================================
   MKCL shared header alignment
   Loaded on all HTML pages; desktop horizontal layout,
   preserving the theme's native mobile menu behavior.
   ===================================================== */

@media only screen and (min-width: 768px) {
  #Top_bar .container > .column.one {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px;
  }

  #Top_bar .top_bar_left {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    float: none !important;
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0;
    min-height: 88px;
  }

  #Top_bar .logo {
    float: none !important;
    flex: 0 0 auto !important;
    margin: 0 24px 0 0 !important;
    max-width: 235px;
  }

  #Top_bar .logo a {
    display: flex !important;
    align-items: center !important;
  }

  #Top_bar .logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 235px !important;
    max-height: 72px !important;
    object-fit: contain;
  }

  #Top_bar .menu_wrapper {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 auto !important;
    min-width: 0;
    margin: 0 !important;
  }

  #Top_bar .menu_wrapper nav#menu {
    float: none !important;
    width: auto !important;
  }

  #Top_bar #menu > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
  }

  #Top_bar .top_bar_right {
    float: none !important;
    flex: 0 0 auto !important;
    margin-left: 8px;
  }
}

/* Keep the theme's own responsive navigation on smaller screens */
@media only screen and (max-width: 767px) {
  #Top_bar .top_bar_left {
    display: block !important;
    float: none !important;
    width: 100% !important;
  }

  #Top_bar .logo {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #Top_bar .logo img {
    width: auto !important;
    height: auto !important;
    max-width: min(78vw, 235px) !important;
    max-height: 72px !important;
    object-fit: contain;
  }

  #Top_bar .menu_wrapper {
    display: block !important;
    float: none !important;
    width: 100% !important;
  }
}
