/* Shared admin polish (theme-agnostic layout and typography) */

html {
  scrollbar-gutter: stable;
}

.main > .content {
  min-width: 0;
  box-sizing: border-box;
}

#branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#branding h1,
#branding h1 a:link,
#branding h1 a:visited {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

#branding #site-name a img,
#branding #site-name a img.logo {
  height: 24px;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}

h1 img.logo {
  vertical-align: middle;
  margin-right: 0.25rem;
}

h1 span.logo-text,
#site-name .logo-text {
  font-weight: 500;
}

#header {
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.module,
.inline-group {
  border-radius: 0.5rem;
  overflow: hidden;
}

.module h2,
.inline-group h2,
.module caption {
  border-radius: 0;
}

.module .clean h2 {
  all: unset;
}

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
  border-radius: 0.375rem;
}

#changelist-filter h2 {
  padding-top: 0;
  padding-bottom: 0;
}

pre {
  white-space: pre-wrap;
}

.select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary);
}

input[type="file"]::-webkit-file-upload-button:hover {
  border: 0;
  background: var(--button-hover-bg);
}

/* Branding helpers for consuming projects */
.admin-branding-inner {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.admin-branding-logo {
  height: 1.25em;
  display: block;
}
