/* Global Header New Styles */

/* Base Variables */
:root {
    /* Colors */
    --color-neutral-black: #281805;
    --color-neutral-white: #f2f2f2;
    --color-warm-black: #281805;
    --color-neutral-white-000: #fff;
    --color-white: #fff;
    --color-blue: #0061f4;
    --color-crimson-red: #cf0000;
    --color-focus: #e0ecfe;
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 72px;
    /* Typography */
    --font-primary: "Forever Forma Variable", Arial, sans-serif;
    --font-body: "Forever Forma Body Text", Arial, sans-serif;
}

.skip-to-main {
    position: fixed !important;
    left: -1000px;
    top: -1000px;
    width: 1px;
    height: 1px;
    color: var(--Actions-Link_Default, #281805);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline solid;
    text-underline-position: from-font;
    margin: 32px;
    z-index: 1000;
    background-color: var(--color-neutral-white-000);
    padding: 8px 16px;
}

    .skip-to-main:focus {
        top: 0;
        left: 0;
        height: auto;
        width: auto;
        margin: 16px 32px;
        padding: 8px 16px;
    }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.icon {
    height: 24px;
    width: 24px;
    flex-shrink: 0;
}

.button--text-white {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* Reset */
.global-header * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.global-header {
    position: fixed;
    top: 0;
    height: 92px;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    background-color: var(--color-neutral-white-000);
    padding: 16px var(--page-gutter);
}

.global-header-placeholder {
    position: relative;
    display: block;
    height: 92px;
}

.TA-logo--header-link {
    justify-self: flex-start;
}

.TA-logo--header {
    width: 225px;
    height: 54px;
}

.header__links {
    display: flex;
    align-items: center;
}

.header__links--left {
    gap: 24px;
    margin-right: auto;
}

.header__links--right {
    gap: 32px;
}

.header__button,
.header__button--home,
.header__button--messages {
    position: relative;
    display: flex;
    padding: 12px 0;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.header__message-badge {
    height: 11px;
    width: 11px;
    position: absolute;
    right: 0;
    top: 12px;
    background-color: #d32f2f;
    border-radius: 50%;
}

.header__avatar-menu {
    position: relative;
    padding-left: 0;
}

.header__avatar-menu__button > * {
    pointer-events: none;
}

.header__avatar-menu__button {
    display: flex;
    align-items: center;
    border: none;
    background-color: transparent;
    color: var(--color-warm-black);
    cursor: pointer;
    text-decoration: none !important;
}

.header__avatar-menu__initials {
    display: flex;
    height: 48px;
    width: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 38px;
    background: var(--color-Neutral-Neutral-100, #f2f2f2);
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
    letter-spacing: 0.23px;
}

.open .header__avatar-menu__initials {
    background: var(--color-warm-black);
    color: var(--color-white);
}

.open .header__avatar-menu__button .icon {
    transform: rotate(180deg);
}

.header__avatar-menu__dropdown__title {
    display: flex;
    padding: 24px 32px 10px 32px;
    align-items: center;
    align-self: stretch;
    font-family: var(--font-primary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
}

.header__avatar-menu__dropdown {
    position: absolute;
    display: flex;
    width: 240px;
    right: 0;
    top: calc(100% + 22px);
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-Neutral-White-000, #fff);
    box-shadow: 0 0 2px 0 rgba(34, 34, 34, 0.14), 0 2px 2px 0 rgba(34, 34, 34, 0.12), 0 1px 3px 0 rgba(34, 34, 34, 0.2);
    list-style: none;
    padding-left: 0;
}

    .header__avatar-menu__dropdown.hidden {
        display: none;
    }

.header__avatar-menu__dropdown__item {
    display: flex;
    align-items: center;
    align-self: stretch;
}

.header__avatar-menu__dropdown__link {
    text-decoration: none;
    color: var(--Actions-Button_Hover, #281805);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%; /* 24px */
    padding: 8px 32px;
    width: 100%;
}

/* Base Text Styles */
.text-base {
    font-feature-settings: "liga" off, "clig" off;
    font-style: normal;
    line-height: 150%;
}

.navMenuSecPanel .interactive{
  display: block;
}

/* Interactive Elements */
.interactive {
  position: relative;
  isolation: isolate;
  outline: none;
  transition: box-shadow 0.1s;
}

/* Hover on direct interactive elements (not wrappers) */
.interactive:has(a):hover {
  text-decoration: underline;
}

.fg-input-box:hover input{
  border-color: #28180599;
}

/* Focus on direct interactive elements */
.interactive:focus-visible {
  box-shadow: 0 0 0 2px var(--color-blue), 0 0 0 8px var(--color-focus);
  outline: none;
}

/* Focus on wrapper interactive elements when they contain focused children */
.interactive:has(:focus-visible) {
  box-shadow: 0 0 0 2px var(--color-blue), 0 0 0 8px var(--color-focus);
  outline: none;
}

/* Ensure children of interactive wrappers have no focus ring */
.interactive:has(:focus-visible) input,
.interactive:has(:focus-visible) textarea,
.interactive:has(:focus-visible) select {
  outline: none;
  box-shadow: none;
}

.interactive--button-style:focus-visible{
  box-shadow: 0 0 0 2px var(--color-blue), 0 0 0 2px #fff inset;
  outline: none;
  background-color: var(--color-focus) !important;
}
/* Media Queries */
@media screen and (min-width: 1920px) {

  .navMegaPrimary{
    padding: 12px var(--page-gutter);
    gap: 64px;
  }
  .navMenuSecPanel{
    padding: 32px var(--page-gutter);
    grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (min-width: 1440px) and (max-width: 1919px) {

  .navMegaPrimary{
    padding: 12px var(--page-gutter);
    gap: 48px;
  }
  .navMenuSecPanel{
    padding: 32px var(--page-gutter);
    grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (min-width: 600px) and (max-width: 1439px) {

  .navMegaPrimary{
    padding: 12px var(--page-gutter);
    gap: 32px;
  }
  .navMenuSecPanel{
    padding: 32px var(--page-gutter);
    grid-template-columns: repeat(5, 1fr);
  }
}
@media screen and (max-width: 959px) {

  .navMegaPrimary{
    padding: 12px var(--page-gutter);
    gap: 16px;
  }
  .navMenuSecPanel{
    padding: 32px var(--page-gutter);
    grid-template-columns: repeat(4, 1fr);
  }
}

.toolbar-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: inherit;
}

.toolbar-link:hover,
.toolbar-link:focus {
    text-decoration: underline;
}

@media screen and (max-width: 600px) {
    .global-header {
        padding: 16px 24px;
        height: 72px;
    }

    .global-header-placeholder {
        height: 72px;
    }

    .TA-logo--header {
        width: 180px;
        height: 43px;
    }

    .header__links--right {
        gap: 16px;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .interactive:focus-visible {
        outline: 2px solid ButtonText;
    }
}


.hidden {
    display: none;
}

/* ========================================
   Mega Menu Overlay & State Styles
   ======================================== */

  [id$="UcNavGlobal_toolbarNavNew"] {
    position: fixed;
    top: 92px; /* Position below the fixed header (header height = 92px) */
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 90; /* Below header (z-index: 100) but above content */
  }

  /* Placeholder to prevent content jump when toolbarNavNew is fixed */
  .toolbarNavNew-placeholder {
    display: block;
    height: 72px; /* Match the height of toolbarNavNew */
  }

/* Fixed overlay that covers everything below the nav */
.mega-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 80; /* Below the header (z-index: 100) but above content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
  pointer-events: none;
}

/* Show overlay when menu is open */
body.mega-menu-open .mega-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Arrow rotates when submenu is open - uses 'menu-open' to avoid conflict with legacy 'active' class */
.navMegaPrimary li.menu-open svg {
  transform: rotate(-180deg);
}

/* Menu button styling - reset button appearance */
.navMegaPrimary button[role="menuitem"] {
  background: none;
  border: none;
  padding: 12px 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-warm-black, #281805);
  text-decoration: none;
  white-space: nowrap;
}


/* ========================================
   Non-clickable Category Titles
   ======================================== */

/* Category title - non-clickable heading for menu sections */
.navMenuSecCategoryTitle:is(h2, h3, h4){
  display: flex;
padding: 10px 0;
align-items: center;
align-self: stretch;
  color: var(--Actions-Button_Hover, #281805);
font-feature-settings: 'liga' off, 'clig' off;
font-family: "Forever Forma Variable";
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 120%; /* 24px */
}
.navMenuSecSubTitle:is(h2, h3, h4) {
  display: flex;
  padding: 20px 0 10px 0;
  align-items: center;
  align-self: stretch;
  color: var(--Actions-Button_Hover, #281805);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Forever Forma Variable";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; /* 19.2px */
}

/* Hide empty menu sections - title hidden when sibling list is empty */
/* Hide column sections when their list is empty */
/* Hide category title when section has no visible list items */
.navMenuSecGroup:has(.navMenuSecList.is-empty),
.navMenuSecCol:has(> .navMenuSecList.is-empty):not(:has(.navMenuSecList:not(.is-empty))),
section.navMenuSecCol:has(> .navMenuSecList.is-empty):not(:has(.navMenuSecGroup)) {
  display: none;
}

/* ========================================
   Semantic List Styles for Menu Panels
   ======================================== */

/* Reset list styles for menu lists */
.navMenuSecList {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.navMenuSecHeader em::before{
    content: "";
    display: inline-block;
    width: 0.3ch;
    height: 1em;
}