/* Product identity: optical colour masters, white logo outlines on dark surfaces.
   Keep working views calm; the shared shell and entry surfaces carry the brand. */
.brand-logo {
  display: block;
  max-width: 100%;
  height: auto;
}
.sidebar .brand {
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.25rem;
}
.sidebar .brand img {
  width: 198px;
}
.sidebar .brand small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.78rem;
}
.brand-mobile {
  display: none;
}
.brand-home {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  align-items: center;
}
.brand-home img {
  width: 11rem;
}
.brand-home p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.brand-about {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}
.brand-about img {
  width: 26rem;
}
.brand-about h2 {
  margin-top: 0;
}
.brand-about p {
  overflow-wrap: anywhere;
}
.login-story .brand-logo {
  width: min(100%, 28rem);
  margin-bottom: clamp(1.5rem, 5vh, 4rem);
}
.login-form-brand {
  display: none;
}
.brand-loading {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}
.brand-loading img {
  width: min(22rem, 100%);
  height: auto;
}
.brand-loading .brand-dark {
  display: none;
}
.brand-loading p {
  margin: 0;
}
[data-theme='dark'] .brand-loading .brand-light {
  display: none;
}
[data-theme='dark'] .brand-loading .brand-dark {
  display: block;
}
.desktop-hub header .brand-logo {
  width: min(26rem, 100%);
}
.desktop-brand-caption {
  color: var(--muted);
  margin-bottom: 2rem;
}
@media (max-width: 1100px) {
  .brand-mobile {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .brand-mobile img {
    width: min(9rem, 100%);
  }
  .topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
  .topbar .mobile-menu {
    grid-column: 1;
    grid-row: 1;
  }
  .topbar .brand-mobile {
    grid-column: 2;
    grid-row: 1;
  }
  .topbar .work-search-trigger {
    grid-column: 3;
    grid-row: 1;
  }
  .topbar .preferences {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
  }
  .brand-about {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .brand-home {
    gap: 0.75rem;
  }
}
@media (max-width: 600px) {
  .login-story {
    padding: 1.4rem;
  }
  .login-story h1 {
    font-size: 1.6rem;
  }
  .login-story p {
    display: none;
  }
  .login-story .brand-logo {
    margin-bottom: 1.2rem;
    width: min(100%, 22rem);
  }
  .brand-home img {
    width: min(11rem, 100%);
  }
}
@media print {
  .brand-home {
    break-inside: avoid;
  }
}

.login-story h1,
.login-form h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .login-form h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .topbar .work-search-trigger {
    width: 44px;
    min-width: 44px;
    padding: 0.5rem;
    justify-content: center;
  }
  .topbar .work-search-trigger span,
  .topbar .work-search-trigger kbd {
    display: none;
  }
}
