.note-page {
  padding: 132px 0 72px;
  --note-text: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.note-wrap {
  max-width: 820px;
  min-width: 0;
}

.note-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

.note-back:hover {
  color: white;
}

.note-kicker {
  margin: 18px 0 8px;
  color: #94a3b8;
  font-size: 15px;
}

.note-page h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin: 12px 0 28px;
}

.note-index {
  width: 100%;
  margin: 0 0 36px;
  border-collapse: collapse;
  font-size: var(--note-text);
}

.note-index th,
.note-index td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: inherit;
  vertical-align: top;
}

.note-index th {
  color: #94a3b8;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.note-index tr.note-series th {
  padding-top: 22px;
  color: #7dd3fc;
  letter-spacing: .06em;
}

.note-index a,
.note-index .muted {
  font-size: inherit;
}

.note-index a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
}

.note-index a:hover {
  color: white;
}

.note-index a:hover .muted {
  color: #cbd5e1;
}

.note-index .note-num {
  color: #94a3b8;
  font-weight: 600;
  margin-right: 0.45em;
}

.note-index tr.current a {
  color: white;
}

.note-index tr.current .note-num {
  color: #7dd3fc;
}

.note-body h2 {
  margin: 36px 0 14px;
  font-size: 24px;
}

.note-body h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.note-body h4 {
  margin: 20px 0 8px;
  font-size: 16px;
  color: #f8fafc;
}

.note-body p,
.note-body li {
  color: #e2e8f0;
  font-size: var(--note-text);
  line-height: 1.75;
}

.note-body p {
  margin: 0 0 14px;
}

.note-body ul,
.note-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.note-body li {
  margin: 6px 0;
}

.note-body {
  min-width: 0;
  max-width: 100%;
}

.note-body pre {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 16px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  background: #061018;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.note-body pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.note-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.note-body table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
}

.note-body th,
.note-body td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.note-body th {
  color: #94a3b8;
  font-weight: 600;
}

.note-body blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid rgba(251, 191, 36, .2);
  background: rgba(251, 191, 36, .05);
  color: #cbd5e1;
}

.note-body blockquote p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .note-page {
    padding: 110px 0 56px;
    --note-text: 16px;
  }

  .note-wrap {
    overflow-x: hidden;
  }

  .note-index,
  .note-index th,
  .note-index td,
  .note-index a,
  .note-index .muted {
    font-size: var(--note-text);
  }

  .note-index th,
  .note-index td {
    padding: 10px 0;
  }

  .note-index th {
    letter-spacing: .04em;
  }

  .note-body p,
  .note-body li {
    font-size: var(--note-text);
  }

  .note-body pre {
    padding: 12px;
    font-size: 12px;
  }

  .note-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.note-table-scroll {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  background: #061018;
}

.note-table-scroll table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.note-table-scroll th,
.note-table-scroll td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
  white-space: nowrap;
  color: #ffffff;
}
