/* Header corner and logo override. Loaded after styles.css on purpose. */
:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --vx-rail-width: 56px;
  --vx-topbar-height: 42px;
}

body {
  padding-left: var(--vx-rail-width);
}

body::before {
  top: var(--vx-topbar-height);
  bottom: 0;
  width: var(--vx-rail-width);
  z-index: 4;
  background: #ff1717;
}

body::after {
  top: calc(var(--vx-topbar-height) + 15px);
  width: var(--vx-rail-width);
  z-index: 5;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transform: scaleX(1.08);
}

.topbar,
html[data-theme="dark"] .topbar,
html[data-theme="light"] .topbar {
  width: calc(100% + var(--vx-rail-width));
  min-height: var(--vx-topbar-height);
  margin-left: calc(var(--vx-rail-width) * -1);
  padding: 5px 10px 5px 16px;
  z-index: 90;
}

.topbar-left {
  gap: 14px;
}

.topbar .brand,
html[data-theme="dark"] .topbar .brand,
html[data-theme="light"] .topbar .brand {
  gap: 7px;
  min-width: 132px;
  min-height: 32px;
  color: #000000;
}

.topbar .brand-mark,
html[data-theme="dark"] .topbar .brand-mark,
html[data-theme="light"] .topbar .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 20px;
  flex: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff1717;
  box-shadow: none;
}

.topbar .brand-mark svg {
  display: block;
  width: 18px;
  height: 20px;
  fill: currentColor;
}

.topbar .brand-wordmark,
.topbar .brand > span.brand-wordmark:not(.brand-mark):not(.beta-badge),
html[data-theme="dark"] .topbar .brand-wordmark,
html[data-theme="dark"] .topbar .brand > span.brand-wordmark:not(.brand-mark):not(.beta-badge),
html[data-theme="light"] .topbar .brand-wordmark,
html[data-theme="light"] .topbar .brand > span.brand-wordmark:not(.brand-mark):not(.beta-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
}

.topbar .brand .beta-badge,
html[data-theme="dark"] .topbar .brand .beta-badge,
html[data-theme="light"] .topbar .brand .beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 14px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: #050505;
  color: #ffffff;
  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  body {
    padding-left: 0;
  }

  body::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 6px;
  }

  body::after {
    display: none;
  }

  .topbar,
  html[data-theme="dark"] .topbar,
  html[data-theme="light"] .topbar {
    width: auto;
    margin-left: 0;
  }
}
