html {
  box-sizing: border-box;
  background: #f7f8f5;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  background: #f7f8f5;
  margin: 0;
}

body.bas-page {
  color: #202124;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.bas-page--dark-tool {
  background: #000;
}

body.bas-page--dark-tool,
body.bas-page--dark-tool .bas-page__main,
body.bas-page--dark-tool :where(.container-info, .container-main) {
  background: #000;
  color: #fff;
}

.bas-site-nav {
  background: #202124;
  border-bottom: 4px solid #f2b84b;
  color: #fff;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.3;
  position: relative;
  z-index: 1000;
}

.bas-page__main {
  margin: 0 auto;
  max-width: 900px;
  padding: 28px 18px 56px;
}

.bas-page--narrow .bas-page__main {
  max-width: 760px;
}

.bas-page--wide .bas-page__main,
.bas-page--tool .bas-page__main {
  max-width: 1140px;
}

.bas-page--dark-tool .bas-page__main {
  margin: 0;
  max-width: none;
  padding: 0;
}

.bas-page :where(h1, h2, h3, h4) {
  color: #17202a;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  margin: 1.4em 0 0.5em;
}

.bas-page :where(h1) {
  font-size: 2rem;
  margin-top: 0;
}

.bas-page :where(h2) {
  border-bottom: 1px solid #d9dfd5;
  font-size: 1.5rem;
  padding-bottom: 0.2em;
}

.bas-page :where(h3) {
  font-size: 1.2rem;
}

.bas-page :where(p, ul, ol, dl, table, blockquote, pre) {
  margin-top: 0;
  margin-bottom: 1rem;
}

.bas-page :where(ul, ol) {
  padding-left: 1.45rem;
}

.bas-page :where(a) {
  color: #1b5f8f;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.bas-page :where(a:hover, a:focus) {
  color: #0f3f63;
}

.bas-page :where(img) {
  height: auto;
  max-width: 100%;
}

.bas-page :where(hr) {
  border: 0;
  border-top: 1px solid #d9dfd5;
  margin: 1.5rem 0;
}

.bas-page :where(code, pre) {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.bas-page__main > :first-child {
  margin-top: 0;
}

.bas-page--legacy .bas-page__main {
  background: #fff;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.08);
}

.bas-page--historic .bas-page__main {
  overflow-wrap: break-word;
}

.bas-page--historic :where(table) {
  max-width: 100%;
}

.bas-page--historic :where(iframe) {
  max-width: 100%;
}

.bas-page--pages,
.bas-page--pages :where(.wrapper, section) {
  background: #f7f8f5;
  color: #202124;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.bas-page--pages :where(.wrapper) {
  margin: 0 auto;
  max-width: 900px;
  padding: 0;
}

.bas-page--pages :where(.wrapper .wrapper) {
  max-width: none;
  padding: 0;
}

.bas-page--pages :where(section) {
  margin: 0;
  max-width: none;
  padding: 0;
}

.bas-page--pages :where(h1, h2, h3, h4, h5, h6) {
  color: #17202a;
  font-family: inherit;
  font-weight: 700;
}

.bas-page--pages :where(a) {
  color: #1b5f8f;
  text-shadow: none;
}

.bas-page--pages :where(a:hover, a:focus) {
  color: #0f3f63;
}

.bas-page--pages :where(ul) {
  list-style-image: none;
}

.bas-page--pages :where(blockquote) {
  border-left-color: #f2b84b;
}

.bas-page--pages :where(th, td) {
  border-bottom-color: #d9dfd5;
}

.bas-page--pages :where(code) {
  background: #eef2f4;
  color: #202124;
  text-shadow: none;
}

.bas-page--pages :where(pre) {
  background: #f0f3f5;
  border-color: #d9dfd5;
  box-shadow: none;
}

.bas-tool-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bas-tool-control input,
.bas-tool-control button {
  font: inherit;
}

.bas-tool-control input {
  border: 1px solid #bcc7d1;
  border-radius: 4px;
  padding: 6px 8px;
}

.bas-tool-control button {
  background: #1b5f8f;
  border: 1px solid #164d74;
  border-radius: 4px;
  color: #fff;
  padding: 6px 12px;
}

.bas-site-nav__inner {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 0 auto;
  max-width: 1140px;
  min-height: 52px;
  padding: 8px 16px;
}

.bas-site-nav__brand,
.bas-site-nav__links a {
  color: #fff;
  text-decoration: none;
}

.bas-site-nav__brand {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.bas-site-nav__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bas-site-nav__links a {
  border-bottom: 2px solid transparent;
  display: inline-block;
  font-size: 14px;
  padding: 7px 8px 5px;
}

.bas-site-nav__links a:hover,
.bas-site-nav__links a:focus {
  border-bottom-color: #f2b84b;
  color: #fff;
}

.bas-site-nav__links a[aria-current="page"] {
  border-bottom-color: #f2b84b;
  color: #f7d98c;
}

.bas-site-nav .bas-site-nav__brand,
.bas-site-nav .bas-site-nav__links a {
  color: #fff;
}

.bas-site-nav .bas-site-nav__links a[aria-current="page"] {
  color: #f7d98c;
}

@media (max-width: 640px) {
  body.bas-page {
    font-size: 15px;
    line-height: 1.55;
  }

  .bas-page__main {
    padding: 22px 18px 48px;
  }

  .bas-page :where(h1) {
    font-size: 26px;
  }

  .bas-page :where(h2) {
    font-size: 21px;
  }

  .bas-page :where(h3) {
    font-size: 17px;
  }

  .bas-page :where(p, ul, ol, dl, table, blockquote, pre) {
    margin-bottom: 0.85rem;
  }

  .bas-page :where(.jumbotron) {
    padding: 24px 18px;
  }

  body.bas-page .jumbotron img[src="/files/bas_logo.png"] {
    display: block;
    float: none;
    margin: 0 auto 14px;
    max-width: 160px;
  }

  body.bas-page .jumbotron .col-md-10 {
    clear: both;
  }

  body.bas-page .jumbotron p {
    font-size: 16px;
    line-height: 1.55;
  }

  .bas-site-nav__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding: 7px 14px 6px;
  }

  .bas-site-nav__brand {
    font-size: 15px;
    white-space: normal;
  }

  .bas-site-nav__links {
    gap: 2px;
  }

  .bas-site-nav__links a {
    font-size: 13px;
    padding: 5px 7px 4px;
  }
}
