.article-reader-tools {
  display: flex;
  max-width: 760px;
  align-items: center;
  gap: 9px;
  margin: 22px 0 30px;
  padding: 10px;
  border: 1px solid #dce9ef;
  border-radius: 16px;
  background: #f7fbfc;
}

.article-font-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
  padding: 3px;
  border: 1px solid #d4e3e9;
  border-radius: 12px;
  background: #fff;
}

.article-reader-tools-label {
  padding: 0 7px;
  color: #607687;
  font-size: 13px;
  white-space: nowrap;
}

.article-font-controls button,
.article-reader-action {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.article-font-controls button {
  min-width: 36px;
  padding: 0 8px;
}

.article-font-controls button[aria-pressed="true"] {
  border-color: #a8d1db;
  background: #e7f5f7;
  color: #086b82;
}

.article-reader-action {
  padding: 0 11px;
  border-color: #d4e3e9;
  background: #fff;
  white-space: nowrap;
}

.article-font-controls button:hover,
.article-font-controls button:focus-visible,
.article-reader-action:hover,
.article-reader-action:focus-visible {
  border-color: #77b7c5;
  background: #eaf6f8;
}

.article-font-controls button:focus-visible,
.article-reader-action:focus-visible {
  outline: 3px solid rgba(23, 105, 209, .24);
  outline-offset: 2px;
}

.article-reader-action.is-success {
  border-color: #85c8b5;
  background: #e4f6ef;
  color: #17695b;
}

.article-mobile-toc {
  display: none;
}

.article-heading-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 5px;
  border-radius: 7px;
  color: #4e99a9;
  font-size: .68em;
  line-height: 1;
  text-decoration: none;
  vertical-align: .08em;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.article-content h2:hover .article-heading-link,
.article-content h3:hover .article-heading-link,
.article-heading-link:focus-visible,
.article-heading-link.is-copied {
  opacity: 1;
}

.article-heading-link:hover,
.article-heading-link:focus-visible,
.article-heading-link.is-copied {
  background: #e5f4f6;
  color: #086b82;
}

.article-heading-link:focus-visible {
  outline: 3px solid rgba(23, 105, 209, .24);
  outline-offset: 2px;
}

.article-back-to-top {
  position: fixed;
  right: max(18px, calc((100vw - 1160px) / 2 - 78px));
  bottom: 30px;
  z-index: 70;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid #b9d7df;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--blue-dark);
  box-shadow: 0 10px 28px rgba(8, 47, 79, .14);
  backdrop-filter: blur(14px);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.article-back-to-top:hover,
.article-back-to-top:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.article-back-to-top:focus-visible {
  outline: 3px solid rgba(23, 105, 209, .28);
  outline-offset: 3px;
}

.article-sequence {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid #dce9ef;
}

.article-sequence-link {
  display: grid;
  min-width: 0;
  min-height: 142px;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d7e6eb;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f5fafb);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.article-sequence-link:only-child {
  grid-column: 1 / -1;
  min-height: 0;
}

.article-sequence-link:hover,
.article-sequence-link:focus-visible {
  border-color: #8fc3cf;
  box-shadow: 0 12px 28px rgba(18, 66, 91, .09);
  transform: translateY(-2px);
}

.article-sequence-link:focus-visible {
  outline: 3px solid rgba(23, 105, 209, .24);
  outline-offset: 3px;
}

.article-sequence-next {
  text-align: right;
}

.article-sequence-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #087294;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
}

.article-sequence-next .article-sequence-kicker {
  justify-content: flex-end;
}

.article-sequence-kicker b {
  font-size: 17px;
  line-height: 1;
}

.article-sequence-link strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-sequence-link small {
  color: #6b8292;
  font-size: 12px;
  line-height: 1.5;
}

.article-head h1:focus-visible {
  outline: 3px solid rgba(23, 105, 209, .24);
  outline-offset: 8px;
}

.article-print-source {
  display: none;
}

body.page-article[data-article-font-size="small"] .article-content {
  font-size: 17px;
  line-height: 2;
}

body.page-article[data-article-font-size="standard"] .article-content {
  font-size: 18px;
  line-height: 2;
}

body.page-article[data-article-font-size="large"] .article-content {
  font-size: 20px;
  line-height: 2;
}

.article-toc-mount > .article-toc-list,
.article-toc-list .article-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc-list .article-toc-list {
  gap: 2px;
  padding-left: 13px;
}

.article-toc-link.is-active-link {
  color: var(--blue);
  transform: translateX(3px);
}

.article-toc-item.is-active-item > .article-toc-link {
  font-weight: 750;
}

@media (max-width: 960px) {
  .article-reader-tools {
    flex-wrap: wrap;
  }

  .article-mobile-toc {
    display: block;
    max-width: 760px;
    margin: -12px 0 28px;
    border: 1px solid #d8e7ec;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }

  .article-mobile-toc summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 15px;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
  }

  .article-mobile-toc summary::-webkit-details-marker {
    display: none;
  }

  .article-mobile-toc summary::after {
    content: "+";
    color: #4f92a1;
    font-size: 20px;
    font-weight: 500;
  }

  .article-mobile-toc[open] summary::after {
    content: "−";
  }

  .article-mobile-toc summary small {
    margin-left: auto;
    color: #6c8292;
    font-size: 12px;
    font-weight: 600;
  }

  .article-mobile-toc nav {
    padding: 2px 12px 13px;
    border-top: 1px solid #edf2f4;
  }

  .article-mobile-toc-list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 9px 0 0;
    list-style: none;
  }

  .article-mobile-toc-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 9px;
    color: #496478;
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
  }

  .article-mobile-toc-list .article-toc-level-3 a {
    padding-left: 24px;
    font-size: 13px;
  }

  .article-mobile-toc-list a:hover,
  .article-mobile-toc-list a:focus-visible,
  .article-mobile-toc-list a.is-active-link {
    background: #eaf6f8;
    color: #086b82;
  }

  .article-mobile-toc-list a:focus-visible {
    outline: 3px solid rgba(23, 105, 209, .24);
    outline-offset: 2px;
  }

  .article-heading-link {
    opacity: .7;
  }

  .article-back-to-top {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 44px;
    padding: 0;
  }

  .article-back-to-top-label {
    display: none;
  }
}

@media (max-width: 560px) {
  .article-reader-tools {
    gap: 7px;
    margin: 18px 0 24px;
    padding: 8px;
  }

  .article-font-controls {
    flex: 1 1 auto;
  }

  .article-font-controls button {
    flex: 1;
    padding: 0 6px;
  }

  .article-reader-action {
    flex: 1 1 calc(50% - 4px);
  }

  .article-sequence {
    grid-template-columns: 1fr;
    margin-top: 32px;
    padding-top: 26px;
  }

  .article-sequence-link {
    min-height: 0;
    padding: 16px;
  }

  .article-sequence-next {
    text-align: left;
  }

  .article-sequence-next .article-sequence-kicker {
    justify-content: flex-start;
  }

  body.page-article[data-article-font-size="small"] .article-content {
    font-size: 16px;
  }

  body.page-article[data-article-font-size="standard"] .article-content {
    font-size: 17px;
  }

  body.page-article[data-article-font-size="large"] .article-content {
    font-size: 19px;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  .site-header,
  .page-back-button,
  .article-back-to-top,
  .article-reader-tools,
  .article-mobile-toc,
  .article-heading-link,
  .article-sequence,
  .article-reading-sidebar,
  .article-related,
  .mobile-action-bar,
  body > footer {
    display: none !important;
  }

  body.page-article,
  .page-article .article-wrap {
    background: #fff !important;
  }

  .page-article .article-wrap,
  .page-article .article-wrap.section {
    padding: 0 !important;
  }

  .page-article .article-shell,
  .page-article .article-reading-column {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .article-print-source {
    display: block;
    margin-top: 10px;
    color: #555;
    font-size: 10pt;
    overflow-wrap: anywhere;
  }

  .page-article .article-content {
    max-width: none;
    color: #111;
    font-size: 11.5pt !important;
    line-height: 1.75 !important;
  }

  .page-article .article-content h2,
  .page-article .article-content h3 {
    break-after: avoid-page;
  }

  .page-article .article-content figure,
  .page-article .article-content table,
  .page-article .article-content pre,
  .page-article .article-content img {
    break-inside: avoid;
    max-width: 100% !important;
  }
}
