:root {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #182d34;
  background: #fff;
  font-size: 17px;
  line-height: 1.65;
  --accent: #006d65;
  --muted: #526770;
  --line: #dce5e7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a: hover {
  text-decoration: underline;
}

a: focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #008d82;
  outline-offset: 4px;
}

header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 750;
  font-size: 1.55rem;
  text-decoration: none;
  color: #182d34;
  white-space: nowrap;
}

.brand span {
  font-size: .9rem;
  font-weight: 450;
  color: var(--muted);
  margin-left: .6rem;
}

form {
  display: flex;
  flex: 1;
  max-width: 34rem;
  margin: auto;
  gap: .4rem;
}

input,button {
  font: inherit;
  border-radius: 6px;
  padding: .55rem .8rem;
}

input {
  min-width: 0;
  width: 100%;
  background: #f6f9f9;
  border: 1px solid var(--line);
}

button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  cursor: pointer;
}

.language {
  display: flex;
  gap: .55rem;
  white-space: nowrap;
  font-size: .85rem;
}

.language a {
  text-decoration: none;
}

.language [aria-current] {
  font-weight: 750;
  color: #182d34;
}

.language span {
  color: #abb9bd;
}

.layout {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 270px minmax(0,1fr);
  gap: 4rem;
  padding: 2.75rem 3rem 5rem;
}

aside {
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
}

.desktop-topics {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow: auto;
}

aside a {
  display: block;
  padding: .55rem .6rem;
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 5px;
}

aside a:hover,aside [aria-current] {
  background: #edf6f4;
  color: var(--accent);
}

aside .all {
  font-weight: 650;
  margin-bottom: .6rem;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .75rem;
}

main {
  max-width: 850px;
  min-width: 0;
}

h1,h2,h3,h4 {
  line-height: 1.25;
  letter-spacing: -.025em;
  color: #182d34;
}

h1 {
  font-size: clamp(1.8rem,3vw,2.65rem);
  margin: .5rem 0 1.5rem;
}

h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.topic {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  scroll-margin-top: 1rem;
}

.topic h2 {
  margin: 0 0 .85rem;
}

.topic ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic li {
  margin: .55rem 0;
}

.topic a {
  text-decoration: none;
}

.back {
  display: inline-block;
  font-size: .85rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.article-body {
  overflow-wrap: anywhere;
}

.article-body table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow: auto;
  margin: 1.5rem 0;
}

.article-body td,.article-body th {
  border: 1px solid var(--line);
  padding: .65rem;
  vertical-align: top;
}

.article-body th {
  background: #f3f7f7;
}

.article-body pre {
  overflow: auto;
  padding: 1rem;
  background: #f3f7f7;
  border-radius: 6px;
}

.article-body code {
  font-size: .9em;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: .25rem 1.25rem;
  color: var(--muted);
}

.article-body [id] {
  scroll-margin-top: 1rem;
}

.results {
  list-style: none;
  padding: 0;
}

.results li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.results a,.results span {
  display: block;
}

.results a {
  font-size: 1.15rem;
  text-decoration: none;
}

.sr-only,.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip:focus {
  display: block;
  padding: .5rem;
}

.mobile-topics {
  display: none;
}

@media(max-width:850px) {
  header {
    padding: 1rem 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 1.35rem;
  }
  .brand span {
    display: none;
  }
  .language {
    margin-left: auto;
  }
  form {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .layout {
    display: block;
    padding: 1.25rem;
  }
  aside {
    padding: 0;
    border: 0;
    margin-bottom: 2rem;
  }
  .desktop-topics {
    display: none;
  }
  .mobile-topics {
    display: block;
    border-bottom: 1px solid var(--line);
    padding-bottom: .75rem;
  }
  .mobile-topics summary {
    cursor: pointer;
    font-weight: 650;
  }
  main {
    max-width: none;
  }
  .back {
    margin-bottom: 1.5rem;
  }
}

.not-found {
  max-width: 44rem;
  margin: clamp(2rem,8vh,6rem) auto;
  padding: 0 1.25rem;
}

.error-code {
  color: var(--accent);
  font-size: clamp(4rem,12vw,7rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.06em;
  margin: 0 0 1.5rem;
}

.error-home {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-weight: 650;
}

.not-found form {
  margin: 0;
}
