.article-detail {
  margin-top: 40px;
  padding: 0 28px;
}

.article-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: 40px;
}

.article-heading.no-cover {
  grid-template-columns: 1fr;
}

.article-title-block {
  min-width: 0;
}

.article-title-block h1 {
  font-size: 48px;
  line-height: 1.13;
  letter-spacing: -1.6px;
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}

.article-title-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.reading.article-reading {
  max-width: 858px;
  margin: 36px auto;
}

.article-intro {
  margin-top: 30px;
}

.article-intro .perex {
  margin: 0 0 24px;
}

.article-detail .prose {
  margin-top: 0;
}

.comment-thread {
  margin: 24px 0;
}

.comments .comment {
  border: 1px solid #dce0d4;
  border-radius: var(--radius);
  background: #fafbf7;
  padding: 18px 22px;
  margin: 12px 0;
  overflow-wrap: anywhere;
  scroll-margin-top: 24px;
}

.comments .comment-reply {
  position: relative;
  margin-left: 32px;
  background: #f3f5ee;
}

.comments .comment-reply::before {
  content: '';
  position: absolute;
  left: -18px;
  top: -13px;
  bottom: -13px;
  border-left: 1px solid #bdc7aa;
  pointer-events: none;
}

.comments .comment-reply::after {
  content: '';
  position: absolute;
  left: -18px;
  top: 27px;
  width: 18px;
  border-top: 1px solid #bdc7aa;
  pointer-events: none;
}

.comments .comment-reply:last-child::before {
  bottom: auto;
  height: 40px;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}

.comment-meta time {
  font-size: 12px;
  color: var(--muted);
}

.comment-body {
  white-space: normal;
  overflow-wrap: anywhere;
  margin: 12px 0;
}

.comments .comment-hidden {
  background: #f0f1eb;
  color: #74786f;
}

.comment-placeholder {
  font-size: 13px;
  margin: 8px 0;
}

.comment-placeholder span {
  display: block;
  margin-top: 5px;
}

.comment-quote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid #b9c49f;
  background: #e8ecdf;
  font-size: 13px;
  color: #5c6651;
  overflow-wrap: anywhere;
}

.comment-quote p {
  margin: 5px 0;
}

.comment-quote a {
  font-weight: 600;
}

.comment-reply-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

.comment-form {
  scroll-margin-top: 24px;
}

.comment-form h3 {
  margin-top: 0;
}

.comment-moderation {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.comment-admin-thread {
  margin: 28px 0 40px;
}

.comment-admin-thread .comment-admin {
  margin: 12px 0;
}

.comment-admin-thread .comment-admin-reply {
  position: relative;
  margin-left: 32px;
  background: #f3f5ee;
}

.comment-admin-reply::before {
  content: '';
  position: absolute;
  left: -18px;
  top: -13px;
  bottom: -13px;
  border-left: 1px solid #bdc7aa;
}

.comment-admin-reply::after {
  content: '';
  position: absolute;
  left: -18px;
  top: 30px;
  width: 18px;
  border-top: 1px solid #bdc7aa;
}

.comment-admin-reply:last-child::before {
  bottom: auto;
  height: 43px;
}

@media (max-width: 700px) {
  .comment-admin-thread .comment-admin-reply {
    margin-left: 18px;
  }

  .comment-admin-reply::before,
  .comment-admin-reply::after {
    left: -10px;
  }

  .comment-admin-reply::after {
    width: 10px;
  }
}

.moderation-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.moderation-form .secondary {
  margin-top: 0;
}

.article-sources {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.article-sources h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.article-sources ol {
  margin: 0;
  padding-left: 22px;
}

.article-sources li {
  margin: 12px 0;
}

.article-sources a {
  font-weight: 600;
  text-decoration: underline;
}

.article-sources p {
  margin: 5px 0 0;
  color: var(--muted);
}

.sources-editor h2 {
  margin-top: 0;
}

.source-editor-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.source-comment-field {
  grid-column: 1 / -1;
}

.source-remove-button {
  justify-self: start;
  color: #875040;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9em;
}

.prose td,
.prose th {
  border: 1px solid #d6dbcc;
  padding: 10px 14px;
}

.prose hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 650px) {
  .source-editor-row {
    grid-template-columns: 1fr;
  }
}

@media(max-width:1000px) {
  .article-heading {
    gap: 26px;
  }

  .article-title-block h1 {
    font-size: 40px;
  }

  .article-title-image {
    height: 300px;
  }
}

@media(max-width:700px) {
  .article-detail {
    margin-top: 30px;
    padding: 0 8px;
  }

  .article-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-title-block h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .article-title-image {
    height: auto;
    max-height: 380px;
  }

  .reading.article-reading {
    margin: 28px auto;
  }

  .comments .comment {
    padding: 15px;
  }

  .comments .comment-reply {
    margin-left: 18px;
  }

  .comments .comment-reply::before,.comments .comment-reply::after {
    left: -10px;
  }

  .comments .comment-reply::after {
    width: 10px;
  }

  .comment-meta {
    gap: 6px;
  }

  .comment-moderation {
    gap: 18px;
  }
}
