/* =========================================================
   "Who should attend" nav row
   Custom class:  who-attend

   Works on any Splash page using that class:
     Test page      element-custom-block-3905617428
     Illuminate DFW element-custom-block-3905657925

   - First nav item renders as a plain black label
   - Remaining items render as outlined pills
   - Row width matches the page's main content columns
   - No hamburger at any screen size
   ========================================================= */


/* ---------------------------------------------------------
   1. WIDTH - match the main page content columns

   Splash content sections use 10% side padding. The nav block
   sits in a wrapper with only 16px, so it ran nearly full
   bleed. This pads the nav container to land on that same 10%.

   Where the 12.8px comes from:
   Percentage padding resolves against the PARENT's content
   width, which is already 32px narrower than the page (16px
   of wrapper padding on each side). So a plain 10% lands 3.2px
   short, and the element itself already starts 16px in.
     inset wanted   = 10% of page width
     inset we have  = 16px + padding
     padding needed = 10%(page) - 16px
                    = 10%(parent + 32px) - 16px
                    = 10% + 3.2px - 16px
                    = calc(10% - 12.8px)
   The correction is a constant, so this stays exact at every
   viewport width. Verified at 191px/1715px on both pages.

   To change the inset, edit BOTH numbers: for N%, the second
   value is (N% of 32px) - 16px.  e.g. 8% -> calc(8% - 13.44px)
   --------------------------------------------------------- */

.who-attend.cms-simple-container-container {
  padding-left: calc(10% - 12.8px) !important;
  padding-right: calc(10% - 12.8px) !important;
}

.who-attend .element {
  text-align: left !important;
}

.who-attend .sf.list.nav {
  display: block !important;
  width: 100% !important;
}


/* ---------------------------------------------------------
   2. NO HAMBURGER, EVER

   Outside any media query on purpose, so it beats whatever
   breakpoint Splash uses internally.
   --------------------------------------------------------- */

.who-attend .nav-hamburger,
.who-attend .nav-dropdown-selected {
  display: none !important;
}

.who-attend .children {
  display: flex !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Hide Splash's empty anchor-jump link (renders as a blank pill) */
.who-attend a.nav-jump:not(.nav-item-link) {
  display: none !important;
}


/* ---------------------------------------------------------
   3. THE ROW
   --------------------------------------------------------- */

.who-attend .children {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 10px !important;
}

.who-attend .nav-item {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}


/* ---------------------------------------------------------
   4. PILLS
   --------------------------------------------------------- */

.who-attend .nav-item a.nav-item-link {
  display: inline-block !important;
  padding: 8px 18px !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.who-attend .nav-item a.nav-item-link:hover,
.who-attend .nav-item a.nav-item-link:focus {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* First item is the label: plain text, not a button, not clickable */
.who-attend .nav-item:first-child a.nav-item-link {
  padding: 0 !important;
  margin-right: 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #000 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: default !important;
  pointer-events: none !important;
}


/* ---------------------------------------------------------
   5. TABLET  (1024px and below)
   Same row, tighter, still no hamburger.
   --------------------------------------------------------- */

@media (max-width: 1024px) {
  .who-attend .children {
    gap: 8px !important;
  }

  .who-attend .nav-item a.nav-item-link {
    padding: 7px 15px !important;
    font-size: 13px !important;
  }

  .who-attend .nav-item:first-child a.nav-item-link {
    font-size: 14px !important;
  }
}


/* ---------------------------------------------------------
   6. MOBILE  (640px and below)
   Label on its own line, pills wrap freely below it.
   --------------------------------------------------------- */

@media (max-width: 640px) {
  .who-attend .children {
    gap: 8px !important;
  }

  /* Label takes the full first line */
  .who-attend .nav-item:first-child {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-bottom: 2px !important;
  }

  .who-attend .nav-item:first-child a.nav-item-link {
    display: block !important;
    margin-right: 0 !important;
    font-size: 14px !important;
    text-align: left !important;
  }

  /* Long pill text wraps to two lines instead of running off
     the screen. Without max-width the flex item sizes to
     max-content and overflows even with white-space: normal. */
  .who-attend .nav-item a.nav-item-link {
    padding: 7px 14px !important;
    font-size: 13px !important;
    white-space: normal !important;
    text-align: center !important;
    border-radius: 18px !important;
  }
}


/* ---------------------------------------------------------
   OPTIONAL BLOCKS - uncomment what you want
   --------------------------------------------------------- */

/* Center the pills instead of left-aligning them */
/*
.who-attend .children { justify-content: center !important; }
*/

/* Rust accent pill on the LAST item */
/*
.who-attend .nav-item:last-child a.nav-item-link {
  background: #8c3d1f !important;
  border-color: #8c3d1f !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
.who-attend .nav-item:last-child a.nav-item-link:hover {
  background: #6f3018 !important;
  border-color: #6f3018 !important;
  color: #fff !important;
}
*/

/* Dark-background version of the pills */
/*
.who-attend .nav-item a.nav-item-link {
  background: transparent !important;
  border-color: rgba(255,255,255,.45) !important;
  color: #fff !important;
}
.who-attend .nav-item a.nav-item-link:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #000 !important;
}
.who-attend .nav-item:first-child a.nav-item-link { color: #fff !important; }
*/