.mdgl-article-head {
  position: relative;
  overflow: hidden;
}

.mdgl-article-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #58dce8 24%, #ffc26a 72%, transparent);
  opacity: .8;
}

.mdgl-article-head h1 {
  max-width: 980px;
}

.mdgl-prose > h3 {
  scroll-margin-top: 92px;
}

.mdgl-prose > h3::before {
  background: linear-gradient(180deg, #69e6ed, #e8954f);
}

.mdgl-intro,
.mdgl-newcomers,
.mdgl-brief {
  position: relative;
}

.mdgl-newcomers {
  margin: 3rem 0;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  border: 1px solid rgba(99, 224, 233, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(62, 209, 225, .09), transparent 30%),
    linear-gradient(145deg, rgba(5, 19, 25, .88), rgba(17, 12, 8, .72));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.mdgl-brief {
  border-color: rgba(245, 171, 86, .3);
  background: linear-gradient(145deg, rgba(20, 14, 9, .78), rgba(6, 18, 23, .76));
}

.mdgl-figure {
  overflow: hidden;
  border: 1px solid rgba(255, 190, 101, .34);
  border-radius: 18px;
  background: #05090b;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28), 0 0 40px rgba(54, 199, 214, .045);
}

.mdgl-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.mdgl-figure figcaption {
  border-top: 1px solid rgba(255, 190, 101, .18);
}

.mdgl-prose .dd-table {
  border-color: rgba(99, 224, 233, .22);
}

.mdgl-prose table thead th {
  color: #ffe1ac;
}

.mdgl-prose a[href^="http"] {
  text-decoration-color: rgba(96, 221, 230, .45);
}

@media (max-width: 720px) {
  .mdgl-newcomers {
    margin-inline: -.35rem;
    padding: 1rem;
    border-radius: 15px;
  }

  .mdgl-figure {
    margin-inline: -.65rem;
    border-radius: 12px;
  }

  .mdgl-figure figcaption {
    padding-inline: .8rem;
  }
}
