html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: rgb(51, 51, 51);
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-weight: 400;
  font-size: 16px;
}

body {
  margin: 0;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: rgb(51, 137, 235);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

h1 {
  font-weight: 700;
}

h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}

.wrap {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 16px;
}

.nav {
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: bold;
}

.nav a {
  color: rgb(51, 51, 51);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  color: rgb(102, 102, 102);
}

.nav ul {
  display: flex;
  justify-content: flex-end;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.nav ul li {
  margin-left: 10px;
  margin-right: 0;
}

.single-date {
  color: rgb(128, 128, 128);
}

.list-title {
  margin-bottom: 0;
}

.list-title a {
  color: rgb(51, 51, 51);
  text-decoration: none;
}

.list-title a:hover {
  color: rgb(102, 102, 102);
}

.list-date {
  margin: 0;
  color: rgb(128, 128, 128);
}

.article {
  line-height: 1.6;
}

.content-with-toc {
  position: relative;
}

.toc {
  display: none;
}

.toc-inner {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  color: rgb(128, 128, 128);
  font-size: 14px;
  line-height: 1.35;
}

.toc-title {
  margin-bottom: 0.6rem;
  color: rgb(51, 51, 51);
  font-weight: 600;
}

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

.toc nav ul ul {
  margin-top: 0.15rem;
  padding-left: 0.85rem;
}

.toc nav li {
  margin: 0.15rem 0;
}

.toc nav a {
  display: block;
  padding: 0.18rem 0 0.18rem 0.65rem;
  border-left: 2px solid transparent;
  color: inherit;
  text-decoration: none;
}

.toc nav a:hover {
  color: rgb(51, 51, 51);
  text-decoration: none;
}

.toc nav a.is-active {
  border-left-color: rgb(51, 137, 235);
  color: rgb(51, 51, 51);
  font-weight: 600;
}

@media (min-width: 1250px) {
  .toc {
    position: absolute;
    top: 0;
    left: calc(100% + 48px);
    display: block;
    width: 220px;
    height: 100%;
  }

  .toc-inner {
    position: sticky;
    top: 24px;
  }
}

.article blockquote {
  margin: 0;
  padding: 0 1em;
  color: #777;
  border-left: 0.25em solid #ddd;
}

.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.article :not(pre)>code {
  padding: 0.1em 0.25em;
  background: #eff1f5;
  border: 1px solid rgb(230, 230, 230);
  border-radius: 4px;
}

.article pre {
  overflow-x: auto;
  margin: 1.3rem 0;
  padding: 0.9rem 1rem;
  background: #eff1f5;
  border-radius: 6px;
}

.article pre code {
  font-size: 13px;
}

.article .highlight {
  margin: 0;
}

.article .highlight pre {
  margin: 0;
}

.article .code-block {
  margin: 1.3rem 0;
  overflow: hidden;
  border-radius: 6px;
  background: #eff1f5;
}

.article .code-block-filename {
  padding: 0.45rem 0.9rem;
  color: rgb(51, 51, 51);
  background: rgba(0, 128, 255, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.2;
}

.article .code-block pre {
  border-radius: 0;
}

.article figure {
  max-width: var(--figure-width, 100%);
  margin: 2rem 0;
  margin-inline: auto;
}

.article img {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.article figure img {
  margin-block: 0;
}

.article figure .zoomable-image {
  cursor: zoom-in;
}

.article figure .zoomable-image:focus {
  outline: 2px solid rgb(51, 137, 235);
  outline-offset: 3px;
}

.article figcaption {
  margin: 0.55rem auto 0;
  color: rgb(100, 100, 100);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.article table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article th,
.article td {
  border: 1px solid rgb(220, 220, 220);
  padding: 0.35em 0.6em;
  font-size: 13px;
}

.article th {
  font-weight: 500;
  background: rgb(245, 245, 245);
}

.article h2 {
  border-bottom: 1px solid rgb(230, 230, 230);
  padding-bottom: 0rem;
  padding-top: 1em;
  margin-bottom: 0;
}

.article hr {
  border: 0;
  border-top: 1px solid rgb(77, 77, 77);
  margin: 33px auto;
  width: 70px;
}

.article .footnotes {
  color: rgb(100, 100, 100);
  font-size: 13px;
  line-height: 1.4;
}

.article .footnotes ol {
  padding-left: 1.4em;
}

.article .footnotes li {
  margin-bottom: 0.5em;
}

.article .footnotes p {
  margin: 0;
}

.article .footnotes a {
  color: rgb(90, 130, 180);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: white;
  background: rgba(18, 18, 18, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.04);
}
