/* Orange Chat layout tweaks no color token covers, carried over from the former custom.css.
 * Served at branding/c/extra.css, so relative URLs resolve inside this branding folder
 * (each file must be listed under `publicFiles`). Upstream UI changes can break these
 * selectors; re-check after each upstream sync. */

/* Login screen: the former compiled Orange brand scoped these to the auth page only
 * (`data-gbc-auth` marks its root), with an orange ground behind the background image. */
[data-gbc-auth] {
  --accent-primary: 234 83 0;
  --accent-primary-hover: 200 70 0;
  --surface-submit: 234 83 0;
  --surface-submit-hover: 200 70 0;
  background-color: #ea5300;
}

/* Sidebar: brand focus ring, and in dark mode a lighter ground than upstream's #171717 so the
 * sidebar reads as a distinct surface. Values are `R G B` triplets. */
.sidebar-nav {
  --ring-primary: 255 90 0;
}
.dark .sidebar-nav {
  --surface-primary-alt: 33 33 33;
  --surface-hover: 47 47 47;
  --surface-hover-alt: 57 57 57;
  --text-primary: 255 255 255;
}

/* Send button and legacy primary buttons that do not use the surface-submit token. */
#send-button,
button.btn-primary,
button.bg-green-500 {
  background-color: #ff5a00 !important;
  color: white !important;
}
#send-button svg,
button.btn-primary svg {
  color: white !important;
}
#send-button:not(:disabled):hover,
button.btn-primary:not(:disabled):hover,
button.bg-green-500:not(:disabled):hover {
  background-color: #e65100 !important;
}
#send-button:disabled,
button.btn-primary:disabled,
button.bg-green-500:disabled {
  background-color: #ff5a00 !important;
  opacity: 0.5 !important;
  color: white !important;
}

/* Toast notification. */
.alert-root {
  background-color: #ff5a00 !important;
  border-color: #ff5a00 !important;
  color: white !important;
}

/* Landing: logo above the greeting instead of upstream's icon. `Landing.tsx` drops
 * `md:flex-row` once the greeting wraps, so the selector keys off classes common to both
 * branches, scoped under the landing container. */
.flex.h-full.transform-gpu.flex-col.items-center.justify-center.pb-16 {
  max-height: none !important;
  padding-bottom: 2rem !important;
}
.flex.h-full.transform-gpu.flex-col.items-center.justify-center.pb-16 .flex.flex-col.items-center.justify-center.gap-2 {
  flex-direction: column !important;
}
.flex.h-full.transform-gpu.flex-col.items-center.justify-center.pb-16 .flex.flex-col.items-center.justify-center.gap-2 > .relative.size-10 {
  display: none !important;
}
.flex.h-full.transform-gpu.flex-col.items-center.justify-center.pb-16 .flex.flex-col.items-center.justify-center.gap-2::before {
  content: '';
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  background-image: url('logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: fadeInLogo 2s ease-in;
}
@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flex.h-full.transform-gpu.flex-col.items-center.justify-center.pb-16 .flex.flex-col.items-center.justify-center.gap-2::before {
    animation: none;
  }
}

/* Greeting in AllRoundGothic Medium, with "orange.chat" (third word) in brand orange. */
@font-face {
  font-family: 'AllRoundGothic';
  src: url('fonts/AllRoundGothic-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
p.split-parent {
  font-family: 'AllRoundGothic', 'AllRound Gothic', sans-serif !important;
  font-weight: 500 !important;
}
p.split-parent > span:nth-child(3) span {
  color: #ff5a00 !important;
}
p.split-parent > span:nth-child(3) {
  font-weight: 600;
}
