/* WTE/TTF-style sticky header — BLTM tokens. Scoped so Bootstrap 3 / OTM.css do not crush the row. */

.scroll-watcher {
  scale: 0 1;
  transform-origin: left;
  height: 3px;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  width: 100%;
}

header.ttf-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: var(--white);
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  left: auto !important;
  right: auto !important;
}

/* Kill legacy OTM header chrome sitewide so the new header wins on every template */
header.ttf-header > a,
header.ttf-header .navbar-default,
body > header:not(.ttf-header),
header > a {
  display: none !important;
}

/* Date strip is not part of the WTE header row */
header.ttf-header .datePlace {
  display: none !important;
}

header.ttf-header .otm-navbar,
header.ttf-header nav.otm-navbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  position: relative;
  z-index: 20;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  border-radius: 0;
  right: auto;
  left: auto;
}

header.ttf-header .nav > li > a:focus:before,
header.ttf-header .nav > li > a:hover:before,
header.ttf-header .dropdown:hover > a:before {
  outline: none !important;
  content: none !important;
  border: none !important;
  display: none !important;
}

/* Kill OTM.css .container { max-width: 400px } — do NOT force display/bg on every inner div */
header.ttf-header .container {
  max-width: 1320px !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
  position: relative;
  float: none !important;
}

header.ttf-header .container > .otm-nav-inner {
  background-color: transparent !important;
  width: 100% !important;
}

header.ttf-header .container img {
  width: auto !important;
  height: auto;
  max-width: 180px;
}

.otm-nav-inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  padding-block: 12px;
  gap: 8px;
}

header.ttf-header .ttf-header-logo,
header.ttf-header .otm-nav-logo,
header.ttf-header .ttf-header-logo:hover,
header.ttf-header .ttf-header-logo:focus,
header.ttf-header .ttf-header-logo:active,
header.ttf-header .otm-nav-logo:hover,
header.ttf-header .otm-nav-logo:focus,
header.ttf-header .otm-nav-logo:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.otm-nav-logo img,
.logo-desktop-wrapper img,
.logo-mobile-wrapper img,
.ttf-header-logo img {
  height: 70px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler.ttf-nav-toggler {
  border: 0;
  border-radius: 8px;
  background: var(--dark);
  height: 48px;
  width: 48px;
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  float: none;
}

.wrapper-menu {
  width: 19px;
  height: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 330ms ease-out;
}

.wrapper-menu.open {
  transform: rotate(-45deg);
}

.line-menu {
  background-color: var(--white);
  width: 100%;
  height: 2px;
}

.line-menu.half {
  width: 50%;
}

.line-menu.start {
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: right;
}

.open .line-menu.start {
  transform: rotate(-90deg) translateX(1px);
}

.line-menu.end {
  align-self: flex-end;
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: left;
}

.open .line-menu.end {
  transform: rotate(-90deg) translateX(-1px);
}

#otmNavbarContent {
  float: none !important;
  position: static !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

#otmNavbarContent.collapse:not(.show) {
  display: none !important;
}

#otmNavbarContent.collapse.show,
#otmNavbarContent.collapsing {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

header.ttf-header ul.navbar-nav {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
  margin: 0 !important;
  padding: 12px 0 8px;
  float: none !important;
  width: 100%;
  gap: 0;
}

header.ttf-header ul.navbar-nav > li {
  float: none !important;
}

header.ttf-header li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

header.ttf-header li > a,
header.ttf-header li .otm-nav-link,
header.ttf-header li .otm-nav-link-desktop,
header.ttf-header li button {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
}

header.ttf-header li > a:focus,
header.ttf-header li > a:active,
header.ttf-header li .otm-nav-link:focus,
header.ttf-header li .otm-nav-link:active,
header.ttf-header li .otm-nav-link-desktop:focus,
header.ttf-header li .otm-nav-link-desktop:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

header.ttf-header li > a,
header.ttf-header li .otm-nav-link {
  padding: 28px 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.55s ease-in-out;
  background: transparent !important;
  font-family: var(--font-family), sans-serif;
}

header.ttf-header li.selected > a,
header.ttf-header li.selected > .otm-nav-link,
header.ttf-header li.ancestor > a,
header.ttf-header li.ancestor > .otm-nav-link,
header.ttf-header li.selected .otm-nav-chevron,
header.ttf-header li.ancestor .otm-nav-chevron {
  color: var(--accent-text) !important;
}

.otm-nav-dropdown {
  position: relative;
}

/* Kill Bootstrap 3 triangle .caret if it appears anywhere in header */
header.ttf-header .caret {
  border: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  vertical-align: middle;
}

/* Single chevron style (no BS triangle) */
header.ttf-header .otm-nav-chevron {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.35s ease-in-out;
  color: inherit;
}

header.ttf-header .otm-nav-dropdown:hover > .otm-nav-link-desktop .otm-nav-chevron,
header.ttf-header .otm-nav-dropdown.otm-dropdown-open > .otm-nav-link-desktop .otm-nav-chevron,
header.ttf-header .otm-nav-dropdown:hover > .otm-caret-desktop .otm-nav-chevron,
header.ttf-header .otm-nav-dropdown.otm-dropdown-open > .otm-caret-desktop .otm-nav-chevron {
  transform: rotate(-180deg);
}

.otm-caret-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  line-height: 1;
}

.otm-nav-link-desktop {
  display: none;
}

/* Desktop dropdown — visual gap via padding so hover never breaks */
header.ttf-header .otm-dropdown-desktop {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2000;
  width: fit-content;
  min-width: 180px;
  padding: 8px 0 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  float: none;
}

/* Invisible hover bridge across the 8px gap */
header.ttf-header .otm-dropdown-desktop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
}

header.ttf-header .otm-nav-dropdown:hover > .otm-dropdown-desktop,
header.ttf-header .otm-nav-dropdown.otm-dropdown-open > .otm-dropdown-desktop {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

header.ttf-header .otm-dropdown-desktop .otm-dropdown-content {
  background: #ffffff !important;
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--surface);
}

header.ttf-header .otm-dropdown-desktop .otm-dropdown-item,
header.ttf-header .otm-dropdown-desktop a {
  display: flex !important;
  align-items: center;
  font-weight: 400 !important;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #000 !important;
  line-height: 1.2;
  height: 45px;
  max-height: 45px;
  padding: 0 32px 0 12px !important;
  white-space: nowrap;
  border-radius: 8px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none !important;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

header.ttf-header .otm-dropdown-desktop .otm-dropdown-item:hover,
header.ttf-header .otm-dropdown-desktop .otm-dropdown-item:focus,
header.ttf-header .otm-dropdown-desktop .otm-dropdown-item:active,
header.ttf-header .otm-dropdown-desktop a:hover,
header.ttf-header .otm-dropdown-desktop a:focus,
header.ttf-header .otm-dropdown-desktop a:active {
  background: var(--surface) !important;
  color: var(--accent-text) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Never let BS3 .dropdown:hover .dropdown-menu open panels in header */
header.ttf-header .otm-mobile-menu-item > .otm-dropdown-menu {
  display: none !important;
  list-style: none;
  padding: 0 0 8px 12px;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  position: static;
  float: none;
  width: 100%;
}

header.ttf-header .otm-mobile-menu-item.open > .otm-dropdown-menu,
header.ttf-header .otm-nav-dropdown.otm-dropdown-open .otm-mobile-menu-item.open > .otm-dropdown-menu {
  display: block !important;
}

header.ttf-header .otm-mobile-menu-item > .otm-dropdown-menu > li {
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

header.ttf-header .otm-mobile-menu-item .otm-dropdown-item {
  display: block;
  padding: 8px 0;
  color: #181820;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

header.ttf-header .otm-mobile-menu-item .otm-dropdown-item:hover,
header.ttf-header .otm-mobile-menu-item .otm-dropdown-item:focus,
header.ttf-header .otm-mobile-menu-item .otm-dropdown-item:active {
  color: var(--accent-text);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.otm-mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.otm-mobile-dropdown-toggle {
  background: transparent;
  border: none;
  padding: 8px;
  color: var(--dark);
}

.menuButtons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 8px 0 16px;
  width: auto !important;
}

/* WTE btn-drawing header CTAs (BLTM colors: pink Exhibit, dark Register — as on WTE) */
header.ttf-header .menuButtons .btn-drawing {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 12px;
  background-color: transparent;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-family), sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.43;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  width: fit-content !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

header.ttf-header .menuButtons .btn-drawing:hover,
header.ttf-header .menuButtons .btn-drawing:focus,
header.ttf-header .menuButtons .btn-drawing:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none !important;
}

header.ttf-header .menuButtons .btn-drawing.draw-left {
  color: var(--accent-text) !important;
}

header.ttf-header .menuButtons .btn-drawing.draw-right {
  color: var(--dark) !important;
}

header.ttf-header .menuButtons .btn-drawing-base-border {
  position: absolute;
  inset: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  pointer-events: none;
  transition: border-color 0.2s ease-out;
}

header.ttf-header .menuButtons .btn-drawing:hover .btn-drawing-base-border {
  border-color: transparent;
}

header.ttf-header .menuButtons .btn-drawing svg {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  pointer-events: none;
}

header.ttf-header .menuButtons .btn-drawing svg:not(:root) {
  width: 100% !important;
  height: 100% !important;
}

header.ttf-header .menuButtons .btn-drawing svg rect {
  fill: none;
  stroke-width: 2px;
  stroke-dasharray: 0 50;
  transition: stroke-dasharray 0.2s ease-out;
  vector-effect: non-scaling-stroke;
}

header.ttf-header .menuButtons .btn-drawing.draw-left:hover svg rect {
  stroke: var(--accent-text);
  stroke-dasharray: 50 0;
}

header.ttf-header .menuButtons .btn-drawing.draw-right:hover svg rect {
  stroke: var(--dark);
  stroke-dasharray: 50 0;
}

header.ttf-header .menuButtons .btn-drawing .relative.z-10,
header.ttf-header .menuButtons .btn-drawing > span {
  position: relative;
  z-index: 10;
}

.logo-desktop-wrapper {
  display: none;
}

.logo-mobile-wrapper {
  display: contents;
}

/* Desktop / XL — WTE 3-zone row */
@media (min-width: 1200px) {
  .navbar-toggler.ttf-nav-toggler {
    display: none !important;
  }

  .logo-mobile-wrapper {
    display: none !important;
  }

  .logo-desktop-wrapper {
    display: contents !important;
  }

  .otm-nav-inner {
    padding-block: 0;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .otm-nav-logo img,
  .logo-desktop-wrapper img,
  .ttf-header-logo img {
    height: 70px !important;
    max-width: 180px !important;
  }

  #otmNavbarContent,
  #otmNavbarContent.collapse:not(.show),
  #otmNavbarContent.collapse.show {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    flex-grow: 1;
    gap: 0;
    position: static !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header.ttf-header ul.navbar-nav {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    flex: 1 1 auto;
    padding: 0 10px;
    gap: 28px;
  }

  header.ttf-header li {
    width: auto !important;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }

  header.ttf-header li > a,
  header.ttf-header li .otm-nav-link {
    padding: 28px 8px;
    font-size: 16px;
  }

  header.ttf-header li:first-child > a,
  header.ttf-header li:first-child .otm-nav-link {
    padding-left: 0;
  }

  header.ttf-header li.selected,
  header.ttf-header li.ancestor {
    border-bottom-color: var(--primary) !important;
  }

  header.ttf-header li:hover {
    border-bottom-color: var(--primary-soft) !important;
  }

  header.ttf-header li.selected .otm-caret-desktop,
  header.ttf-header li.selected .otm-caret-desktop i,
  header.ttf-header li.ancestor > a,
  header.ttf-header li.ancestor > .otm-nav-link,
  header.ttf-header li.ancestor .otm-caret-desktop,
  header.ttf-header li.ancestor .otm-caret-desktop i,
  header.ttf-header li.selected a,
  header.ttf-header li.ancestor a {
    color: var(--dark) !important;
  }

  .otm-mobile-menu-item {
    display: none !important;
  }

  .otm-nav-link-desktop {
    display: inline-flex !important;
    align-items: center;
  }

  /* One chevron only: inside the link; hide extra tablet button on desktop */
  .otm-caret-desktop {
    display: none !important;
  }

  header.ttf-header .otm-dropdown-desktop {
    top: 100%;
    left: 0;
    padding-top: 8px;
  }

  .menuButtons {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto;
    gap: 12px;
  }

  header.ttf-header .menuButtons .btn-drawing {
    height: 40px;
  }

  @media (min-width: 1900px) {
    header.ttf-header ul.navbar-nav {
      gap: 35px;
    }

    header.ttf-header li > a,
    header.ttf-header li .otm-nav-link {
      font-size: 18px;
    }

    header.ttf-header .menuButtons .btn-drawing {
      font-size: 16px;
      height: 48px;
      padding: 0 24px;
    }

    .otm-dropdown-desktop {
      top: 100%;
      padding-top: 8px;
    }
  }
}

@media (max-width: 1199.98px) {
  .navbar-toggler.ttf-nav-toggler {
    display: inline-flex;
  }

  .logo-desktop-wrapper {
    display: none !important;
  }

  .logo-mobile-wrapper {
    display: contents;
  }

  .otm-nav-inner {
    padding-block: 15px;
  }

  header.ttf-header li .otm-nav-link {
    padding: 8px 0 !important;
    font-size: 20px;
  }

  .otm-caret-desktop {
    display: none !important;
  }

  #otmNavbarContent.collapse:not(.show) {
    display: none !important;
  }

  #otmNavbarContent.collapse.show {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    order: 3;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-toggler.ttf-nav-toggler {
    display: inline-flex;
  }

  .otm-caret-desktop {
    display: inline-flex !important;
    pointer-events: auto !important;
    padding: 10px 10px 10px 0;
    cursor: pointer;
  }

  .otm-nav-dropdown.otm-dropdown-open .otm-dropdown-desktop {
    display: block !important;
  }

  .otm-nav-dropdown.otm-dropdown-open .otm-caret-desktop {
    transform: rotate(-180deg) !important;
    color: var(--accent-text) !important;
  }

  .otm-dropdown-desktop {
    left: -32px;
  }
}

.cms-toolbar-expanded header.ttf-header {
  top: 46px;
}

/* Neutralise legacy OTM.css `.container div { width:100%; display:inline-block; background:white }` inside the header */
header.ttf-header .container div {
  background-color: transparent;
}

header.ttf-header .logo-mobile-wrapper {
  display: contents;
}

header.ttf-header .wrapper-menu {
  display: flex;
  width: 19px;
  height: 19px;
}

header.ttf-header .wrapper-menu .line-menu {
  background-color: var(--white);
}

header.ttf-header .otm-mobile-menu-item {
  display: flex;
  flex-wrap: wrap;
}

header.ttf-header .otm-mobile-menu-item > .otm-dropdown-menu {
  flex: 0 0 100%;
}

/* Collapsed menu (< 1200px) uses only the mobile accordion, never the desktop flyout */
@media (max-width: 1199.98px) {
  header.ttf-header .otm-dropdown-desktop,
  header.ttf-header .otm-nav-dropdown.otm-dropdown-open > .otm-dropdown-desktop,
  header.ttf-header .otm-nav-link-desktop,
  header.ttf-header .otm-caret-desktop {
    display: none !important;
  }

  header.ttf-header .otm-mobile-menu-item.open .otm-nav-chevron {
    transform: rotate(-180deg);
  }
}

header.ttf-header .otm-dropdown-desktop .otm-dropdown-content {
  width: auto;
  display: block;
}

/* Breathing room between logo and first menu item */
@media (min-width: 1200px) {
  header.ttf-header .logo-desktop-wrapper .otm-nav-logo {
    margin-right: 24px;
  }
}

/* "More" is a <button> (no page of its own): match the link styling */
header.ttf-header button.otm-nav-link {
  background: transparent;
  cursor: pointer;
  line-height: inherit;
  text-align: left;
}

/* Open desktop dropdowns for keyboard users too */
@media (min-width: 1200px) {
  header.ttf-header .otm-nav-dropdown:focus-within > .otm-dropdown-desktop {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

