/* Top 5 Review — header logo lockup and mobile drawer navigation */
.t5r-header {
  position: relative;
  z-index: 60;
}

.t5r-logo {
  display: block;
  height: 40px;
  width: auto;
}

.t5r-header .t5r-logo {
  height: 44px;
}

.t5r-desktop-nav {
  align-items: center;
  gap: 1.25rem;
}

.t5r-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 0.5rem;
  padding: 0;
  border: 1px solid #d8dde3;
  border-radius: 0.5rem;
  background: transparent;
  color: #102459;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.t5r-menu-btn:hover {
  background: #f2f4f7;
  border-color: #c3cbd4;
}

.t5r-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9, 23, 53, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.t5r-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.t5r-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(84vw, 320px);
  max-width: 100vw;
  background: #ffffff;
  box-shadow: -16px 0 40px rgba(9, 23, 53, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.24s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.t5r-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.t5r-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.t5r-drawer-head .t5r-logo {
  height: 34px;
}

.t5r-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: transparent;
  color: #102459;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.t5r-close:hover {
  background: #f2f4f7;
}

.t5r-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
}

.t5r-drawer-nav a {
  display: block;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #f1f3f5;
  color: #102459;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.t5r-drawer-nav a:hover {
  background: #f6f7f9;
}

.t5r-drawer-nav a[aria-current="page"] {
  color: #2f7e82;
  box-shadow: inset 3px 0 0 #3b8f93;
}

.t5r-menu-btn:focus-visible,
.t5r-close:focus-visible,
.t5r-drawer-nav a:focus-visible {
  outline: 2px solid #3b8f93;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .t5r-desktop-nav {
    display: none;
  }

  .t5r-menu-btn {
    display: inline-flex;
  }

  .t5r-header .t5r-logo {
    height: 40px;
  }
}

@media (min-width: 768px) {
  .t5r-desktop-nav {
    display: flex;
  }

  .t5r-menu-btn,
  .t5r-backdrop,
  .t5r-drawer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t5r-backdrop,
  .t5r-drawer,
  .t5r-menu-btn,
  .t5r-close {
    transition: none;
  }
}