* { box-sizing: border-box }
body { margin: 0; color: #242728; font: 17px/1.7 system-ui,sans-serif }
header, main { max-width: 68rem; margin: auto; padding: 1rem }
header { border-bottom: 1px solid #ddd }
nav a { margin-right: 1rem }
a { color: #245887 }
article { min-width: 0; overflow-wrap: anywhere; padding-bottom: clamp(4rem, 12vh, 8rem) }
article img { max-width: 100%; height: auto }
article blockquote {
  margin: 1.25rem 0;
  padding: .75rem 1rem;
  border-left: .25rem solid #5c7e9b;
  background: #f2f5f8;
}
article blockquote > :first-child { margin-top: 0 }
article blockquote > :last-child { margin-bottom: 0 }
pre { overflow-x: auto }
.reading { display: grid; grid-template-columns: 14rem minmax(0,1fr); gap: 2rem }
aside { position: sticky; top: 1rem; align-self: start; max-height: 92vh; overflow: auto }
aside ul { padding-left: 1.3rem }
time, .meta { color: #555; font-size: .9em }
input { padding: .55rem; width: min(100%,32rem); font: inherit }
@media(max-width:700px) { .reading { display:block } aside { position:static; max-height:none } }
.neighbors { display: flex; gap: 1rem; justify-content: space-between; border-top: 1px solid #ddd; padding-top: 1rem; margin-top: 2rem }
.neighbors a { max-width: 48%; margin: 0 }
.neighbors [rel=next] { margin-left: auto; text-align: right }

article pre {
  max-width: 100%;
  padding: .85rem 1rem;
  background: #f5f7f9;
  border: 1px solid #d8dfe5;
  border-radius: .35rem;
  line-height: 1.5;
}
article code { font-family: ui-monospace, monospace; font-size: .9em }
.code-block { position: relative; margin: 1rem 0; min-width: 0 }
.code-block pre { margin: 0 }
.copy-code {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 1;
  padding: .2rem .65rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: transparent;
  color: transparent;
  font: inherit;
  font-size: .85em;
  cursor: pointer;
}
.copy-code:hover, .copy-code:focus-visible { background: #e8eef3; border-color: #cbd3da; color: #245887 }
.copy-code:focus-visible { outline: 2px solid #245887; outline-offset: 2px }
article :not(pre) > code { background: #f5f7f9; padding: .1em .25em; border-radius: .2em }
/* Token classes emitted by Pandoc's syntax highlighter. */
.sourceCode .kw, .sourceCode .cf, .sourceCode .im { color: #71389b; font-weight: bold }
.sourceCode .st, .sourceCode .ch, .sourceCode .ss, .sourceCode .vs { color: #126238 }
.sourceCode .dv, .sourceCode .bn, .sourceCode .fl, .sourceCode .cn { color: #964500 }
.sourceCode .fu, .sourceCode .bu, .sourceCode .dt { color: #175c91 }
.sourceCode .co, .sourceCode .do { color: #52616a; font-style: italic }
article table { border-collapse: collapse; }
article th, article td { padding: .35rem .75rem; border: 1px solid #cbd3da }
article th { background: #f5f7f9 }
.table-scroll { overflow-x: auto; margin: 1rem 0 }
.tables-full-width table { width: 100% }
.numberSource > code > span > a:first-child::before {
  content: counter(code-line);
  counter-increment: code-line;
  display: inline-block;
  width: 4ch;
  margin-right: 1ch;
  text-align: right;
  color: #52616a;
  user-select: none;
}

.images-centered img { display: block; margin-inline: auto }
.images-centered figcaption { text-align: center }

.numberSource > code { counter-reset: code-line }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .75rem 1.25rem;
  padding: 2rem 0 4rem;
  line-height: 1.4;
}
.tag-cloud a { max-width: 100%; overflow-wrap: anywhere; text-decoration: none }
.tag-cloud a:hover, .tag-cloud a:focus-visible { text-decoration: underline }

.math.display { display: block; max-width: 100%; overflow-x: auto; padding-block: .35em }
