.howwework_page_toc,
.howwework_page_toc *,
.howwework_page_toc *::before,
.howwework_page_toc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- sticky bar ----------
   HubSpot wraps every module in a row div that is exactly as tall as
   the module itself, and a sticky element can only travel inside its
   parent's box — so sticking the details alone does nothing. The
   wrapper has to be sticky too.

   The :has() rule finds whichever wrapper contains this module, so it
   keeps working if the module is moved up or down the page. If you need
   to support a browser without :has(), inspect the page, read the
   row-number off the wrapper, and add it to the explicit rule below. */
.howwework_page_toc,
.dnd-section:has(.howwework_page_toc),
.row-fluid-wrapper:has(.howwework_page_toc) {
  position: sticky;
  top: 76px;
  z-index: 30;
}

/* Explicit fallback. Change the row number to match your page. */
.row-depth-1.row-number-3:has(.howwework_page_toc) {
  position: sticky;
  top: 76px;
  z-index: 30;
}

/* An ancestor with a clipped overflow cancels sticky outright, and
   HubSpot's column wrappers sometimes carry one. */
.dnd-section:has(.howwework_page_toc),
.dnd-section:has(.howwework_page_toc) > .row-fluid,
.dnd-section:has(.howwework_page_toc) .dnd-column,
.row-fluid-wrapper:has(.howwework_page_toc),
.row-fluid-wrapper:has(.howwework_page_toc) .widget-span {
  overflow: visible;
}

.howwework_page_toc {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(11, 6, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

/* Where the blur is supported the bar can sit lighter, because the
   frosting does the work of separating it from the page behind. */
@supports ((backdrop-filter: blur(0)) or (-webkit-backdrop-filter: blur(0))) {
  .howwework_page_toc {
    background-color: rgba(11, 6, 32, 0.8);
  }
}

/* ---------- summary ---------- */
.howwework_page_toc_summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 1.5rem;
  list-style: none;
  cursor: pointer;
}

.howwework_page_toc_summary::-webkit-details-marker {
  display: none;
}

.howwework_page_toc_menu_icon {
  height: 1rem;
  width: 1rem;
  color: #FCB711;
}

.howwework_page_toc_label {
  font-family: "IBM Plex Sans", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #FCB711;
}

.howwework_page_toc_state {
  margin-left: 0.25rem;
  font-family: "IBM Plex Sans", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
}

/* Two words in the markup, one shown at a time, so the label always
   names the action rather than the state. */
.howwework_page_toc_state_close {
  display: none;
}

.howwework_page_toc_state_open {
  display: inline;
}

.howwework_page_toc[open] .howwework_page_toc_state_close {
  display: inline;
}

.howwework_page_toc[open] .howwework_page_toc_state_open {
  display: none;
}

.howwework_page_toc_chevron {
  height: 1rem;
  width: 1rem;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.howwework_page_toc[open] .howwework_page_toc_chevron {
  transform: rotate(180deg);
}

/* ---------- panel ---------- */
.howwework_page_toc_panel {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1rem;
}

/* 1px gaps over the nav background render as hairline rules between
   cells, and each link repaints the ink colour on top. */
.howwework_page_toc_nav {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.howwework_page_toc_link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #0B0620;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.howwework_page_toc_link:hover {
  background-color: rgba(36, 24, 71, 0.6);
  color: #ffffff;
}

.howwework_page_toc_link_active {
  background-color: #241847;
  color: #ffffff;
}

.howwework_page_toc_link_number {
  font-family: "IBM Plex Sans", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.howwework_page_toc_link_active .howwework_page_toc_link_number {
  font-family: "IBM Plex Sans", monospace;
  font-size: 11px;
  color: #FCB711;
  font-variant-numeric: tabular-nums;
}

.howwework_page_toc_link_text {
  line-height: 1.375;
  text-wrap: pretty;
}

/* ---------- sm : 640px ---------- */
@media (min-width: 640px) {
  .howwework_page_toc_nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- lg : 1024px ---------- */
@media (min-width: 1024px) {
  .howwework_page_toc_summary {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .howwework_page_toc_panel {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .howwework_page_toc_nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .howwework_page_toc_chevron {
    transition: none;
  }
}