/* SHNE header (Shan, 19 Nov): one menu, no hamburger lines,
   ivory band so the red/yellow heart logo stands out,
   maroon + gold to match the search form and buttons.
   Everything only applies when html.shne-1m is set (tiny head script),
   so if scripts fail the theme's own header stays as it was. */
.shne-1m #datebook-header .datebook-top-menu { display: none !important; }

.shne-1m #datebook-header .datebook-primary-menu-container {
  background: linear-gradient(180deg, #fffdf8 0%, #fff5e6 100%);
  border-top: 4px solid #8e0d34;
  border-bottom: 3px solid #e3a21a;
  box-shadow: 0 2px 10px rgba(94, 8, 33, .12);
  position: relative;
  z-index: 5;
}
.shne-1m #datebook-header .datebook-primary-menu-container > nav {
  padding-top: 8px;
  padding-bottom: 8px;
}
.shne-1m #datebook-header .datebook-primary-menu-container .container {
  flex-wrap: wrap;
  align-items: center;
}
.shne-1m #datebook-header .datebook-logo { margin-right: 12px; }
.shne-1m #datebook-header .datebook-logo img { max-width: 240px; }

/* one menu, always visible: no toggler */
.shne-1m #datebook-header .datebook-primary-menu-container .navbar-toggler { display: none !important; }
.shne-1m #datebook-header #navbarPrimarymenu {
  display: flex !important;
  flex-grow: 1;
  justify-content: flex-end;
  height: auto !important;
}
.shne-1m #datebook-header #navbarPrimarymenu .datebook-primary-menu { width: auto; }
.shne-1m #datebook-header #menu-primary {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
  justify-content: flex-end;
}
.shne-1m #datebook-header #menu-primary .nav-link {
  color: #5e0821 !important;
  font-weight: 600;
  font-size: 1rem !important;
  padding: 7px 16px !important;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.shne-1m #datebook-header #menu-primary .nav-link:hover,
.shne-1m #datebook-header #menu-primary .nav-link:focus {
  background: #fdecc4;
  border-color: #e3a21a;
  color: #5e0821 !important;
}
.shne-1m #datebook-header #menu-primary .current-menu-item > .nav-link,
.shne-1m #datebook-header #menu-primary .nav-link.active {
  background: linear-gradient(135deg, #8e0d34, #5e0821);
  color: #fff !important;
  border-color: #5e0821;
}

/* inner pages: the member links (Messages, Edit profile...) sit in the same band */
.shne-1m #datebook-header .datebook-primary-menu-container .datebook-user-navbar .nav-link,
.shne-1m #datebook-header .datebook-primary-menu-container .datebook-user-navbar .nav-link i {
  color: #8e0d34 !important;
}
.shne-1m #datebook-header .datebook-primary-menu-container .datebook-user-navbar .nav-link:hover { color: #5e0821 !important; text-decoration: underline; text-decoration-color: #e3a21a; }

/* phone + tablet: logo centred on top, menu as one row of small pills below */
@media (max-width: 991.98px) {
  .shne-1m #datebook-header .datebook-primary-menu-container .container { justify-content: center; }
  .shne-1m #datebook-header .datebook-logo {
    margin: 0 auto;
    width: auto !important;
    align-items: center !important;
  }
  .shne-1m #datebook-header .datebook-logo img { max-width: 210px; margin: 0 !important; }
  .shne-1m #datebook-header #navbarPrimarymenu {
    flex-basis: 100%;
    justify-content: center;
    margin: 6px 0 0 !important;
  }
  .shne-1m #datebook-header #navbarPrimarymenu .datebook-primary-menu { width: 100%; }
  .shne-1m #datebook-header #menu-primary { justify-content: center; gap: 2px; }
  .shne-1m #datebook-header #menu-primary .nav-link {
    font-size: .8rem !important;
    padding: 4px 7px !important;
  }
}

/* v1.3.6 (Shan): footer Register / Login (and My account / Logout when
   logged in) buttons in the site's maroon + gold instead of theme blue. */
.datebook-register-login-links .btn {
  border-radius: 999px !important;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 20px !important;
  box-shadow: none !important;
  text-transform: none;
  transition: filter .15s, background .15s;
}
.datebook-register-login-links li:first-child .btn {
  background: linear-gradient(135deg, #8e0d34, #5e0821) !important;
  border: 2px solid #5e0821 !important;
  color: #fff !important;
}
.datebook-register-login-links li:not(:first-child) .btn {
  background: #fff !important;
  border: 2px solid #8e0d34 !important;
  color: #8e0d34 !important;
}
.datebook-register-login-links .btn:hover,
.datebook-register-login-links .btn:focus {
  filter: brightness(1.08);
  outline: 2px solid #e3a21a;
  outline-offset: 2px;
}
