.notes-page {
  padding: 20px;
}

.notes-back {
  margin-bottom: 24px;
}

.notes-page h1 {
  text-align: left;
}

.notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.notes-list li {
  display: grid;
  grid-template-columns: 10ch minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.notes-list time {
  color: #595959;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.note-article {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.note-article h2 {
  margin: 28px 0 10px;
}

.note-article h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.note-article p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.note-article ul,
.note-article ol {
  padding-inline-start: 24px;
}

.note-article .post-meta,
.note-article .table-note,
.note-article figcaption {
  color: #595959;
  font-size: 14px;
}

.note-article figure {
  margin: 24px 0;
}

.note-article figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.note-article figcaption {
  margin-top: 8px;
}

.table-wrap,
.note-article mjx-container[display="true"] {
  overflow-x: auto;
}

.table-wrap {
  margin: 16px 0;
}

.table-wrap:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 4px;
}

.note-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.note-article caption {
  margin-bottom: 8px;
  font-weight: 600;
  text-align: left;
}

.note-article th,
.note-article td {
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
  overflow-wrap: normal;
}

.note-article .best {
  background: #e2f0d9;
}

@media (max-width: 560px) {
  .notes-page {
    padding: 16px;
  }
}
