/* ==========================================================================
   11. Blog article view
   ========================================================================== */

.single-post {
  background: #f4f7f5;
}

.article-hero {
  padding: 68px 0 86px;
  background:
    radial-gradient(circle at 82% 15%, rgba(0, 245, 138, .13), transparent 36%),
    linear-gradient(180deg, #090d0b 0%, #020303 100%);
  color: var(--white);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  font-weight: 700;
}

.article-breadcrumb a {
  color: var(--green);
}

.article-breadcrumb a:hover {
  color: #52ffb2;
}

.article-hero-copy {
  max-width: 940px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-meta > * + * {
  position: relative;
}

.article-meta > * + *::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-50%);
}

.article-meta span:first-child {
  color: var(--green);
}

.article-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.article-hero-copy > p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1.65;
}

.article-stage {
  padding: 0 0 100px;
  background:
    linear-gradient(180deg, #020303 0, #020303 180px, #f4f7f5 180px, #f4f7f5 100%);
}

.article-cover {
  height: clamp(260px, 30vw, 360px);
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #07110d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-author {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: calc(100% - 80px);
  margin: -44px auto 0;
  padding: 22px 26px;
  border: 1px solid #e1e8e4;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 25, 20, .12);
}

.article-author > img {
  width: 72px;
  height: 72px;
  border: 3px solid #dfffee;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.author-copy > span,
.author-date > span {
  display: block;
  margin-bottom: 4px;
  color: #8a948f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.author-copy h2 {
  margin: 0;
  color: #101922;
  font-size: 18px;
  font-weight: 800;
}

.author-copy p {
  max-width: 630px;
  margin: 5px 0 0;
  color: #68746e;
  font-size: 12px;
  line-height: 1.5;
}

.author-date {
  min-width: 150px;
  padding-left: 22px;
  border-left: 1px solid #e3e9e5;
}

.author-date time {
  color: #27342e;
  font-size: 12px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px) 260px;
  justify-content: center;
  gap: 36px;
  align-items: flex-start;
  margin-top: 76px;
}

.article-toc-column,
.article-recommendations-column {
  position: sticky;
  top: 108px;
  align-self: start;
}

.article-toc {
  padding: 24px 20px;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(16, 28, 22, .07);
}

.toc-kicker {
  display: block;
  margin-bottom: 16px;
  color: #16221c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
}

.article-toc a {
  position: relative;
  display: block;
  padding: 10px 8px 10px 34px;
  border-left: 2px solid #e4eae7;
  color: #748079;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px;
  color: #a0aaa5;
  font-size: 9px;
  font-weight: 900;
}

.article-toc a:hover,
.article-toc a.active {
  border-color: var(--green-dark);
  background: #effff7;
  color: #006a40;
}

.article-toc a.active::before {
  color: var(--green-dark);
}

.article-content {
  min-width: 0;
  color: #33413a;
  font-size: 17px;
  line-height: 1.85;
}

.article-content .article-intro {
  margin: 0 0 48px;
  padding: 0 0 28px;
  border-bottom: 1px solid #dce5e0;
  color: #1b2a23;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
}

.article-content > section {
  scroll-margin-top: 110px;
  margin-bottom: 54px;
}

.article-content h2 {
  margin: 0 0 22px;
  color: #101922;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.article-content li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid #dfe8e3;
  border-radius: 9px;
  background: var(--white);
}

.article-content li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 20px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--green-dark);
  border-left: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}

.article-content blockquote {
  margin: 32px 0;
  padding: 26px 28px;
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: #07110d;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.article-highlight {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid #bfe8d2;
  border-radius: 10px;
  background: #eafff4;
}

.article-highlight strong {
  color: #005b36;
  font-size: 16px;
}

.article-highlight span {
  color: #4c695b;
  font-size: 14px;
}

.article-inline-cta {
  margin-top: 68px;
  padding: 38px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 245, 138, .18), transparent 40%),
    #07110d;
  color: var(--white);
}

.article-inline-cta > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-inline-cta h2 {
  max-width: 600px;
  margin: 12px 0 14px;
  color: var(--white);
  font-size: clamp(26px, 3vw, 36px);
}

.article-inline-cta p {
  max-width: 600px;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
}

.article-inline-cta .btn {
  margin-top: 8px;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  margin-top: 34px;
  color: #007d4d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.back-to-blog::before {
  content: "<";
  margin-right: 9px;
}

.back-to-blog:hover {
  color: #005f3a;
}

.sidebar-recommendations {
  padding: 22px;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(16, 28, 22, .07);
}

.sidebar-recommendations-head {
  margin-bottom: 14px;
}

.sidebar-recommendations-head > span {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sidebar-recommendations-head h2 {
  margin: 0;
  color: #101922;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-article-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #e6ece8;
}

.sidebar-article-card > img {
  width: 84px;
  height: 70px;
  border-radius: 7px;
  object-fit: cover;
}

.sidebar-article-card > span {
  min-width: 0;
}

.sidebar-article-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-article-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #29352f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sidebar-article-card:hover strong {
  color: #007d4d;
}

.sidebar-all-articles {
  display: inline-flex;
  margin-top: 13px;
  color: #007d4d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-all-articles::after {
  content: ">";
  margin-left: 7px;
}

@media (max-width: 1199px) {
  .article-layout {
    grid-template-columns: 220px minmax(0, 680px);
  }

  .article-recommendations-column {
    position: static;
    grid-column: 2;
  }

  .sidebar-recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .sidebar-recommendations-head,
  .sidebar-all-articles {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .article-author {
    max-width: calc(100% - 32px);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 58px;
  }

  .article-toc-column,
  .article-recommendations-column {
    position: static;
  }

  .article-recommendations-column {
    grid-column: auto;
  }

  .article-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .article-hero {
    padding: 48px 0 68px;
  }

  .article-breadcrumb {
    margin-bottom: 28px;
  }

  .article-hero h1 {
    font-size: 38px;
  }

  .article-hero-copy > p {
    font-size: 16px;
  }

  .article-stage {
    background:
      linear-gradient(180deg, #020303 0, #020303 90px, #f4f7f5 90px, #f4f7f5 100%);
  }

  .article-cover {
    height: 210px;
    border-radius: 11px;
  }

  .article-author {
    grid-template-columns: auto 1fr;
    max-width: calc(100% - 20px);
    margin-top: -28px;
    padding: 18px;
  }

  .article-author > img {
    width: 60px;
    height: 60px;
  }

  .author-date {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid #e3e9e5;
    border-left: 0;
  }

  .article-layout {
    margin-top: 44px;
  }

  .article-toc ol {
    grid-template-columns: 1fr;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-content .article-intro {
    font-size: 19px;
  }

  .article-content blockquote {
    padding: 22px;
    font-size: 18px;
  }

  .article-inline-cta {
    padding: 28px 24px;
  }

  .sidebar-recommendations {
    grid-template-columns: 1fr;
  }

  .sidebar-recommendations-head,
  .sidebar-all-articles {
    grid-column: auto;
  }
}
