/* Masthead search and display settings. */
#mw-site .mw-masthead-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

#mw-site .mw-header .mw-header-tools {
  display: block;
  flex: 0 1 30rem;
  min-width: 0;
  margin-inline-start: auto;
  padding: 0;
}

#mw-site .mw-masthead .mw-search {
  max-width: none;
  width: 100%;
}

#mw-site .mw-masthead .mw-search :is(input, button) {
  min-height: 44px;
}

#mw-site .mw-masthead .mw-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
}

#mw-site :is(.mw-search, .mw-gear-open) svg,
.mw-gear-dialog svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#mw-site .mw-gear-open,
.mw-gear-dialog .mw-gear-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #153f60;
  background: #eaf7fd;
  border: 1px solid #c8e1ee;
  border-radius: 8px;
}

#mw-site .mw-gear-open:hover,
.mw-gear-dialog .mw-gear-close:hover {
  background: #d9f3ff;
}

#mw-site .mw-quick-nav button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--mw-blue-deep);
  border: 1px solid var(--mw-cyan);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgb(21 63 96 / 24%);
  padding: 0;
}

#mw-site .mw-quick-nav button:hover {
  background: var(--mw-blue);
}

html:not([data-mw-gear-ready]) #mw-site :is([data-mw-gear-open], [data-mw-shortcut="cookies"]),
html[data-mw-hide-home] #mw-site [data-mw-shortcut="home"],
html[data-mw-hide-top] #mw-site [data-mw-shortcut="top"],
html[data-mw-hide-cookies] #mw-site [data-mw-shortcut="cookies"],
html[data-mw-hide-home][data-mw-hide-top][data-mw-hide-cookies] #mw-site .mw-quick-nav,
html[data-mw-hide-ai] #dabrain-wannsee-widget {
  display: none !important;
}

.mw-gear-dialog {
  width: min(25rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 4vw, 1.5rem);
  box-sizing: border-box;
  overflow: auto;
  color: #153f60;
  background: #fff;
  border: 1px solid #c8e1ee;
  border-top: 3px solid #6dcff6;
  border-radius: 14px;
  box-shadow: 0 16px 45px rgb(25 69 95 / 20%);
  font: 1rem/1.45 Arial, Helvetica, sans-serif;
}

.mw-gear-dialog::backdrop {
  background: rgb(14 38 55 / 50%);
}

.mw-gear-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.mw-gear-dialog h2 {
  color: inherit;
  font: bold 1.35rem/1.2 Arial, Helvetica, sans-serif;
  margin: 0;
}

.mw-gear-dialog button {
  cursor: pointer;
  font: inherit;
}

.mw-gear-dialog label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
}

.mw-gear-dialog input {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: #225f88;
}

.mw-gear-dialog label:has(:disabled) {
  color: #566873;
  cursor: default;
}

.mw-gear-dialog fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: .5rem;
  border: 1px solid #dce7ed;
  border-radius: 8px;
  margin: .65rem 0 1rem;
  padding: .2rem .65rem;
}

.mw-gear-dialog legend {
  color: #566873;
  font-size: .875rem;
  padding-inline: .25rem;
}

.mw-gear-dialog .mw-gear-cookies {
  width: 100%;
  min-height: 44px;
  padding: .5rem .7rem;
  color: #fff;
  background: #153f60;
  border: 1px solid #153f60;
  border-radius: 8px;
  font-weight: bold;
}

.mw-gear-dialog .mw-gear-cookies:hover {
  background: #225f88;
}

.mw-gear-dialog :focus-visible {
  outline: 3px solid #225f88;
  outline-offset: 3px;
}

@media (max-width: 979px) {
  #mw-site .mw-header .mw-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem .8rem;
  }

  #mw-site .mw-brand {
    grid-area: 1 / 1;
  }

  #mw-site .mw-masthead-actions {
    grid-area: 1 / 2;
  }

  #mw-site .mw-header .mw-header-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }

  #mw-site .mw-masthead .mw-menu-toggle {
    position: static;
    transform: none;
    min-height: 44px;
  }
}

@media (max-width: 699px) {
  #mw-site .mw-quick-nav button {
    width: 44px;
    height: 44px;
  }
}

@media print {
  .mw-gear-dialog {
    display: none;
  }
}
