/*
======================================================
Mount Washington Avalanche Center Header Styles (2025)
Sponsor logo: rightmost on desktop, bottom on mobile
======================================================
*/

/* ========== DESKTOP (≥992px) ========== */
@media (min-width: 1024px) {
  .mwac-header-flex {
    display: flex !important;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .mwac-header-left {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-right: 32px;
    flex-shrink: 0;
    flex-direction: row; /* ensure row on desktop */
    width: auto;
    justify-content: flex-start;
  }

  #header-logo {
    margin-right: 32px;
    flex-shrink: 0;
  }
  #header-logo img {
    max-height: 70px;
    width: auto;
    display: block;
  }
  #menu-toggle.navbar-toggle {
    display: none !important;
  }

  .menu-main-container {
    display: flex;
    align-items: center;
    flex: 1 1 0%;
    min-width: 0;
    justify-content: flex-end;
  }
  .menu-main-container .nav.navbar-nav {
    margin-left: auto;
  }

  .mwac-header-right {
    display: flex;
    background: #e6e6e6;
    align-items: center;
    margin-left: 45px;
	  margin-right: 0;
    flex-shrink: 0;
  }

  .menu-friends-container {
    position: relative;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    padding-left: 5px;
    margin-left: 2px;
    margin-right: 2px;
  }
  .menu-friends-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 0px;
    background: #bbb;
    opacity: 0.7;
    display: block;
  }

  #header-sponsor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 25px;
  margin-right: 0px;
  }

  .header-sponsor-label {
    display: block;
    font-size: .7rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    color: #444;
    margin-bottom: 0px;
    text-align: center;
    white-space: nowrap;
  }

  #header-sponsor {
    display: flex !important;
    flex-direction: column; /* Stack label and logo vertically */
    align-items: center;
    background: #e6e6e6;
    padding: 3px 20px;
    border-radius: 4px;
    margin: 0;
    max-height: 80px;
    width: auto;
  }

  #header-sponsor img {
    max-height: 60px;
    width: auto;
    display: block;
  }

  #navbar-collapse {
    display: flex !important;
    flex: 1 1 auto;
  }
}

/* ========== MOBILE (≤991px) ========== */
@media (max-width: 1023px) {
  .mwac-header-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .mwac-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;  /* Logo left, burger right */
    width: 100%;
    margin: 0;
    padding: 0 8px;
    background: #fff; /* Keep header clean on mobile */
  }
  #header-logo {
    margin: 0;
    flex-shrink: 0;
  }
  #header-logo img {
    max-height: 44px;
    width: auto;
    display: block;
  }
  #menu-toggle.navbar-toggle {
    display: block !important;
    margin-left: auto;
    font-size: 2.2rem;
  }

  .mwac-header-right {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    justify-content: flex-start;
  }

  /* Friends menu hidden outside burger */
  .menu-friends-container {
    display: none !important;
  }

  .header-sponsor-label {
    display: block;
    font-size: 0.87rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #444;
    margin-bottom: 2px;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
  }

  #header-sponsor-container {
    margin-left: 0;
    align-items: flex-start;
    width: 100%;
  }
  #header-sponsor {
    width: 100vw;
    max-width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0 10px 0;
    border-radius: 0;
    background: #e6e6e6;
    margin-top: 0;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
  #header-sponsor img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Add any extra tweaks below */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 991px) {
  .desktop-only { display: none !important; }
  .mobile-only {
    display: block !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #444;
    margin-bottom: 2px;
    margin-top: 0;
    text-align: center;
    white-space: nowrap;
  }
  #header-sponsor {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #header-sponsor img {
    max-width: 140px;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }
}
.container-fluid {
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 0px;
}