@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("baloo2-extrabold.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f3f8f4;
  --card: #ffffff;
  --ink: #14231c;
  --muted: #40554a;
  --line: #dde7e1;
  --brand: #007a43;
  --tonal: #e7f7ed;
  --on-tonal: #102b1e;
  --hd-top: #00381f;
  --hd-bot: #1f8557;
  --on-hd: #ffffff;
  --on-hd-muted: #def9e9;
  --mint: #a5e8c1;
  --hd-chip: rgba(255, 255, 255, 0.14);
  --font: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Baloo 2", Roboto, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1712;
    --card: #141f19;
    --ink: #e0e9e3;
    --muted: #b5c4ba;
    --line: #34433a;
    --brand: #6fd69b;
    --tonal: #32493c;
    --on-tonal: #cce8d7;
    --hd-top: #052e1c;
    --hd-bot: #0b4a2c;
    --on-hd-muted: #cdeedb;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.625;
  overflow-wrap: break-word;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  border-radius: 12px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 5;
  background: var(--card);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
}

.hd {
  background: linear-gradient(180deg, var(--hd-top) 0%, var(--hd-bot) 100%);
  color: var(--on-hd);
  padding: 20px 16px 96px;
}

.hd--doc {
  padding-bottom: 88px;
}

.hd a,
.hd a:hover {
  color: var(--on-hd);
}

.hd a:hover {
  color: var(--mint);
}

.hd-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hd--doc .hd-inner {
  max-width: 1080px;
  gap: 40px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand svg {
  width: 44px;
  height: 40px;
}

.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 32px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--hd-chip);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hd a.chip-link[aria-current="page"] {
  background: #ffffff;
  color: #00381f;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hd-chip);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.hero > svg {
  flex: none;
  width: 152px;
  height: 140px;
}

.hero-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 60px;
}

.hd--doc .hero-title {
  font-size: 52px;
  line-height: 56px;
}

.lede {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--on-hd-muted);
  max-width: 46ch;
}

.hd--doc .lede {
  max-width: 60ch;
}

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-head .chip-row {
  margin-top: 8px;
}

main {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 48px;
}

main:focus {
  outline: none;
}

.home-main {
  max-width: 880px;
  margin-top: -56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  margin: 0;
  padding: 0 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--muted);
}

.label--first {
  color: var(--on-hd-muted);
}

.label--gap {
  margin-top: 16px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.list li + li {
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
}

.row:hover {
  background: var(--tonal);
  color: var(--ink);
}

.row-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tonal);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.row-sub {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.row-chev {
  flex: none;
  color: var(--muted);
}

.note {
  margin: 16px 4px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.doc-main {
  max-width: 1080px;
  margin-top: -48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.toc {
  flex: 1 1 240px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
}

.toc summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary svg {
  transition: transform 0.15s ease;
}

.toc details[open] summary svg {
  transform: rotate(180deg);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

.toc li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

.toc li a:hover {
  background: var(--tonal);
}

.toc--wide {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.toc--compact {
  display: none;
}

.doc {
  flex: 999 1 560px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 40px 40px;
}

.doc h2 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  margin: 48px 0 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  scroll-margin-top: 16px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h2 .n {
  flex: none;
  min-width: 32px;
  height: 26px;
  border-radius: 8px;
  background: var(--tonal);
  color: var(--on-tonal);
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  font-weight: 600;
}

.doc h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  margin: 24px 0 8px;
  scroll-margin-top: 16px;
}

.doc h4 {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  margin: 20px 0 6px;
}

.doc p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 26px;
  max-width: 70ch;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
  max-width: 70ch;
}

.doc li {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 26px;
}

.doc strong {
  font-weight: 600;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  margin: 8px 0 20px;
  background: var(--card);
}

.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 440px;
  font-size: 15px;
  line-height: 22px;
}

.table-wrap th {
  text-align: left;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.table-wrap td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap tbody tr:first-child td {
  border-top: 0;
}

.table-wrap td:first-child {
  font-weight: 600;
  width: 34%;
}

.align-right {
  text-align: right;
}

.align-center {
  text-align: center;
}

.doc .glance {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: none;
}

.doc .glance li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.doc .glance li:first-child {
  border-top: 0;
}

.tick {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--tonal);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1px;
}

.cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #00381f;
  font-weight: 600;
  text-decoration: none;
}

.hd a.cta,
.hd a.cta:hover {
  color: #00381f;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 40px;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 900px) {
  .toc--wide {
    display: none;
  }

  .toc--compact {
    display: block;
  }
}

@media (max-width: 640px) {
  .doc {
    padding: 24px 16px 32px;
  }

  .doc h2 {
    margin-top: 40px;
  }

  .hero-title,
  .hd--doc .hero-title {
    font-size: 40px;
    line-height: 44px;
  }

  .hero > svg {
    width: 112px;
    height: 103px;
  }
}

@media print {
  .hd {
    background: none;
    color: #000;
    padding-bottom: 16px;
  }

  .hd a,
  .chip-link,
  .chip {
    color: #000;
    background: none;
  }

  .toc,
  .site-footer {
    display: none;
  }

  .doc-main,
  .home-main {
    margin-top: 0;
  }
}
