/* Figma mobile mega menu (3376:11445). Desktop and tablet keep the existing shared header. */
@media (max-width: 767px) {
  body.tl-menu-open .announcement-bar {
    display: none;
  }

  body.tl-menu-open #tlHeader {
    display: block;
    position: relative;
    top: 0;
    z-index: 2000;
  }

  .tl-burger {
    border: 0;
    background: transparent;
  }

  .tl-burger.tl-open {
    display: none;
  }

  .tl-nav.tl-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .tl-nav.tl-open::before,
  .tl-nav.tl-open::after {
    display: none;
  }

  .tl-mobile-menu-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
    padding: 16px 20px;
    border-bottom: 1px solid #ecf4ff;
    background: #fff;
  }

  .tl-mobile-menu-brand,
  .tl-mobile-menu-brand img {
    display: block;
  }

  .tl-mobile-menu-brand img {
    width: 129px;
    height: auto;
  }

  .tl-mobile-menu-close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
  }

  .tl-mobile-menu-close img {
    display: block;
    width: 14px;
    height: 14px;
  }

  .tl-nav-list {
    display: block;
    min-height: auto;
    max-height: none;
    padding: 0;
  }

  .tl-nav-list > .tl-nav-item:not(#tlSolutions) {
    display: none;
  }

  #tlSolutions .solutions-link {
    display: none;
  }

  #tlSolutions .tl-mega {
    display: block;
    margin: 0;
    background: transparent;
  }

  .tl-mega-inner {
    display: block;
    padding: 0;
  }

  .tl-mega-modules {
    padding: 12px;
    background: #fff;
  }

  .tl-mega-label.tl-accordion-head {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 8px;
    border: 0;
    color: #343a40;
    font-size: 18px;
    font-weight: 700;
  }

  .tl-mega-label .tl-accordion-arrow {
    display: block;
    width: 18px;
    height: 18px;
    margin-left: auto;
    background-image: url("../images/figma-mobile-menu/chevron-down.svg");
  }

  .tl-mega-modules .tl-accordion-body,
  .tl-dark-section .tl-accordion-body {
    display: block !important;
    padding: 0;
  }

  .tl-modules-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .tl-module-item,
  .tl-module-item:first-child {
    min-height: 56px;
    margin: 0;
    padding: 12px 20px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #343a40;
    font-size: 15px;
    font-weight: 500;
  }

  .tl-module-item::after {
    width: 24px;
    height: 24px;
    margin-left: auto;
    content: "";
    flex: 0 0 24px;
    background: url("../images/figma-mobile-menu/arrow-left.svg") center / 24px 24px no-repeat;
  }

  .tl-module-item:first-child,
  .tl-module-item.active {
    border-color: #deebff;
    background: #f0f7ff;
    color: #1e40af;
    box-shadow: none;
  }

  .tl-module-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: transparent;
  }

  .tl-module-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .tl-mega-dark {
    display: block;
    max-width: none;
    padding: 24px 16px;
    color: #fff;
    background: #001655;
  }

  .tl-dark-section {
    padding: 0;
  }

  .tl-dark-section h4.tl-accordion-head {
    display: flex;
    min-height: 32px;
    margin: 0 0 4px;
    padding: 0 20px 8px;
    border: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }

  .tl-dark-section h4 span img {
    display: block;
    width: 24px;
    height: 24px;
  }

  .tl-dark-section h4 .tl-accordion-arrow {
    display: none;
  }

  .tl-dark-item {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
  }

  .tl-dark-item span,
  .tl-dark-item:hover span {
    color: #fff;
  }

  .tl-dark-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
  }

  .tl-dark-divider {
    display: block;
    margin: 20px 0;
    background: rgba(255, 255, 255, .1);
  }

  .tl-mega-cards {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #fff;
  }

  .tl-ai-promo {
    display: block;
    width: 100%;
    height: 200px;
    padding: 20px;
    border-radius: 14px;
    background: #001140 url("../images/figma-mobile-menu/ai-promo-background.png") center / cover no-repeat;
  }

  .tl-ai-promo-image,
  .tl-card-explore .tl-explore-mock {
    display: none;
  }

  .tl-ai-promo-copy {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
  }

  .tl-ai-promo-eyebrow {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 400;
  }

  .tl-ai-promo-title {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
  }

  .tl-ai-promo-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
  }

  .tl-ai-promo-action img {
    width: 24px;
    height: 24px;
  }

  .tl-card-explore {
    display: block;
    padding: 8px 0 24px;
    border: 0;
    background: transparent;
  }

  .tl-mobile-software-card {
    display: flex;
    width: 100%;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    background: #001655;
  }

  .tl-mobile-software-card > img {
    display: block;
    width: min(260px, 100%);
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
  }

  .tl-mobile-software-button {
    display: inline-flex;
    width: min(260px, 100%);
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 52px;
    background: #fff;
    color: #343a40;
    font-size: 16px;
    font-weight: 500;
  }

  .tl-mobile-software-button img {
    width: 24px;
    height: 24px;
  }

  .tl-mega-banner {
    display: flex;
    min-height: 0;
    margin: 0;
    padding: 24px;
    gap: 16px;
    border-radius: 0;
    background: #001140;
  }

  .tl-mega-banner .solhrsamvaadlogo {
    display: none;
  }

  .tl-banner-text {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
  }

  .tl-mega-banner .tl-banner-btn {
    width: auto;
    min-width: 190px;
    min-height: 52px;
    padding: 14px 24px;
    box-shadow: 0 4px 4px rgba(30, 64, 175, .45);
    font-size: 16px;
    font-weight: 500;
  }

  .tl-nav-overlay.tl-open {
    display: none;
  }
}

@media (min-width: 768px) {
  .tl-mobile-menu-header,
  .tl-ai-promo-copy,
  .tl-mobile-software-card {
    display: none;
  }
}
