:root {
  color: #1d2925;
  background: #f2f0ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: #1d2925;
  background: #f2f0ea;
  line-height: 1.65;
}

a {
  border-radius: 3px;
  color: #1f654f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #164d3c;
  text-decoration-thickness: 2px;
}

a:focus-visible,
[type="text"]:focus-visible,
[type="email"]:focus-visible,
textarea:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #0b6b55;
  outline-offset: 4px;
}

[tabindex="-1"]:focus {
  outline: 3px solid #0b6b55;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: #fffdfa;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.document-header {
  border-bottom: 1px solid #d4d8d1;
  background: #fffdfa;
}

.document-header-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.site-navigation-links,
.document-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.site-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 30px;
}

.site-navigation-panel {
  display: flex;
  justify-content: flex-end;
}

.site-navigation-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b8c5be;
  border-radius: 10px;
  padding: 0 12px;
  color: #205e4d;
  background: #fffdfa;
  box-shadow: 0 1px 3px rgb(33 50 43 / 0.08);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.site-navigation-toggle:hover {
  border-color: #8fa49a;
  background: #edf3ef;
  color: #164d3c;
}

.site-navigation-toggle[aria-expanded="true"] {
  border-color: #256c58;
  background: #256c58;
  color: #fffdfa;
}

.site-navigation-toggle-icon {
  width: 1rem;
  font-size: 1.12rem;
  font-weight: 700;
  text-align: center;
}

.site-brand,
.source-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-brand {
  color: #1d2925;
  text-decoration: none;
}

.site-navigation-links {
  justify-content: flex-end;
  gap: 3px;
  border: 1px solid #cbd5ce;
  border-radius: 14px;
  padding: 4px;
  background: #e8ede9;
  box-shadow: 0 2px 7px rgb(33 50 43 / 0.07);
}

.site-navigation-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 13px;
  color: #256c58;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.site-navigation-links a:hover {
  border-color: #cbd5ce;
  background: #fffdfa;
  color: #164d3c;
  box-shadow: 0 1px 3px rgb(33 50 43 / 0.09);
}

.site-navigation-links a[aria-current="page"] {
  border-color: #256c58;
  background: #256c58;
  color: #fffdfa;
  box-shadow: 0 1px 3px rgb(24 62 51 / 0.2);
}

.site-navigation-links a[aria-current="page"]:hover {
  background: #1f5d4b;
  color: #fffdfa;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.45rem);
  letter-spacing: -0.04em;
}

.document-summary {
  display: grid;
  max-width: 800px;
  gap: 4px;
  margin-top: 20px;
  color: #465850;
  font-size: 0.9rem;
}

.document-summary p {
  margin: 0;
}

.source-link {
  margin-top: 14px;
  font-size: 0.82rem;
}

.document-layout {
  display: grid;
  width: min(1080px, calc(100% - 40px));
  grid-template-columns: minmax(190px, 250px) minmax(0, 760px);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  margin: 30px auto 60px;
}

.document-layout--single {
  display: block;
  max-width: 850px;
}

.document-contents,
.document-content {
  border: 1px solid #d4d8d1;
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 10px 28px rgb(33 50 43 / 0.055);
}

.document-contents {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  padding: 20px;
  overflow: auto;
}

.document-contents h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.document-contents ol,
.document-contents ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.document-contents ul {
  padding-left: 0;
  list-style: none;
}

.document-contents .contents-subsection {
  margin-left: 12px;
  font-size: 0.76rem;
}

.document-content {
  min-width: 0;
  padding: clamp(24px, 5vw, 52px);
}

.document-content > :first-child {
  margin-top: 0;
}

.document-content h2,
.document-content h3,
.document-content h4 {
  scroll-margin-top: 20px;
}

.document-content h2 {
  margin: 2.7em 0 0.75em;
  padding-top: 0.35em;
  border-top: 1px solid #d9ded9;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.document-content h3 {
  margin: 2.1em 0 0.65em;
  font-size: 1.16rem;
}

.document-content p,
.document-content li {
  max-width: 70ch;
}

.document-content p {
  margin: 0 0 1.1em;
}

.document-content ul,
.document-content ol {
  display: grid;
  gap: 0.45em;
  margin: 0 0 1.3em;
  padding-left: 1.5em;
}

.document-content blockquote {
  margin: 1.5em 0;
  border-left: 4px solid #6d967f;
  padding: 0.2em 0 0.2em 1.1em;
  color: #465850;
}

.feedback-form {
  display: grid;
  max-width: 640px;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: #29483e;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aebbb3;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #1d2925;
  font: inherit;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field small,
.form-privacy,
.form-status {
  color: #52645c;
  font-size: 0.84rem;
}

.form-privacy,
.form-status {
  margin: 0;
}

.form-submit {
  width: fit-content;
  min-height: 46px;
  border: 1px solid #1f654f;
  border-radius: 999px;
  background: #1f654f;
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.form-submit:hover {
  background: #164d3c;
}

.form-submit:disabled {
  border-color: #708078;
  background: #708078;
  cursor: wait;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

code {
  border-radius: 4px;
  background: #eef2ed;
  padding: 0.12em 0.32em;
  color: #29483e;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.code-scroll,
.table-scroll {
  max-width: 100%;
  margin: 1.35em 0 1.7em;
  border: 1px solid #ced7d1;
  border-radius: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.code-scroll pre {
  min-width: max-content;
  margin: 0;
  padding: 16px;
  background: #f4f7f3;
  line-height: 1.5;
}

.code-scroll code {
  background: transparent;
  padding: 0;
  overflow-wrap: normal;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.4;
}

th,
td {
  border-bottom: 1px solid #d9ded9;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf3ef;
  color: #29483e;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.document-footer {
  width: min(1080px, calc(100% - 40px));
  justify-content: center;
  margin: 0 auto;
  border-top: 1px solid #cdd4cf;
  padding: 22px 0 36px;
  color: #52645c;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .site-navigation {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }

  .js .site-navigation-toggle {
    display: inline-flex;
  }

  .site-navigation-panel {
    display: block;
    grid-column: 1 / -1;
  }

  .js .site-navigation-panel {
    display: none;
  }

  .js .site-navigation-panel.is-open {
    display: block;
  }

  .site-navigation-links {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    border-radius: 12px;
    padding: 5px;
  }

  .site-navigation-links a {
    justify-content: flex-start;
    border-radius: 8px;
    padding: 0 12px;
    text-align: left;
  }

  .document-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .document-contents {
    position: static;
    max-height: none;
  }

  .document-contents ol,
  .document-contents ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (max-width: 520px) {
  .document-header-inner,
  .document-layout,
  .document-footer {
    width: min(100% - 24px, 1080px);
  }

  .document-header-inner {
    padding-top: 12px;
  }

  .site-navigation {
    margin-bottom: 20px;
  }

  .document-content,
  .document-contents {
    border-radius: 12px;
    padding: 18px;
  }

  .document-contents ol,
  .document-contents ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-contents .contents-subsection {
    margin-left: 0;
  }

  table {
    min-width: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root,
  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .skip-link,
  .site-navigation,
  .document-contents,
  .document-footer {
    display: none;
  }

  .document-header {
    border: 0;
  }

  .document-header-inner,
  .document-layout {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .document-layout {
    display: block;
  }

  .document-content {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .table-scroll,
  .code-scroll {
    overflow: visible;
    break-inside: avoid;
  }

  .code-scroll pre {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  table {
    min-width: 0;
  }

  a {
    color: #000;
  }
}
