:root {
  --posts-text: #1f2638;
  --posts-muted: #6b6d78;
  --posts-line: #d8d8d8;
  --posts-accent: #e55b49;
}

body.site-layout:has(.post-page),
.site-layout-main:has(.post-page) {
  background: #fff;
}

.site-layout-main:has(.post-page) {
  padding-top: 0 !important;
}

.site-layout-main:has(.post-page) .breadcrumb {
  display: none;
}

.post-page {
  width: min(100% - 40px, 740px);
  margin: 22px auto 0 !important;
  color: var(--posts-text);
  font-family: Montserrat, Arial, sans-serif;
}

.post-page__content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.post-page__header {
  margin-bottom: 28px;
}

.post-page__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.post-page__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--posts-text);
  font-size: 16px;
  line-height: 20px;
}

.post-page__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.post-page__author-avatar-wrap,
.post-page__author-avatar-link {
  display: inline-flex;
}

.post-page__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.post-page__meta-separator {
  margin: 0 2px;
}

.post-page__title {
  margin: 0 0 24px;
  color: var(--posts-text);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
}

.post-page__subtitle {
  margin: 0 0 22px;
  color: var(--posts-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
}

.post-figure-hero {
  display: none;
}

.post-page__body {
  order: 1;
  color: var(--posts-text);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: .005em;
}

.post-page__body p,
.post-page__body ul,
.post-page__body ol {
  margin: 0 0 28px;
}

.post-page__body h2,
.post-page__body h3,
.post-page__body h4 {
  margin: 38px 0 24px;
  color: var(--posts-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.post-page__body ul,
.post-page__body ol {
  padding-left: 36px;
}

.post-page__body li {
  margin-bottom: 8px;
  padding-left: 8px;
}

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

.post-page__body figure,
.post-page__body .post-figure,
.post-page__body p:has(img) {
  margin: 32px 0 34px;
}

.post-page__body img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: cover;
}

.post-page__body figcaption {
  margin-top: 10px;
  color: var(--posts-muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.post-page__body p:has(img) {
  line-height: 0;
}

.post-page__body p:has(img) + h2,
.post-page__body p:has(img) + h3 {
  margin-top: 34px;
}

.post-page__content:has(.post-page__body img) .post-figure-hero {
  display: none;
}

.post-page__content:not(:has(.post-page__body img)) .post-figure-hero {
  display: block;
  order: 1;
  margin: 4px 0 34px;
}

.post-page__content:not(:has(.post-page__body img)) .post-figure-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-page .keywords {
  order: 2;
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.post-page .keywords p {
  margin: 0 0 14px;
  color: var(--posts-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.post-page .keywords .row,
.post-page .keywords .col {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.post-page .keywords a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px !important;
  border: 1px solid #d6d6d6;
  color: var(--posts-text);
  background: #fff;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
}

.post-page .keywords a:hover {
  border-color: #a9a9a9;
  background: #fff;
}

.post-page .keywords.pt-2 {
  order: 3;
  margin-top: 18px;
  padding-top: 0 !important;
  border-top: 0;
}

.post-page .keywords.pt-2 a {
  min-height: auto;
  padding: 0 !important;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-page .keywords .arrow-tag::before {
  content: none;
}

.post-page .keywords.pt-2 a + a::before {
  content: "·";
  display: inline-block;
  margin: 0 8px 0 4px;
  color: var(--posts-text);
  text-decoration: none;
}

.post-page__after {
  order: 4;
  margin-top: 30px;
  padding: 22px 0 !important;
  border-top: 1px solid var(--posts-line);
  border-bottom: 1px solid var(--posts-line);
}

.post-page__share {
  display: flex;
  align-items: center;
  gap: 34px;
}

.post-page__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--posts-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.post-page__share-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-page__views {
  order: 5;
  margin: 14px 0 0;
  color: var(--posts-text);
  background: transparent;
  font-size: 14px;
  line-height: 18px;
}

.post-page__recent {
  order: 6;
  width: 940px;
  margin: 96px 0 0 -100px;
}

.post-page__recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.post-page__recent-header h2 {
  margin: 0;
  color: var(--posts-text);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.post-page__recent-header a {
  color: var(--posts-text);
  font-size: 15px;
  text-decoration: none;
}

.post-page__recent-grid {
  display: grid;
  grid-template-columns: repeat(2, 292px);
  gap: 34px;
}

.post-page__recent-card,
.post-page__recent-image-link,
.post-page__recent-image-link img {
  width: 292px;
}

.post-page__recent-image-link,
.post-page__recent-image-link img {
  display: block;
  height: 164px;
}

.post-page__recent-image-link img {
  object-fit: cover;
}

.post-page__recent-title {
  margin: 22px 0 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--posts-line);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.post-page__recent-title a {
  color: var(--posts-text);
  text-decoration: none;
}

.post-page__recent-meta {
  width: 28px;
  height: 9px;
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: 999px;
  color: transparent;
  background: #e4e4e4;
}

@media (max-width: 960px) {
  .post-page {
    width: min(100% - 32px, 740px);
    margin-top: 18px !important;
  }

  .post-page__title {
    font-size: 34px;
  }

  .post-page__body {
    font-size: 18px;
  }

  .post-page__recent {
    width: 100%;
    margin-left: 0;
  }

  .post-page__recent-grid {
    grid-template-columns: 1fr;
  }

  .post-page__recent-card,
  .post-page__recent-image-link,
  .post-page__recent-image-link img {
    width: 100%;
  }

  .post-page__recent-image-link,
  .post-page__recent-image-link img {
    height: auto;
    aspect-ratio: 292 / 164;
  }
}