/* Pro Tour Fantasy Golf navbar -- flat bar in a light navy pastel, navy text, dark navy selected pill.
   Ported from legacy's bootstrap-custom-navbar.css and bootstrap-custom-icon-bar.css, rewritten for Bootstrap
   5's nav-item/nav-link markup (legacy used Bootstrap 3's `.navbar-nav > li > a`) and .navbar-toggler (was
   .navbar-toggle). No dropdown-menu rules ported -- this nav has none. */

.navbar-custom {
  background-color: var(--ptfg-navy-light);
  box-shadow: 0 2px 10px rgba(11, 26, 103, 0.25);
  position: sticky;
  top: 0;
  z-index: 1030;
  /* Bootstrap 5's .navbar adds its own 0.5rem top/bottom padding on top of .navbar-brand's; legacy's Bootstrap
     3 navbar had none, getting its 50px height solely from the brand's padding and line-height. */
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-custom .navbar-brand {
  color: var(--ptfg-navy);
  font-size: 18px;
  /* 15px padding + 20px line-height = legacy's 50px navbar. Bootstrap 3 hardcoded that 20px line-height on
     .navbar-brand; Bootstrap 5 inherits the body's 1.5 instead (27px at this size). */
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 20px;
  /* Legacy's brand had 15px of padding on each side. Bootstrap 5's container already pads 12px, so 3px more
     on the left puts the text at 15px and trimming the right margin to 15px puts the first link where it was. */
  padding-left: 3px;
  margin-right: 15px;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: var(--ptfg-navy);
  opacity: 0.8;
}
/* Keep each label on one line ("Game Formats", "Contact Us"). If the links don't fit across the bar (just above
   the 768px collapse breakpoint), whole links wrap onto a second row instead of breaking mid-label. */
.navbar-custom .navbar-nav {
  flex-wrap: wrap;
}
/* Bootstrap 5 sets a nav link's left/right padding from this variable, in a rule (.navbar-expand-md .navbar-nav
   .nav-link) more specific than anything here, so a plain `padding: 8px 16px` on .nav-link loses on the sides --
   links came out 16px narrower than legacy's. */
.navbar-custom {
  --bs-navbar-nav-link-padding-x: 16px;
}
/* Below the 768px collapse point the links come from .navbar-nav's own --bs-nav-link-padding-x, which Bootstrap
   sets to 0 there, so the selected pill's text sat flush against its left edge in the hamburger menu. */
.navbar-custom .navbar-nav {
  --bs-nav-link-padding-x: 16px;
}
.navbar-custom .nav-link {
  color: var(--ptfg-navy);
  border-radius: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 4px 3px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: var(--ptfg-navy);
  background-color: rgba(11, 26, 103, 0.12);
}
.navbar-custom .nav-link.active {
  color: #ffffff;
  background-color: var(--ptfg-navy);
  font-weight: bold;
}
.navbar-custom .navbar-toggler {
  border-color: rgba(11, 26, 103, 0.4);
}
/* Bootstrap 5.3 draws a 4px ring in the toggler's text color (black at 65%) whenever it has focus, and a tap leaves
   it focused, so on a phone the button sat in a heavy dark frame. Instead: a soft navy ring only for keyboard focus,
   and the light tint only while hovered with a real pointer (touch screens keep :hover after a tap) or while the
   menu is open. */
.navbar-custom .navbar-toggler:focus {
  box-shadow: none;
}
.navbar-custom .navbar-toggler:focus-visible {
  box-shadow: 0 0 0 3px rgba(11, 26, 103, 0.3);
}
.navbar-custom .navbar-toggler[aria-expanded="true"] {
  background-color: rgba(11, 26, 103, 0.12);
}
@media (hover: hover) {
  .navbar-custom .navbar-toggler:hover {
    background-color: rgba(11, 26, 103, 0.12);
  }
}
/* Bootstrap's default toggler icon is a baked-in dark SVG background-image with no currentColor support, so
   recoloring it navy means replacing it with an equivalent inline SVG. */
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11, 26, 103, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
