.header-box a.external {
  background-image: none;
}

.header-box p {
  font-size: inherit;
  margin: 0.25em 0;
}

.header-box {
  background: #f7f9fc;
  border: 1px solid #d7dde6;
  border-left: 4px solid #004080;
  padding: 0.9em 1.1em;
  color: #111;
  text-align: center;
  border-radius: 10px;
}

.crw-button {
  background: #004080;
  color: #fff;
  padding: 0.5em 0.95em;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap;
}

.crw-button:hover,
.crw-button:focus {
  background: #0b5aa5;
  outline: none;
}

.crw-button.secondary {
  background: #eef2f7;
  color: #111;
  border: 1px solid #d7dde6;
}

.crw-button.secondary:hover,
.crw-button.secondary:focus {
  background: #e6edf6;
  outline: none;
}

.content-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1em;
  overflow: hidden;
  min-width: 0;
}

.content-header {
  font-size: 1.4em;
  font-weight: 800;
  color: #0f2e4d;
  border-bottom: 2px solid rgba(0, 64, 128, 0.22);
  padding-bottom: 0.3em;
  margin: 0 0 0.65em 0 !important;
}

.content-section {
  background: #ffffff;
  border: 1px solid #d7dde6;
  padding: 1.1em 1.25em;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  color: #111;
  border-radius: 12px;
}

.content-section.wide {
  grid-column: auto;
}

.content-section > div:first-child {
  font-size: 1.4em;
  font-weight: 800;
  color: #0f2e4d;
  border-bottom: 2px solid rgba(0, 64, 128, 0.22);
  padding-bottom: 0.3em;
  margin-top: 0.15em;
}

.content-section a {
  color: #004080;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 64, 128, 0.35);
}

.content-section a:hover,
.content-section a:focus {
  border-bottom-color: #004080;
}

.content-section ul,
.content-section ol {
  margin: 0.5em 0 0.2em 1.2em;
}

.content-section li {
  margin: 0.25em 0;
}

.content-section .mw-parser-output > p:first-child {
  margin-top: 0;
}

.content-section .mw-parser-output > p:last-child {
  margin-bottom: 0;
}

@media screen {
  html.skin-theme-clientpref-night .header-box {
    background: #121c32;
    border-color: #273244;
    border-left-color: #004080;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-night .content-section {
    background: #121c32;
    border-color: #273244;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-night .crw-button {
    background: #004080;
    color: #fff;
  }

  html.skin-theme-clientpref-night .crw-button:hover,
  html.skin-theme-clientpref-night .crw-button:focus {
    background: #0b5aa5;
    outline: none;
  }

  html.skin-theme-clientpref-night .crw-button.secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(229, 231, 235, 0.22);
  }

  html.skin-theme-clientpref-night .crw-button.secondary:hover,
  html.skin-theme-clientpref-night .crw-button.secondary:focus {
    background: rgba(229, 231, 235, 0.08);
    outline: none;
  }

  html.skin-theme-clientpref-night .content-section > div:first-child {
    color: #eaf2ff;
    border-color: rgba(0, 64, 128, 0.35);
  }

  html.skin-theme-clientpref-night .content-header {
    color: #eaf2ff;
    border-bottom-color: rgba(0, 64, 128, 0.35);
  }

  html.skin-theme-clientpref-night .content-section a {
    color: #eaf2ff;
    border-bottom-color: rgba(234, 242, 255, 0.35);
  }

  html.skin-theme-clientpref-night .content-section a:hover,
  html.skin-theme-clientpref-night .content-section a:focus {
    border-bottom-color: rgba(234, 242, 255, 0.65);
  }

  html.skin-theme-clientpref-os .content-header {
    color: #eaf2ff;
    border-bottom-color: rgba(0, 64, 128, 0.35);
  }
}

@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .header-box {
    background: #121c32;
    border-color: #273244;
    border-left-color: #004080;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-os .content-section {
    background: #121c32;
    border-color: #273244;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-os .crw-button {
    background: #004080;
    color: #fff;
  }

  html.skin-theme-clientpref-os .crw-button:hover,
  html.skin-theme-clientpref-os .crw-button:focus {
    background: #0b5aa5;
    outline: none;
  }

  html.skin-theme-clientpref-os .crw-button.secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(229, 231, 235, 0.22);
  }

  html.skin-theme-clientpref-os .crw-button.secondary:hover,
  html.skin-theme-clientpref-os .crw-button.secondary:focus {
    background: rgba(229, 231, 235, 0.08);
    outline: none;
  }

  html.skin-theme-clientpref-os .content-section > div:first-child {
    color: #eaf2ff;
    border-color: rgba(0, 64, 128, 0.35);
  }

  html.skin-theme-clientpref-os .content-header {
    color: #eaf2ff;
    border-bottom-color: rgba(0, 64, 128, 0.35);
  }

  html.skin-theme-clientpref-os .content-section a {
    color: #eaf2ff;
    border-bottom-color: rgba(234, 242, 255, 0.35);
  }

  html.skin-theme-clientpref-os .content-section a:hover,
  html.skin-theme-clientpref-os .content-section a:focus {
    border-bottom-color: rgba(234, 242, 255, 0.65);
  }
}

.cat-but-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
  gap: 0.6em;
}

.cat-but {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.7em 0.95em;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d6dbe3;
  color: #004080;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.15;
}

.cat-but-icon {
  font-size: 1.05em;
  line-height: 1;
}

.cat-but-label {
  line-height: 1.1;
}

.cat-but:hover {
  background: #f3f6fb;
  border-color: #004080;
}

html.skin-theme-clientpref-night .cat-but,
html.skin-theme-clientpref-os .cat-but {
  background: #0f1a2b;
  border-color: #24314a;
  color: #ffffff;
}

html.skin-theme-clientpref-night .cat-but:hover,
html.skin-theme-clientpref-os .cat-but:hover {
  background: #16223a;
  border-color: #3a5a9a;
}