/* backend/src/main/resources/static/modules_styles/starter_standard/components/logo.css */

/* ==============================================
   LOGO COMPONENT — starter-standard

   Flat design, theme-aware logo switching.
   ============================================== */

.logotype {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: var(--gb-radius-md);
  padding: var(--gb-spacing-xs);
  transition: opacity var(--gb-transition-fast);
}

.logotype:hover {
  opacity: 0.8;
}

.logotype:focus-visible {
  outline: 2px solid var(--gb-accent-primary);
  outline-offset: 2px;
}

/* Only the height is set: a brand's logo keeps its own proportions,
   whether it is a square mark or a long wordmark. */
.logotype .brand-logo {
  width: auto;
  height: 50px;
}

/* ==============================================
   THEME-AWARE LOGO SWITCHING — brand slot

   The brand fragment renders one image per theme; the active theme
   class on the root shows exactly one, in every context the fragment
   is used (header, mobile menu, auth card).
   ============================================== */

.brand-logo {
  display: block;
}

.brand-logo--dark,
.page-dark .brand-logo--light {
  display: none;
}

.page-dark .brand-logo--dark {
  display: block;
}
