/* =========================================================
   "ON THIS PAGE" MENU
   A plum bar that sits right under the main menu and stays
   there while scrolling. Used on the Speaker page and the
   Book me to speak page.
   ========================================================= */
/* ---------- "On this page" menu: sticks under the main menu ---------- */
.sp-subnav {
  position: sticky;
  top: var(--nav-height, 80px);
  z-index: 900;
  background: var(--plum, #5E2A41);
  box-shadow: 0 10px 24px -18px rgba(42, 18, 32, 0.6);
}
.sp-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1.5vw, 1.25rem);
  max-width: calc(1200px + 2 * var(--gutter, 24px));
  margin: 0 auto;
  padding: 0.55rem var(--gutter, 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.sp-subnav__inner::-webkit-scrollbar { display: none; }
.sp-subnav a {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #FCF8F5;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.sp-subnav a:hover { background: rgba(252, 248, 245, 0.12); }
.sp-subnav a.is-active { background: #FCF8F5; color: var(--plum, #5E2A41); }
.sp-subnav a:focus-visible { outline: 2px solid #FBBF24; outline-offset: 2px; }
.sp-subnav .sp-subnav__cta { margin-left: clamp(0.25rem, 2vw, 1.5rem); background: #FBBF24; color: #3D1A2B; }
.sp-subnav .sp-subnav__cta:hover { background: #F59E0B; }


@media (max-width: 860px) {
  /* phones: one swipeable row; the faded edge shows there is more */
  .sp-subnav__inner {
    justify-content: flex-start;
    padding-inline: 0.75rem;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .sp-subnav a { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
  .sp-subnav__inner.is-end { -webkit-mask-image: none; mask-image: none; }
}
/* the menu sits at the top of the page, right under the main menu, and stays there */
.sp-subnav { margin-top: var(--nav-height, 80px); }
.sp-subnav + .h-hero { padding-top: 0; }
@media (min-width: 861px) {
  .sp-subnav + .h-hero .h-hero__inner { min-height: calc(min(100svh, 860px) - var(--nav-height, 80px) - 3rem); }
}
@media (min-width: 861px) { .sp-subnav .sp-subnav__cta { display: none; } }

/* links to another page sit after a thin divider, with a small label */
.sp-subnav__divider { flex: 0 0 auto; width: 1px; height: 1.25rem; margin: 0 clamp(0.25rem, 1vw, 0.75rem); background: rgba(252, 248, 245, 0.3); }
.sp-subnav__label { flex: 0 0 auto; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #FBBF24; }

/* ---------- Book me to speak page ---------- */
/* the menu already makes room for the main menu, so the first section needs less top space */
.sp-subnav + .ct { padding-top: clamp(2rem, 5vw, 3.5rem); }
/* sections land just below both menus */
#booking, #contact, #faq, #form { scroll-margin-top: calc(var(--nav-height, 80px) + 3.25rem); }
/* side panels that stay in view while scrolling sit below the menu too */
.bookings .bk__intro,
.bookings .ct__card,
.bookings .fq__intro { top: calc(var(--nav-height, 80px) + 3.25rem + 1.5rem); }
