/* Customer access stays separate from the prospect-facing demo invitation.
   Scoped to live headers; mobile-menu and footer links retain their own styles. */
.site-header.tw-customer-header {
  --login-ink: #68c4f4;
  --login-line: rgba(104, 196, 244, .55);
  --login-hover: rgba(41, 157, 224, .1);
  --login-focus: #83d4ff;
}
.site-header.tw-customer-header--light {
  --login-ink: #075b8d;
  --login-line: rgba(7, 91, 141, .5);
  --login-hover: #e8f4f8;
  --login-focus: #147db4;
}
.tw-customer-header .header-inner { gap: 20px; }
.tw-customer-header .header-logo { flex: 0 0 auto; }
.tw-customer-header .header-logo img { display: block; }
.tw-customer-header .header-right { flex: 0 0 auto; gap: 12px; }
.tw-customer-header .header-login {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--login-line);
  border-radius: 999px;
  color: var(--login-ink);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.tw-customer-header .header-login:hover {
  color: var(--login-ink);
  background: var(--login-hover);
  border-color: var(--login-ink);
}
.tw-customer-header .header-login:focus-visible,
.tw-customer-header .header-hamburger:focus-visible,
.tw-customer-header .tw-header-menu summary:focus-visible {
  outline: 3px solid var(--login-focus);
  outline-offset: 4px;
}
.tw-customer-header .header-right > .header-cta { margin-left: 0; min-height: 44px; box-sizing: border-box; }
.tw-customer-header .header-hamburger {
  box-sizing: border-box;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 44px;
  min-height: 44px;
}
.tw-customer-header .header-hamburger span { width: 22px; margin: 0; }
/* The 404 uses a native disclosure rather than introducing a JS dependency. */
.tw-customer-header .tw-header-menu { display: none; }
.tw-customer-header .tw-header-menu summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.tw-customer-header .tw-header-menu summary::-webkit-details-marker { display: none; }
.tw-customer-header .tw-header-menu summary span { width: 22px; height: 2px; background: #e4e9f2; }
.tw-customer-header .tw-header-menu nav {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  padding: 16px 24px;
  background: #060a11;
  border-bottom: 1px solid var(--login-line);
}
.tw-customer-header .tw-header-menu nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #e4e9f2;
  font-size: 14px;
  text-decoration: none;
}
/* Keep the full navigation only when logo, links and both actions fit. */
@media (max-width: 1119px) {
  .tw-customer-header .header-nav,
  .tw-customer-header .header-right > .header-cta { display: none; }
  .tw-customer-header .header-hamburger { display: flex; justify-content: center; }
  .tw-customer-header .tw-header-menu { display: block; }
}
@media (min-width: 1120px) and (max-width: 1279px) {
  .tw-customer-header .header-nav > a,
  .tw-customer-header .nav-dropdown > a { padding-inline: 12px; }
}
@media (max-width: 479px) {
  .tw-customer-header .header-inner { gap: 8px; padding-inline: 14px; }
  .tw-customer-header .header-right { gap: 6px; }
  .tw-customer-header .header-logo img { height: 28px; }
  .tw-customer-header .header-login { min-width: 74px; padding-inline: 14px; font-size: 13px; }
  /* Standalone headers already provide their horizontal inset via width. */
  .tw-customer-header--inset .header-inner { padding-inline: 0; }
}
