.article-page {
  max-width: 1160px;
}

.breadcrumbs,
.article-heading,
.article-cover {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta > *:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 260px;
  align-items: start;
  gap: 54px;
}

.article-main {
  min-width: 0;
}

.article-body h2,
.article-body h3 {
  scroll-margin-top: 24px;
}

.article-body .article-key-point {
  max-width: none;
  margin: 34px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: var(--soft);
  font-size: 20px;
}

.article-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.article-toc h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.article-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.article-toc li.toc-level-3 {
  margin-left: 12px;
}

.article-toc a {
  color: inherit;
}

.article-toc a.is-active {
  color: var(--green);
  font-weight: 800;
}

.article-toc-button,
.article-toc-backdrop {
  display: none;
}

.related-articles {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin: 0 0 20px;
  font-size: 30px;
}

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

.related-grid a {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.related-grid a:hover {
  border-color: var(--green);
  text-decoration: none;
}

.related-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.related-grid strong {
  line-height: 1.3;
}

.related-grid b {
  color: var(--green);
  font-size: 14px;
}

.author-box {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  margin-top: 54px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.author-box img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.author-box h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.author-box p {
  margin: 0 0 10px;
  color: var(--muted);
}

.author-box a {
  font-weight: 800;
}

.channel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 26px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
}

.channel-cta h2 {
  margin: 0 0 4px;
  font-size: 25px;
}

.channel-cta p {
  margin: 0;
  opacity: .88;
}

.channel-cta > a {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .article-page {
    max-width: 820px;
  }

  .article-layout {
    display: block;
  }

  .article-toc {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    max-height: none;
    border-radius: 0;
    transform: translateX(105%);
    transition: transform .2s ease;
  }

  .article-toc.is-open {
    transform: translateX(0);
  }

  .article-toc-button {
    position: fixed;
    z-index: 18;
    right: 18px;
    bottom: 18px;
    display: block;
    padding: 11px 15px;
    border: 0;
    border-radius: 99px;
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow);
    font-weight: 800;
  }

  .article-toc-backdrop {
    position: fixed;
    z-index: 19;
    inset: 0;
    display: block;
    background: rgba(10, 24, 16, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .article-toc-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.toc-open {
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  .breadcrumbs span:nth-last-child(-n+2) {
    display: none;
  }

  .article-meta {
    display: grid;
    gap: 3px;
  }

  .article-meta > *::after {
    display: none;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    grid-template-columns: 92px 1fr;
    gap: 16px;
    padding: 18px;
  }

  .author-box img {
    width: 92px;
    height: 92px;
  }

  .author-box h2 {
    font-size: 22px;
  }

  .channel-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-cta > a {
    text-align: center;
  }
}
