/* ── Nav bar: match header white background ─────────────────── */
.tbm {
  background-color: #fff !important;
}

/* Level-1 items: transparent, hover only */
.tbm-link.level-1 {
  background-color: transparent !important;
}
.tbm-submenu-toggle {
  background-color: transparent !important;
}
.tbm-link.level-1:hover,
.tbm-link.level-1:focus {
  background-color: rgba(1, 123, 189, 0.07) !important;
  border-radius: 6px;
}
.tbm-submenu-toggle:hover,
.tbm-submenu-toggle:focus {
  background-color: rgba(1, 123, 189, 0.07) !important;
}

/* ── Services Mega Menu — desktop dropdown ──────────────────── */
.tbm-item--has-dropdown > .tbm-submenu {
  min-width: 860px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  overflow: hidden;
  background: #fff;
  margin-top: 6px;
}

/* Row: flex side-by-side columns */
.tbm-submenu .tbm-row {
  display: flex !important;
  gap: 0;
}
.tbm-submenu .tbm-column {
  flex: 1;
  padding: 0;
}
.tbm-submenu .tbm-column + .tbm-column {
  border-left: 1px solid #e8edf2;
}
.tbm-column-inner {
  padding: 14px 18px 12px;
}

/* ── Column Headers ─────────────────────────────────────────── */
.tbm-mega-col-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 2px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e8edf2;
}
.tbm-mega-col-icon { font-size: 20px; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.tbm-mega-col-title { font-size: 13px; font-weight: 700; color: #0d1f3c; line-height: 1.2; margin-bottom: 2px; }
.tbm-mega-col-head--blue .tbm-mega-col-title { color: #017bbd; }
.tbm-mega-col-head--green .tbm-mega-col-title { color: #16a34a; }
.tbm-mega-col-sub { font-size: 11px; color: #94a3b8; line-height: 1.4; }

/* ── Dropdown items ─────────────────────────────────────────── */
.tbm-submenu .tbm-item-child { list-style: none; margin: 0; padding: 0; }
.tbm-submenu .tbm-item-child .tbm-link {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  margin: 1px -10px;
}
.tbm-submenu .tbm-item-child .tbm-link:hover { background: #f4f6f9; }
.tbm-submenu .tbm-link .tbm-item-title,
.tbm-submenu .tbm-link > span:first-child,
.tbm-submenu .tbm-item-child .tbm-link { font-size: 13px; font-weight: 600; color: #1e293b; display: block; }
.tbm-submenu .tbm-caption { display: block; font-size: 11.5px; color: #64748b; font-weight: 400; margin-top: 1px; line-height: 1.4; }
.tbm-submenu ul.tbm-subnav { list-style: none; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════════════════════════
   Mobile  (≤1024px) — fresh #dc-mobile-nav panel built by JS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Hide topbar row and the original TBM mega-menu header */
  .topbar.topbar__one    { display: none !important; }
  .header-topbar-merged  { display: none !important; }
  .header-one__main-menu { display: none !important; }

  /* Gavias' JS moves .gva-offcanvas-mobile to <body> on init — keep it hidden */
  body > .gva-offcanvas-mobile { display: none !important; }

  /* Hamburger visible and clearly styled */
  #menu-bar {
    display:    block !important;
    visibility: visible !important;
    opacity:    1 !important;
    z-index:    99999 !important;
    position:   absolute !important;
    right:      10px !important;
    top:        50% !important;
    margin-top: -16px !important;
    width:      36px !important;
    height:     32px !important;
  }
  #menu-bar span {
    background-color: #0d1f3c !important;
  }

  /* ── Fresh mobile nav panel — appended to body by main2.js ── */
  #dc-mobile-nav {
    display:    none;
    position:   fixed;
    left:       0;
    top:        0;
    width:      280px;
    max-width:  85vw;
    height:     100vh;
    background: #fff;
    z-index:    99999;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    flex-direction: column;
  }
  #dc-mobile-nav.dc-open { display: flex; }

  /* Nav list inside panel */
  #dc-mobile-nav ul {
    list-style: none;
    margin:     0;
    padding:    0;
    width:      100%;
  }
  #dc-mobile-nav li {
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }
  #dc-mobile-nav li a {
    display:     block;
    padding:     15px 22px;
    font-size:   15px;
    font-weight: 600;
    color:       #161c26;
    text-decoration: none;
  }
  #dc-mobile-nav li a:hover,
  #dc-mobile-nav li a:active {
    background: rgba(1,123,189,0.07);
    color:      #017bbd;
  }

  /* Backdrop */
  #dc-mobile-nav-backdrop {
    display:    none;
    position:   fixed;
    inset:      0;
    background: rgba(0,0,0,0.45);
    z-index:    99998;
  }
  #dc-mobile-nav-backdrop.dc-open { display: block; }

}


/* ── Client Portal column (dark navy) ───────────────────────── */
.tbm-col-portal-cta {
  border-left: none !important;
  display: flex;
  flex-direction: column;
}
.tbm-col-portal-cta .tbm-column-inner {
  background: #0f2544 !important;
  padding: 0 !important;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.tbm-col-portal-cta .tbm-column-inner:hover { background: #152f5a !important; }

/* Content wrapper */
.tbm-portal-cta-inner {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 14px 22px;
  flex: 1;
}

/* Eyebrow */
.tbm-portal-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.tbm-portal-icon { font-size: 15px; }

/* Headline */
.tbm-portal-headline {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 9px;
}

/* Body */
.tbm-portal-body {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  margin: 0 0 13px;
}

/* Feature bullets */
.tbm-portal-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tbm-portal-features li {
  font-size: 11.5px;
  color: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  gap: 9px;
}
.tbm-portal-features li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #60a5fa;
  flex-shrink: 0;
}

/* Hide the non-interactive visual button div */
.tbm-portal-btn-visual { display: none; }

/* ── Actual portal link styled as button ── */
.tbm-col-portal-cta .tbm-subnav.level-1 {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 22px 22px !important;
}
.tbm-col-portal-cta .tbm-subnav.level-1 .tbm-item.level-2 {
  list-style: none;
}
.tbm-col-portal-cta .tbm-subnav.level-1 .tbm-link-container {
  position: static !important;
  inset: auto !important;
}
.tbm-col-portal-cta .tbm-subnav.level-1 .tbm-link.level-2 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  background: #1a6fa4 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
  opacity: 1 !important;
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}
.tbm-col-portal-cta .tbm-subnav.level-1 .tbm-link.level-2::after {
  content: '→';
  font-size: 15px;
}
.tbm-col-portal-cta .tbm-subnav.level-1 .tbm-link.level-2:hover {
  background: #2080b8 !important;
  color: #fff !important;
}
.tbm-col-portal-cta .tbm-subnav.level-1 .tbm-caption {
  display: none !important;
}
.tbm-col-portal-cta .tbm-column-inner:hover .tbm-subnav.level-1 .tbm-link.level-2 {
  background: #2080b8 !important;
}

/* Mobile */
@media (max-width: 1024px) {
  .tbm-col-portal-cta .tbm-column-inner { border-radius: 0 !important; }
  .tbm-portal-cta-inner { padding: 10px 20px 8px 24px; }
  .tbm-portal-body,
  .tbm-portal-features { display: none; }
  .tbm-portal-eyebrow { margin-bottom: 4px; padding-bottom: 0; border-bottom: none; }
  .tbm-portal-headline { font-size: 13px; margin-bottom: 6px; }
  .tbm-col-portal-cta .tbm-subnav.level-1 { padding: 0 24px 14px !important; }
  .tbm-col-portal-cta .tbm-subnav.level-1 .tbm-link.level-2 {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
}

/* ═══ Single-bar header — topbar merged into nav row ══════════════════════ */

/* Desktop only */
@media (min-width: 1025px) {

  /* 1. Hide the now-empty topbar strip */
  .topbar--merged { display: none !important; }

  /* 2. Rebalance header flex: give right side room for topbar content */
  .header-one__left  { flex: 0 0 62% !important; max-width: 62% !important; }
  .header-one__right {
    flex: 0 0 38% !important; max-width: 38% !important;
    display: flex !important; align-items: center !important;
    justify-content: flex-end !important;
  }

  /* 3. Merged topbar container */
  .header-topbar-merged {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 0; width: 100%; overflow: hidden; white-space: nowrap;
  }

  /* 4. Left section (phone / email geo blocks) */
  .header-topbar-merged .topbar__left,
  .header-topbar-merged .topbar__left-content,
  .header-topbar-merged .region__topbar {
    display: flex !important; align-items: center; flex: none;
  }
  .header-topbar-merged .topbar__left {
    padding-right: 14px; margin-right: 14px;
    border-right: 1px solid rgba(0,0,0,.12);
  }

  /* 5. Right section (Support / About / Contact links) */
  .header-topbar-merged .topbar__right,
  .header-topbar-merged .topbar__right-content,
  .header-topbar-merged .region__topbar-right {
    display: flex !important; align-items: center; flex: none;
  }

  /* 6. Preserve geo-block visibility state and allow inline display */
  .header-topbar-merged .topbar-info { display: flex !important; align-items: center; }
  .header-topbar-merged .d-small-none { display: flex !important; }
  .header-topbar-merged .block { margin: 0 !important; }
  .header-topbar-merged .content.block-content { display: flex; align-items: center; }
  .header-topbar-merged .field { margin: 0 !important; }

  /* 7. Strip blockquote / h5 default chrome */
  .header-topbar-merged blockquote {
    margin: 0 !important; padding: 0 !important;
    border: none !important; background: none !important;
    font-size: inherit !important;
  }
  .header-topbar-merged h5 {
    margin: 0 !important; padding: 0 !important;
    font-size: 12px !important; font-weight: 500 !important;
    line-height: 1 !important; display: inline;
    color: #444 !important;
  }
  .header-topbar-merged p { margin: 0 !important; font-size: 12px !important; color: #444 !important; }

  /* 8. Link styling */
  .header-topbar-merged a {
    color: #444 !important; font-size: 12px !important;
    font-weight: 500 !important; text-decoration: none !important;
    white-space: nowrap; transition: color .15s;
  }
  .header-topbar-merged a:hover { color: #017bbd !important; }
}

/* ── Resources mega menu — Insights column ───────────────────────────── */

/* "Insights" heading — bold + uppercase + separator, matches tbm-group-title look */
.tbm-col-insights .tbm-insights-header .tbm-link {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #1e293b !important;
  padding: 6px 0 10px !important;
  letter-spacing: 0.03em;
}
.tbm-col-insights .tbm-insights-header {
  border-bottom: 1px solid #e8edf2;
  margin-bottom: 4px;
}
.tbm-col-insights .tbm-insights-header .tbm-caption {
  display: none !important;
}

/* Article links — same sizing, weight, colour and hover as Tools calculators */
.tbm-col-insights .tbm-article-link .tbm-link {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  margin: 1px -10px !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}
.tbm-col-insights .tbm-article-link .tbm-link:hover {
  background: #f4f6f9 !important;
  color: #017bbd !important;
}

/* Solutions page: body also gets slp-solutions class — strip the section padding from it */
body.slp-solutions {
  padding: 0 !important;
  background: inherit !important;
}

/* ── Resources mega menu — Careers / Talent Pool column ─────────────────── */
.tbm-col-careers,
.tbm-col-careers .tbm-column-inner {
  background: #fff !important;
  display: flex;
  flex-direction: column;
}

/* Eyebrow label */
.tbm-col-careers .tbm-column-inner::before {
  content: "Talent Pool";
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #017bbd;
  padding: 2px 10px 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid #e8edf2;
}

/* Reset subnav positioning — center the button */
.tbm-col-careers .tbm-subnav.level-1 {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 10px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
}
.tbm-col-careers .tbm-subnav.level-1 .tbm-item.level-2 { list-style: none !important; }
.tbm-col-careers .tbm-subnav.level-1 .tbm-link-container {
  position: static !important;
  inset: auto !important;
}

/* CTA button — navy blue, centered */
.tbm-col-careers .tbm-subnav.level-1 .tbm-link.level-2 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  background: #0f2544 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
  margin: 0 !important;
  opacity: 1 !important;
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
}
.tbm-col-careers .tbm-subnav.level-1 .tbm-link.level-2::after {
  content: "→";
  font-size: 15px;
}
.tbm-col-careers .tbm-subnav.level-1 .tbm-link.level-2:hover {
  background: #1a3a6b !important;
  color: #fff !important;
}

/* "Join Our Team" heading — bold + uppercase + separator */
.tbm-col-careers .tbm-item:first-child .tbm-link {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #1e293b !important;
  padding: 6px 0 10px !important;
  letter-spacing: 0.03em;
}
.tbm-col-careers .tbm-item:first-child {
  border-bottom: 1px solid #e8edf2;
  margin-bottom: 4px;
}
.tbm-col-careers .tbm-item:first-child .tbm-caption {
  display: block !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #64748b !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-top: 1px;
  line-height: 1.45;
}

/* Action links — styled like Tools calculators */
.tbm-col-careers .tbm-item:not(:first-child) .tbm-link {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  margin: 1px -10px !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}
.tbm-col-careers .tbm-item:not(:first-child) .tbm-link:hover {
  background: #f4f6f9 !important;
  color: #017bbd !important;
}

/* Add a subtle right-arrow before each action link */
.tbm-col-careers .tbm-item:not(:first-child) .tbm-link::before {
  content: '→';
  margin-right: 7px;
  font-size: 12px;
  color: #017bbd;
  font-weight: 400;
}
