body.article-enhanced {
  background:
    radial-gradient(circle at 18% 10%, rgba(244, 164, 75, .13), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(75, 158, 255, .09), transparent 30%),
    linear-gradient(180deg, #0b1020 0%, #080b18 42%, #0d1323 100%);
}

.reading-progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, .07);
}

.reading-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f4a44b, #ffd08a);
  box-shadow: 0 0 18px rgba(244, 164, 75, .45);
  transition: width .12s linear;
}

body.article-enhanced .article,
body.article-enhanced .article-wrap {
  position: relative;
  max-width: 820px;
  padding-top: 54px;
}

body.article-enhanced .article::before,
body.article-enhanced .article-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -34px auto;
  height: 210px;
  z-index: -1;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(244, 164, 75, .12), rgba(75, 158, 255, .07)),
    rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
}

body.article-enhanced .article h1,
body.article-enhanced .article-wrap h1 {
  color: #fff;
  text-shadow: 0 12px 38px rgba(0, 0, 0, .26);
}

body.article-enhanced .lead {
  color: rgba(232, 232, 240, .78);
}

body.article-enhanced .article h2,
body.article-enhanced .article-wrap h2 {
  position: relative;
  color: #fff;
  padding-left: 18px;
  scroll-margin-top: 88px;
}

body.article-enhanced .article h2::before,
body.article-enhanced .article-wrap h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 5px;
  height: 1.25em;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4a44b, #ffbf75);
  box-shadow: 0 0 16px rgba(244, 164, 75, .35);
}

body.article-enhanced .article p,
body.article-enhanced .article li,
body.article-enhanced .article-wrap p,
body.article-enhanced .article-wrap li {
  color: rgba(232, 232, 240, .74);
}

body.article-enhanced .note,
body.article-enhanced .warning,
body.article-enhanced .example,
body.article-enhanced .formula,
body.article-enhanced .rule,
body.article-enhanced .check,
body.article-enhanced blockquote {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 164, 75, .14), rgba(75, 158, 255, .08)),
    #171b29;
  border: 1px solid rgba(244, 164, 75, .32);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .18);
}

body.article-enhanced .note::after,
body.article-enhanced .warning::after,
body.article-enhanced .example::after,
body.article-enhanced .formula::after,
body.article-enhanced .rule::after,
body.article-enhanced .check::after,
body.article-enhanced blockquote::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(244, 164, 75, .13);
}

.article-toc-mobile {
  display: none;
  margin: 28px 0 34px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(23, 27, 41, .86);
  border: 1px solid rgba(255, 255, 255, .09);
}

.article-toc-mobile-title,
.article-sidebar-title {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.article-toc-list {
  display: grid;
  gap: 9px;
}

.article-toc-link {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: rgba(232, 232, 240, .68);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: color .16s, transform .16s;
}

.article-toc-link::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: .42em;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(244, 164, 75, .55);
}

.article-toc-link:hover,
.article-toc-link.active {
  color: #fff;
  transform: translateX(2px);
}

.article-toc-link.active::before {
  background: #f4a44b;
  box-shadow: 0 0 12px rgba(244, 164, 75, .5);
}

.article-sidebar {
  display: none;
}

@media (min-width: 1400px) {
  .article-sidebar {
    display: block;
    position: fixed;
    top: 92px;
    right: max(28px, calc((100vw - 1180px) / 2));
    width: 250px;
    max-height: calc(100vh - 122px);
    overflow: auto;
    padding: 18px;
    border-radius: 18px;
    background: rgba(18, 24, 39, .78);
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
  }

  .article-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: rgba(232, 232, 240, .72);
    font-size: 13px;
    margin-bottom: 10px;
  }

  .article-progress-track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    margin-bottom: 20px;
  }

  .article-progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #f4a44b, #ffd08a);
  }
}

@media (max-width: 1399px) {
  .article-toc-mobile {
    display: block;
  }
}

@media (max-width: 720px) {
  body.article-enhanced .article,
  body.article-enhanced .article-wrap {
    padding-top: 36px;
  }

  body.article-enhanced .article::before,
  body.article-enhanced .article-wrap::before {
    inset: 12px -12px auto;
    height: 180px;
    border-radius: 24px;
  }
}
