/* =========================================================
   UPS Header / Topbar
   ========================================================= */

.ups-page {
  width: 100%;
  min-height: 100vh;
  overflow: visible;
}

.ups-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
}

/* ===== Skip link ===== */

.ups-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ups-skip-link:focus,
.ups-skip-link:focus-visible {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ups-text);
  border: 1px solid var(--ups-border-strong);
  box-shadow: var(--ups-shadow-soft);
  z-index: 9999;
}

/* =========================================================
   TOPBAR — single source of truth
   ========================================================= */

.ups-app-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 10px 14px 8px;
  margin: 0;
  box-sizing: border-box;
}

.ups-app-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  text-align: right;
  min-height: 18px;
}

/* ===== Navigation links: plain style like start/paywall ===== */

.ups-app-toplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;

  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ups-text-soft);
  text-decoration: none;

  transition: color 0.18s ease, opacity 0.18s ease;
}

.ups-app-toplink:hover,
.ups-app-toplink:focus-visible {
  color: var(--ups-text);
  opacity: 1;
  outline: none;
}

/* Active link: darker + slightly bolder, but still plain text */

.ups-app-toplink.is-active {
  color: var(--ups-text);
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

/* Login when logged out stays a touch softer */

.ups-app-toplink-muted {
  opacity: 0.82;
}

.ups-app-toplink-muted:hover,
.ups-app-toplink-muted:focus-visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .ups-app-topbar {
    min-height: 32px;
    padding: 8px 10px 6px;
  }

  .ups-app-topbar-right {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .ups-app-topbar {
    min-height: 30px;
    padding: 7px 8px 5px;
  }

  .ups-app-topbar-right {
    gap: 12px;
    flex-wrap: wrap;
  }

  .ups-app-toplink {
    font-size: 0.88rem;
  }
}

/* =========================================================
   USER BLOCK
   ========================================================= */

.ups-user-block {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ups-text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.ups-user-label {
  color: var(--ups-text-muted);
}

.ups-user-name {
  color: var(--ups-text);
  font-weight: 600;
}

.ups-user-separator {
  opacity: 0.5;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 899px) {
  .ups-page {
    overflow: visible;
  }

  .ups-layout {
    display: block;
    min-height: 100vh;
  }
}

@media (max-width: 640px) {
  .ups-user-block {
    font-size: 0.84rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}