@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 64px;
  --space-8: 80px;
}

html {
  hanging-punctuation: first last;
}

body,
button,
input,
textarea,
select {
  font-synthesis: none;
}

body {
  font-kerning: normal;
}

time,
.article-id,
.entry-meta,
.article-meta,
.numeric {
  font-variant-numeric: tabular-nums;
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-wrap: balance;
  }
}

@supports (text-wrap: pretty) {
  .article-body p,
  .article-body li {
    text-wrap: pretty;
  }
}

h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--space-1);
  font-size: var(--text-body);
  font-style: normal;
  line-height: 1.4;
}

h4 {
  font-weight: 600;
}

h5,
h6 {
  font-weight: 500;
}

.article-header {
  margin-bottom: var(--space-7);
}

.article-identity {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  color: var(--white-secondary);
  font-size: var(--text-small);
  line-height: 1.45;
}

.article-identity p {
  margin: 0;
}

.article-id {
  color: var(--white);
}

.article-body > p,
.article-body > section > p {
  hyphens: auto;
  orphans: 3;
  widows: 3;
}

.article-body a,
.article-body code,
.article-body samp,
.article-body pre,
.article-body cite,
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-body [lang="ja"] {
  hyphens: none;
}

.article-body h2 {
  margin-top: 56px;
  margin-bottom: var(--space-2);
}

.article-body h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-1);
}

.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: var(--space-5);
}

.heading-anchor {
  color: inherit;
  text-decoration: none;
}

.heading-anchor:hover,
.heading-anchor:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--white-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.entry h2 a:visited {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.entry h2 a:hover,
.entry h2 a:focus-visible {
  text-decoration-style: solid;
}

.wide-evidence {
  position: relative;
  left: 50%;
  width: min(var(--shell), calc(100vw - 48px));
  max-width: none;
  transform: translateX(-50%);
}

.wide-evidence.table-scroll,
.wide-evidence.source-material,
.wide-evidence.technical-trace {
  max-width: none;
}

.corrections {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--white-rule);
  color: var(--white-secondary);
  font-size: var(--text-small);
  line-height: 1.6;
}

.corrections h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body);
  font-weight: 600;
}

.corrections p:last-child,
.article-body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .wide-evidence {
    width: min(var(--shell), calc(100vw - 80px));
  }
}

@media print {
  @page {
    margin: 19mm 20mm 22mm;
  }

  :root {
    color-scheme: light;
    --black: #fff;
    --white: #000;
    --white-secondary: #222;
    --white-rule: #999;
    --text-small: 9pt;
    --text-body: 11pt;
    --text-heading: 15pt;
    --text-title: 24pt;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  body {
    display: block;
    min-height: auto;
    line-height: 1.55;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .overflow-hint {
    display: none !important;
  }

  main.shell {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  article {
    max-width: var(--measure);
    margin-inline: auto;
  }

  .article-header {
    margin-bottom: 12mm;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  caption,
  figcaption {
    break-after: avoid-page;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  tr,
  figure,
  .technical-prompt,
  .technical-trace--short {
    break-inside: avoid-page;
  }

  a {
    color: #000;
    text-decoration-color: #000;
  }

  .heading-anchor {
    text-decoration: none;
  }

  .article-body a[href^="http"]:not(.footnote-backref)::after {
    content: " <" attr(href) ">";
    font-size: var(--text-small);
    overflow-wrap: anywhere;
  }

  .footnote-ref a::after,
  .footnote-backref {
    display: none;
  }

  .wide-evidence {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .table-scroll,
  .article-body pre {
    overflow: visible;
  }

  .article-body pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .article-body table {
    min-width: 0;
  }

  .source-material,
  .technical-trace,
  .footnotes,
  .corrections {
    border-color: #999;
  }
}
