@font-face {
  font-family: 'GT Zirkon';
  src: url('/branding/fonts/GT-Zirkon-Regular.woff2') format('woff2');
  font-weight: 100 400;
  font-display: swap;
}

@font-face {
  font-family: 'GT Zirkon';
  src: url('/branding/fonts/GT-Zirkon-Medium.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}

@font-face {
  font-family: 'Maax';
  src: url('/branding/fonts/Maax.woff2') format('woff2');
  font-weight: 100 400;
  font-display: swap;
}

@font-face {
  font-family: 'Maax';
  src: url('/branding/fonts/Maax-Medium.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}

:is(h1, h2, h3, h4, h5, h6).adminjs_Header {
  font-family: 'Maax', sans-serif;
  font-feature-settings: 'ss01';
}

/* Pinned to the AdminJS 7.8 Login markup; recheck on upgrade. */
.login__Wrapper > .adminjs_Box > .adminjs_Box:first-child {
  background: #ffcf69;
  color: #2b2b2b;
}

.login__Wrapper > .adminjs_Box > .adminjs_Box:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/branding/pattern.webp');
  opacity: 0.15;
}

.login__Wrapper > .adminjs_Box > .adminjs_Box:first-child > * {
  position: relative;
}

.login__Wrapper > .adminjs_Box > .adminjs_Box:first-child > .adminjs_Box {
  display: none;
}

.login__Wrapper h5 img {
  height: 64px;
}

.login__Wrapper form button {
  width: 100%;
}

td .adminjs_Badge {
  background: #f0f0f0;
  border-color: #e5e5e5;
  color: #2b2b2b;
}

/* Doubled class to outrank the design system's 3% tint, which is invisible on white. */
tr.selected.selected {
  background: #fff8ea;
}

.mg-shortcut:is(:hover, :focus-visible) {
  box-shadow:
    inset 0 4px 0 #ffcf69,
    0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

[data-css='sidebar-logo'] img {
  height: 56px;
}

/* Hidden as a page action only; the relation tab's remove button still needs the action visible. */
:is(a, button)[data-testid='action-deleteRelation'] {
  display: none;
}

/* AdminJS reserves an empty error line under every field; it only needs space when it has text. */
[data-css$='-drawer-content'] .adminjs_Text:empty {
  display: none;
}

section.urls > .adminjs_Box {
  padding: 4px 0;
  margin-bottom: 0;
  align-items: center;
}

section.urls > .adminjs_Box > button {
  margin-top: 0;
}

section.urls > .adminjs_Box label {
  display: none;
}

[data-css$='-description'] .ProseMirror {
  min-height: 22rem;
}

[data-css$='-description'] .adminjs_MenuBarWrapper {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
