.site-header [data-tfp-component="nav"],
.site-header [data-tfp-component="nav"] > .tfp-auth-menu,
.site-header .widget [data-tfp-component="nav"] {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  min-height: 100%;
}

.tfp-auth-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  font: inherit;
  line-height: inherit;
  color: inherit;
}

.tfp-auth-menu__toggle,
.site .tfp-auth-menu__toggle,
.site .tfp-auth-menu__logout {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  line-height: inherit;
}

.tfp-auth-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 100%;
  white-space: nowrap;
}

.site-header .tfp-auth-menu__toggle:hover,
.site-header .tfp-auth-menu__toggle:focus-visible {
  color: var(--ast-global-color-0, #6a994e);
}

.tfp-auth-menu__user {
  display: inline-block;
}

.tfp-auth-menu__caret {
  font-size: 0.82em;
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tfp-auth-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  display: none;
  z-index: 9999;
}

.tfp-auth-menu__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.tfp-auth-menu.is-open .tfp-auth-menu__panel {
  display: block;
}

.tfp-auth-menu__item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  white-space: nowrap;
}

.tfp-auth-menu__item:hover,
.tfp-auth-menu__item:focus-visible {
  background: rgba(0, 0, 0, 0.04);
  color: inherit;
}

.tfp-auth-menu.is-open .tfp-auth-menu__caret {
  transform: rotate(180deg);
}

.tfp-require-auth {
  display: none !important;
}

body.tfp-signed-in .tfp-require-auth {
  display: block !important;
}

[data-tfp-login-fields][hidden], [data-tfp-login-signed-in][hidden],
[data-tfp-account-returns][hidden], [data-tfp-account-login][hidden] {
  display: none !important;
}
#tfp-beta-account-nav {
  background: #fff;
  color: #102e43;
  border-bottom: 1px solid #d5dde5;
  padding: 12px 20px;
}
#tfp-beta-account-nav [data-tfp-component="nav"] { display: block; }
#tfp-beta-account-nav .tfp-auth-menu { display: block; }
#tfp-beta-account-nav .tfp-auth-menu__toggle { display: inline-flex; min-height:44px; padding:8px 4px; }
#tfp-beta-account-nav .tfp-auth-menu__panel {
  position: static;
  display: none;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
#tfp-beta-account-nav .tfp-auth-menu.is-open .tfp-auth-menu__panel { display:flex; }
.tfp-auth-menu__panel[hidden] { display:none!important; }
.tfp-auth-menu__toggle:focus-visible { outline:3px solid #102e43!important; outline-offset:3px!important; }
.tfp-auth-menu__panel { max-width:calc(100vw - 32px); }
#tfp-beta-account-nav .tfp-auth-menu__panel::before { display: none; }
#tfp-beta-account-nav .tfp-auth-menu__item { width: auto; padding: 8px 4px; }
#tfp-beta-account-nav .tfp-auth-menu__item:focus-visible { outline: 3px solid #102e43; outline-offset: 3px; }

@media (max-width: 921px) {
  .site-header [data-tfp-component="nav"],
  .site-header [data-tfp-component="nav"] > .tfp-auth-menu {
    width: 100%;
    justify-content: flex-start;
  }

  .tfp-auth-menu__panel {
    left: 0;
    right: auto;
  }
}
/* TFP-085-C: scoped operational help/structured feedback, including keyboard focus. */
.tfp-beta-help {max-width: 760px; margin: 24px auto; padding: 20px; overflow-wrap: anywhere;}
.tfp-beta-help h2 {font-size: 1.35rem; margin-top: 1.5em;}
.tfp-beta-help label {display: block; margin: 16px 0 6px; font-weight: 600;}
.tfp-beta-help select {display: block; width: 100%; max-width: 100%; min-height: 44px; margin-bottom: 16px; background: #fff; color: #102e43;}
.tfp-beta-help button {min-height: 44px; white-space: normal; background: #102e43; color: #fff;}
.tfp-beta-help a {text-decoration: underline;}
.tfp-beta-help :focus-visible {outline: 3px solid #b34e00; outline-offset: 3px;}
/* Persistent labels must remain visible after typing or autofill. */
.tfp-auth-box form > label[for] { display:block; margin-top:16px; font-weight:600; }
.tfp-auth-box form > input { width:100%; max-width:100%; box-sizing:border-box; }
.tfp-auth-box form > p[id$="hint"] { margin:6px 0 12px; }
#tfp-auth-error { color:#9b1c1c; }
#tfp-auth-error:focus { outline:3px solid #164f76; outline-offset:3px; }
