/* capops.ai brand (with theme.css) - wordmark + tagline match product reference */

.capops-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.capops-brand-link:hover .capops-wordmark {
  opacity: 0.94;
}

.capops-brand-link:focus-visible {
  outline: none;
  border-radius: 10px;
  box-shadow: var(--focus);
}

.capops-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* Lavender / lilac wordmark, full string underlined in white (reference UI) */
.capops-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #d8ccf5;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.92);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: none;
}

.capops-wordmark .capops-ai {
  color: inherit;
  font-weight: inherit;
}

.capops-tagline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.5;
  max-width: 42em;
}

.capops-brand-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Single horizontal logo image (mark + wordmark in one SVG) */
.capops-brand-link--logo-img-only {
  display: block;
  line-height: 0;
}

.capops-brand-link--logo-img-only:hover .capops-logo-full {
  opacity: 0.94;
}

.capops-logo-full {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-inline: auto;
}

.capops-app-header-inner--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

/* Logo: constrain to column (flex default min-width:auto uses PNG intrinsic ~1536px) */
.capops-app-header--main .capops-brand-heading,
.capops-app-header--main .capops-brand-link--logo-img-only {
  min-width: 0;
  max-width: 100%;
}

.capops-app-header--main .capops-brand-heading {
  line-height: 0;
}

.capops-app-header--main .capops-logo-full {
  display: block;
  /* Height-driven bar logo (avoids intrinsic 1536×1024 blowing layout); width follows aspect ratio */
  height: clamp(38px, 4vw, 46px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* Tagline sits on page background below the dark logo bar */
.capops-tagline.capops-tagline--below-logo {
  margin: 0 auto 1.1rem;
  padding: 0;
  max-width: 42em;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.45;
}

/* Main app header: compact bar (~68–72px) aligned like a product navbar */
.capops-app-header--main {
  margin: -1.25rem 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.45rem 0;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  min-width: 0;
  overflow-x: clip;
}

.capops-app-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.capops-app-header-inner.capops-app-header-inner--stack {
  gap: 0.65rem;
  min-width: 0;
}

/* Auth / landing mast */
.capops-brand-mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  text-align: center;
  width: 100%;
  max-width: 460px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.capops-brand-mast .capops-brand-link {
  flex-direction: column;
  gap: 0.55rem;
}

.capops-brand-mast .capops-brand-link--logo-img-only {
  width: 100%;
  display: flex;
  justify-content: center;
}

.capops-brand-mast .capops-logo-full {
  max-width: min(300px, 92vw);
  height: clamp(36px, 5vw, 52px);
  width: auto;
  object-fit: contain;
}

.capops-brand-mast .capops-mark {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 3px 16px rgba(37, 99, 235, 0.42));
}

.capops-brand-mast .capops-wordmark {
  font-size: 1.72rem;
}
