/* The header markup, colour variables, rays and moon texture are shared with the index. */
header {
  z-index: 30;
  background: var(--bg);
}
.table-of-contents {
  position: fixed;
  z-index: 5;
  top: 148px;
  left: max(92px, calc((100vw - 1270px) / 2 + 76px));
  width: 210px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 12px 10px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
  --tree-line: color-mix(in srgb, var(--line) 42%, transparent);
}
/* One uninterrupted 1px spine. Branches are horizontal only, so joints
   cannot double up into thicker vertical strokes. */
.table-of-contents::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 52px;
  bottom: 29px;
  width: 1px;
  background: var(--tree-line);
  pointer-events: none;
}
.toc-title {
  color: var(--ice);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.table-of-contents a {
  position: relative;
  display: block;
  margin-left: 10px;
  padding: 7px 9px 7px 16px;
  border: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
}
.table-of-contents a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 1px;
  background: var(--tree-line);
  pointer-events: none;
}
.table-of-contents .toc-level-2 {
  margin-left: 25px;
  padding-left: 16px;
  font-size: 11px;
}
.table-of-contents .toc-level-2::before {
  left: -15px;
  width: 26px;
}
.table-of-contents a:hover,
.table-of-contents a:focus-visible {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 2px 0 var(--ice);
}
@media (max-width: 1349px) {
  .table-of-contents {
    position: static;
    width: auto;
    max-height: none;
    margin: 20px auto -25px;
    padding: 14px 20px;
    max-width: 714px;
    display: block;
    columns: 2;
    column-gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .toc-title {
    column-span: all;
  }
  .table-of-contents a {
    display: block;
    break-inside: avoid;
    margin-left: 0;
    padding-left: 9px;
  }
  .table-of-contents .toc-level-2 {
    margin-left: 0;
    padding-left: 21px;
  }
  .table-of-contents::before,
  .table-of-contents a::before {
    display: none;
  }
}
@media (min-width: 1350px) {
  .article-wrap {
    position: relative;
    left: 94px;
  }
}
@media (max-width: 680px) {
  .table-of-contents {
    columns: 1;
    margin: 8px 18px -12px;
  }
}
.article-wrap {
  scroll-margin-top: 24px;
  max-width: 790px;
  margin: 0 auto;
  padding: 60px 38px 120px;
  border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.article-kicker {
  font-size: 12px;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 600;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 28px;
  text-wrap: balance;
}
.article-body {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
}
.article-body p {
  margin: 0 0 24px;
}
.article-body > p:first-child {
  font-size: 19px;
  line-height: 1.7;
}
.article-body h2,
.article-body h3 {
  scroll-margin-top: 24px;
  color: var(--text);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.article-body h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  margin: 72px 0 24px;
  padding-top: 2px;
}
.article-body h3 {
  font-size: clamp(22px, 2.5vw, 29px);
  margin: 54px 0 20px;
}
.article-body em {
  color: var(--muted);
}
.article-body a {
  color: var(--ice);
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--text);
}

html.embedded-preview header {
  display: none;
}
html.embedded-preview .table-of-contents {
  top: 24px;
}
.article-wrap :where(input, button, summary, canvas) {
  scroll-margin-top: 24px;
}
.article-wrap {
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .article-wrap {
    padding: 36px 23px 80px;
  }
  .article-body {
    font-size: 15.5px;
    line-height: 1.75;
  }
}
