/* ==========================================================================
   Article / single post template
   ========================================================================== */

.post-hero {
  padding-top: 40px;
}

.post-hero__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.post-hero__title {
  font-size: 44px;
  font-weight: 900;
  color: var(--kp-text-primary);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  max-width: 880px;
}

@media (max-width: 640px) {
  .post-hero__title {
    font-size: 30px;
  }
}

.post-hero__excerpt {
  font-size: 18px;
  color: var(--kp-text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 28px;
}

.post-hero__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--kp-border);
  border-bottom: 1px solid var(--kp-border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.post-hero__byline-info {
  flex: 1;
  min-width: 160px;
}

.post-hero__byline-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--kp-text-primary);
}

.post-hero__byline-name a {
  text-decoration: none;
  color: inherit;
}

.post-hero__byline-name a:hover {
  color: var(--kp-accent);
}

.post-hero__byline-meta {
  font-size: 12px;
  color: var(--kp-text-muted);
  margin-top: 2px;
}

.post-hero__share {
  display: flex;
  gap: 8px;
  flex: none;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--kp-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--kp-text-secondary);
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--kp-accent);
  color: var(--kp-accent);
}

.post-hero__image {
  width: 100%;
  height: 420px;
  border-radius: var(--kp-radius-card);
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .post-hero__image {
    height: 220px;
    margin-bottom: 32px;
  }
}

.post-layout {
  display: flex;
  gap: 64px;
  padding-bottom: 64px;
}

@media (max-width: 980px) {
  .post-layout {
    flex-direction: column;
  }
}

.post-main {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.post-body {
  font-size: 17px;
  line-height: 1.85;
  color: #2a2a2a;
}

.post-body h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--kp-text-primary);
  margin: 40px 0 16px;
  line-height: 1.25;
}

.post-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--kp-text-primary);
  margin: 32px 0 14px;
}

.post-body p {
  margin-bottom: 22px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 22px 22px;
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body blockquote {
  border-left: 3px solid var(--kp-accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--kp-font-display);
  font-size: 21px;
  font-style: italic;
  color: var(--kp-text-primary);
}

.post-body strong {
  font-weight: 700;
}

.post-toc {
  width: 240px;
  flex: none;
}

@media (max-width: 980px) {
  .post-toc {
    width: auto;
    order: -1;
  }
}

.post-toc__sticky {
  position: sticky;
  top: 100px;
}

.post-toc__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kp-text-faint);
  margin-bottom: 14px;
}

.post-toc__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid var(--kp-border);
  padding-left: 16px;
}

.post-toc__list a {
  font-size: 13px;
  color: var(--kp-text-secondary);
  text-decoration: none;
  line-height: 1.4;
}

.post-toc__list a:hover {
  color: var(--kp-accent);
}

/* Author box */
.author-box {
  display: flex;
  gap: 18px;
  background: var(--kp-surface-trust);
  border: 1px solid var(--kp-border);
  border-radius: var(--kp-radius-card);
  padding: 26px;
  margin: 40px 0;
  max-width: 720px;
}

.author-box__info {
  flex: 1;
}

.author-box__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--kp-text-primary);
  text-decoration: none;
}

.author-box__role {
  font-size: 11px;
  font-weight: 700;
  color: var(--kp-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 4px 0 10px;
}

.author-box__bio {
  font-size: 13px;
  color: #777;
  line-height: 1.65;
}

/* Related articles */
.related-section {
  padding-top: 56px;
  padding-bottom: 64px;
  border-top: 1px solid var(--kp-border);
}

.related-section__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--kp-text-primary);
  margin-bottom: 28px;
}
