/* Brand lockup: RianAcademy wordmark -> academy hub, product badge -> track home.
   Loaded by the SQL, Python and Sheets tracks so the header reads the same
   everywhere while keeping a per-track accent. */

/* The Sheets capture sized its wordmark at 136px and Python at 132px on
   tablets; normalise the mark so all three tracks show it at the same size. */
[class*="HeaderLayout-styles__HeaderLogoRoot"] > [class*="HeaderLayout-styles__HeaderLogoLink"] {
  width: 160px;
}

[class*="HeaderLayout-styles__HeaderLogoRoot"] [class*="HeaderLayout-styles__HeaderLogoLink"] img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  [class*="HeaderLayout-styles__HeaderLogoRoot"] > [class*="HeaderLayout-styles__HeaderLogoLink"] {
    width: 140px;
  }
}

@media (max-width: 380px) {
  [class*="HeaderLayout-styles__HeaderLogoRoot"] > [class*="HeaderLayout-styles__HeaderLogoLink"] {
    width: 120px;
  }
}

.ra-brand-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 18px;
  margin-left: 10px;
  background: currentColor;
  opacity: .22;
}

.ra-brand-product {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin-left: 10px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 11px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ra-brand-product[data-project="sql"] {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, .38);
  background: rgba(59, 130, 246, .12);
}

.ra-brand-product[data-project="python"] {
  color: #4b8bbe;
  border-color: rgba(75, 139, 190, .42);
  background: rgba(75, 139, 190, .12);
}

.ra-brand-product[data-project="sheets"] {
  color: #16a34a;
  border-color: rgba(22, 163, 74, .38);
  background: rgba(22, 163, 74, .12);
}

.ra-brand-product:hover {
  filter: brightness(1.12);
  border-color: currentColor;
}

.ra-brand-product:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .ra-brand-divider {
    height: 15px;
    margin-left: 6px;
  }

  .ra-brand-product {
    height: 21px;
    margin-left: 6px;
    padding: 0 6px;
    font-size: 10px;
    letter-spacing: .06em;
  }
}

@media (max-width: 440px) {
  /* Phones keep the wordmark only: the product badge would push the
     sign-in control past the right edge. */
  .ra-brand-divider,
  .ra-brand-product {
    display: none;
  }
}
