:root {
  color-scheme: light;
  --ink: #15181b;
  --navy: #11165e;
  --link: #131eae;
  --surface: #fff;
  --background: #ebedec;
  --rule: #53658d;
  --section: #bce8f4;
  --subsection: #c7dce7;
  --nav: #dedbd2;
  --nav-hover: #d0d8c6;
  --nav-border: #aaa79e;
  --highlight: #b5f7b5;
  --warm-highlight: #efe8cf;
  --log-surface: #edf2f6;
  --log-border: #aab9c6;
  --green: #206447;
  --green-dark: #184f37;
  --mirror: #f5faf6;
  --mirror-hover: #e6f2e9;
  --mirror-border: #adc9b7;
  --mirror-ink: var(--green-dark);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2f7;
  --navy: #293780;
  --link: #a4c5ff;
  --surface: #191e27;
  --background: #12161e;
  --rule: #627998;
  --section: #213c53;
  --subsection: #29384a;
  --nav: #2c3644;
  --nav-hover: #3a4b60;
  --nav-border: #56667b;
  --highlight: #213e32;
  --warm-highlight: #453c2c;
  --log-surface: #222b37;
  --log-border: #53667c;
  --mirror: #20382e;
  --mirror-hover: #294b3b;
  --mirror-border: #517963;
  --mirror-ink: #bce9ce;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: .875rem/1.5 Verdana, Arial, sans-serif;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: .5rem;
}

.shell {
  margin-inline: .35rem;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: var(--surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: .75rem;
  min-height: 9.5rem;
  padding: .35rem .8rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.brand {
  justify-self: start;
  line-height: 0;
}

.brand img {
  display: block;
  width: min(100%, 227px);
  height: auto;
}

:root[data-theme="dark"] .brand img {
  background: #fff;
}

.brand-copy {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.brand-copy p {
  margin: .65rem 0;
  font-size: 1.125rem;
}

.brand-copy .brand-name {
  font-size: 1.55rem;
  font-weight: 700;
}

.theme-toggle {
  min-height: 2rem;
  padding: .32rem .8rem;
  border: 1px solid #0066b6;
  border-radius: .15rem;
  background: #006fc7;
  color: #fff;
  cursor: pointer;
  font: .875rem/1.25 Arial, Helvetica, sans-serif;
}

.theme-toggle:hover {
  background: #005fae;
}

.theme-toggle[aria-pressed="true"] {
  border-color: #83bafa;
  background: #1c416a;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .18rem;
  padding: .3rem 0 .3rem clamp(0rem, 3.2vw, 2.2rem);
}

.nav-links a {
  display: block;
  padding: .3rem .75rem;
  border: 1px solid var(--nav-border);
  background: var(--nav);
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--nav-hover);
}

.main-shell {
  padding-inline: .85rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .35rem;
  padding: .22rem .35rem;
  border-bottom: 1px solid var(--rule);
  background: var(--subsection);
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: .4em 0 .7em;
  padding: .08em .4em;
  border-radius: .45rem;
  background: var(--navy);
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  text-align: center;
}

.GeneralBackgroundHighlight,
.GeneralBackgroundHighlightWithBorder {
  background: var(--highlight);
}

.GeneralBackgroundHighlightWithBorder {
  padding: .45rem;
  border: 1px solid var(--green);
}

.GeneralBackgroundHighlightLight {
  background: var(--warm-highlight);
}

.main-shell em {
  font-style: normal;
  text-decoration: underline;
}

.main-shell ul,
.main-shell ol {
  padding-inline-start: clamp(1.4rem, 3vw, 2.45rem);
}

.main-shell li {
  margin-bottom: .45rem;
}

.main-shell li > ul,
.main-shell li > ol {
  margin-block: 0;
}

.main-shell hr {
  margin: .75rem 0 0;
  border: 0;
  border-top: 1px solid #656a6d;
}

.documentation {
  padding: 0 .45rem .35rem;
}

.documentation > section {
  margin-top: 3rem;
}

.documentation .h3 {
  margin: 1.75rem 0 0 clamp(.25rem, 2vw, 1.5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .15rem 1rem;
  padding: .15rem .55rem;
  border-bottom: 1px solid var(--rule);
  background: var(--section);
}

.h3 .section-heading {
  background: var(--subsection);
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.section-heading h2 {
  padding-inline-start: 4.75rem;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  text-align: center;
}

.section-heading h3 {
  font-size: 1.17rem;
}

.member-link {
  white-space: nowrap;
}

.download-actions {
  display: grid;
  justify-items: center;
  gap: .65rem;
  margin: 1.25rem 0 1.5rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: min(100%, 25rem);
  min-height: 3.15rem;
  padding: .55rem .85rem;
  border: 1px solid var(--green-dark);
  border-radius: .55rem;
  background: var(--green);
  color: #fff;
  font: 700 1rem/1.3 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}

.download-button::before {
  content: "";
  flex: 0 0 1.15rem;
  height: 1.15rem;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.download-button[href]:hover {
  background: var(--green-dark);
}

.download-mirror {
  min-height: 2.65rem;
  border-color: var(--mirror-border);
  background: var(--mirror);
  color: var(--mirror-ink);
  font-size: .875rem;
}

.download-mirror[href]:hover {
  background: var(--mirror-hover);
}

.documentation figure {
  margin: 1rem 0;
}

.screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.MessageLog {
  padding: .65rem .8rem;
  border: 1px solid var(--log-border);
  background: var(--log-surface);
  font: .875rem/1.5 ui-monospace, Consolas, monospace;
}

.site-footer {
  margin: .45rem .35rem 0;
  border-top: 1px solid var(--rule);
}

.footer-row,
.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}

.footer-row {
  justify-content: space-between;
  align-items: baseline;
  padding: .6rem .7rem;
  font-size: .8rem;
}

@media (max-width: 40rem) {
  .brand-row {
    grid-template-columns: minmax(4.4rem, 25%) 1fr;
    min-height: 5.5rem;
    padding: .4rem .55rem;
  }

  .brand-copy p {
    margin: .3rem 0;
    font-size: .9rem;
  }

  .brand-copy .brand-name {
    font-size: 1.2rem;
  }

  .nav-links a {
    padding-inline: .45rem;
  }

  .main-shell {
    padding-inline: .55rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    padding-inline-start: 0;
  }

  .member-link {
    justify-self: end;
    font-size: .75rem;
  }
}
