/* TCS v38 mobile navigation.
   Loaded after each page's inline <style>, so it wins on ties.
   Every layout rule sits inside the media query. Desktop is untouched. */

.tcs-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.tcs-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: #C8D8EA;
  transition: transform .2s ease, opacity .2s ease;
}

.tcs-nav-toggle:hover span {
  background-color: #2A8EFF;
}

.tcs-nav-toggle:focus-visible {
  outline: 2px solid #2A8EFF;
  outline-offset: 2px;
}

@media (max-width: 820px) {

  .tcs-nav-host {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .tcs-nav-toggle {
    display: flex;
  }

  .tcs-nav-panel {
    display: none !important;
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    flex-basis: 100%;
    width: 100%;
    gap: 0 !important;
    margin: 4px 0 0;
    padding: 4px 0 6px;
    list-style: none;
    border-top: 1px solid rgba(42, 142, 255, .2);
    max-height: 70vh;
    overflow-y: auto;
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-panel > li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-panel > li:empty {
    display: none;
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-panel a {
    display: block;
    width: 100%;
    padding: 14px 2px;
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    border-bottom: 1px solid rgba(42, 142, 255, .15);
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-panel a.cta-button,
  .tcs-nav-root.tcs-nav-open .tcs-nav-panel a.nav-cta {
    margin-top: 14px;
    padding: 14px 18px;
    border-bottom: 0;
    border-radius: 4px;
    background-color: #2A8EFF;
    color: #0B1829;
    font-weight: 600;
    text-align: center;
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .tcs-nav-root.tcs-nav-open .tcs-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
