@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #1a1a1a;
  --muted: #6a6a6a;
  --link: #0349b7;
  --rule: #ddd;
}

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

html {
  background: oklch(0.985 0.01 250);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: oklch(0.985 0.01 250);
  max-width: 1009px;
  margin: 2.7em auto;
  padding: 0 0 4em 3.5em;
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: #b3c3dc;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.15s, text-decoration-color 0.15s;
}
a:visited { color: var(--link); }
a:hover {
  text-decoration-color: transparent;
  background-image: linear-gradient(90deg, #0197FF, #01F1FF);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.78em;
  font-weight: 400;
  color: #023789;
  margin: 0 0 1.5em;
  display: flex;
  align-items: center;
  gap: 0.22em;
  flex-wrap: wrap;
  letter-spacing: -0.005em;
}
h1 img { height: 40px; width: auto; display: block; margin-top: 6px; -webkit-user-select: none; user-select: none; }
h1 a, h1 a:hover, h1 a:visited { color: inherit; text-decoration: none; display: inline-flex; background-image: none; cursor: pointer; }

h2, h3, h4 { position: relative; width: fit-content; }
h2 { font-size: 1.4em; margin: 2em 0 0.8em; color: #022678; letter-spacing: 0.03em; }
h3 { font-size: 1.12em; font-weight: 600; margin: 2em 0 0.75em; }
h4 { font-size: 1em; font-weight: 600; margin: 1.5em 0 0.5em; }

.anchor {
  position: absolute;
  right: 100%;
  top: 0;
  padding-right: 0.25em;
  opacity: 0;
  text-decoration: none;
}
.anchor::before {
  content: '\200B';
}
.anchor:hover {
  background-image: none;
}
.anchor img {
  height: 0.72em;
  width: auto;
  vertical-align: baseline;
  filter: contrast(0) brightness(1.05);
}
.anchor:hover img {
  filter: none;
}
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor {
  opacity: 1;
}

main > h2:first-child,
main > p:first-child { margin-top: 0; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.65em; }
li > ul, li > ol { margin-top: 0.5em; }

em { font-style: italic; }
strong { font-weight: 700; color: #022678; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3em 0;
}

header {
  margin-bottom: 0;
}

.layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0;
  align-items: start;
}

main {
  max-width: 759px;
  background: #fff;
  padding: 2.5em 3.5em 1.5em 3.5em;
  position: relative;
}
main::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 100vw;
  background: #fff;
}

.sidenav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1em;
  position: sticky;
  top: 2em;
}
.sidenav li {
  display: block;
  margin-bottom: 0.7em;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: 8px;
  margin-left: -10px;
}
.sidenav li[aria-current="page"] {
  color: #022678;
  border-image: linear-gradient(180deg, #01F1FF, #0197FF) 1;
}
.sidenav li:hover:not([aria-current="page"]) {
  border-left: 1px solid #0197FF;
  padding-left: 9px;
}
.sidenav a, .sidenav a:hover { color: var(--link); text-decoration: none; background-image: none; }

footer {
  margin-top: 3em;
  padding-top: 2.55em;
  position: relative;
  font-size: 0.9em;
  color: var(--muted);
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(50vw + 504.5px - 3.5em);
  height: 1px;
  background: linear-gradient(90deg, #017bcf, #01c4cf);
}
footer p { margin: 0 0 0.4em; }
footer a { color: var(--muted); }
footer .ext {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5em;
}
footer .ext li { display: inline; }
footer .ext li + li {
  margin-left: 1.2em;
}

@media (max-width: 1008px) {
  body {
    max-width: none;
    margin: 2em 0;
    padding: 0 0 3em;
  }

  header {
    padding: 0 max(24px, calc(50vw - 320px));
  }

  h1 { margin-bottom: calc(1.2em * 1.5 / 1.78); }

  .layout { display: block; }

  .sidenav {
    padding: 0 max(24px, calc(50vw - 320px)) 2.5em;
  }
  .sidenav ul { position: static; font-size: 1em; }
  .sidenav li {
    display: inline;
    margin-bottom: 0;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  .sidenav li:hover:not([aria-current="page"]) {
    border-left: none;
    padding-left: 0;
  }
  .sidenav a:hover {
    text-decoration: none;
    background-image: linear-gradient(90deg, #0197FF, #0197FF);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 5px;
  }
  .sidenav li[aria-current="page"] {
    border-image: none;
    text-decoration: none;
    background-image: linear-gradient(90deg, #0197FF, #01F1FF);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 5px;
  }
  .sidenav li + li { margin-left: 1.2em; }
  .sidenav li + li::before { content: none; }

  main {
    max-width: none;
    position: static;
    background: #fff;
    padding: 2.5em max(24px, calc(50vw - 320px)) 1.5em;
  }
  main::after { display: none; }

  footer {
    margin-top: 3em;
    padding: 2.55em max(24px, calc(50vw - 320px)) 0;
    border-top: 1px solid;
    border-image: linear-gradient(90deg, #017bcf, #01c4cf) 1;
  }
  footer::before { display: none; }
}

@media (max-width: 688px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5em; margin-bottom: 1.2em; }
  h1 img { height: 32px; }
  h2 { font-size: 1.25em; margin-top: 2.5em; }
  h3 { font-size: 1.05em; margin-top: 1.75em; }
  .anchor { padding-right: 0.15em; }
}
