/* Shared CyberUnion wordmark: English first, Chinese translation second */
.cu-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.05;
  text-decoration: none;
  color: inherit;
}
.cu-brand--center { align-items: center; text-align: center; }
.cu-brand__en {
  font-family: var(--cu-font-sans, system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cu-accent, #e5b453);
}
.cu-brand__zh {
  font-family: var(--cu-font-display, "Songti SC", serif);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--cu-muted, #8a8578);
  font-size: 0.72em;
}
.cu-brand--hero .cu-brand__en {
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  letter-spacing: 0.28em;
  text-shadow: 0 0 12px var(--cu-accent-glow, rgba(229,180,83,.45));
}
.cu-brand--hero .cu-brand__zh {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.42em;
}
.cu-brand--inline {
  flex-direction: row;
  align-items: baseline;
  gap: 0.55em;
}
.cu-brand--inline .cu-brand__zh {
  font-size: 0.85em;
  letter-spacing: 0.18em;
}

/* Portal topbar lockup: CyberUnion primary (theme-colored seal) */
.portal-shell .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}
.portal-shell .brand > img {
  display: none !important;
}
.portal-shell .cu-portal-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--cu-accent);
  line-height: 1.05;
  max-width: min(280px, 72vw);
}
.portal-shell .cu-portal-lockup__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--cu-accent-glow));
}
.portal-shell .cu-portal-lockup__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.portal-shell .cu-portal-lockup__en {
  font-family: var(--cu-font-sans);
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cu-accent);
  white-space: nowrap;
}
.portal-shell .cu-portal-lockup__rule {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--cu-accent) 45%, transparent);
  opacity: 0.7;
}
.portal-shell .cu-portal-lockup__zh {
  font-family: var(--cu-font-display);
  font-size: clamp(11px, 1.8vw, 13px);
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--cu-muted);
  white-space: nowrap;
}
html[data-cu-theme="healing"] .portal-shell .cu-portal-lockup__en,
html[data-cu-theme="paper"] .portal-shell .cu-portal-lockup__en,
html[data-cu-theme="calendar"] .portal-shell .cu-portal-lockup__en {
  color: var(--cu-ink);
  letter-spacing: 0.14em;
}
html[data-cu-theme="healing"] .portal-shell .cu-portal-lockup__zh,
html[data-cu-theme="paper"] .portal-shell .cu-portal-lockup__zh,
html[data-cu-theme="calendar"] .portal-shell .cu-portal-lockup__zh {
  color: var(--cu-accent);
}
/* Full lockup lives in cu-portal-lockup; hide duplicate text label */
.portal-shell .brand__word {
  display: none !important;
}
.portal-shell .brand__product {
  display: none !important;
}

/* Login / SSO lockup with 赛博游灵 seal mark */
.cu-logo-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.cu-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
