/**
 * Single-post presentation based on the supplied Saaya article reference.
 */

body.single-post .custom-header {
  margin-bottom: 40px;
  padding: 36px 0 30px;
  background: #434343;
}

body.single-post .custom-header .entry-title {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  text-transform: none;
}

body.single-post .breadcrumbs .trail-items {
  padding: 16px 0 0;
}

body.single-post .breadcrumbs .trail-items li,
body.single-post .breadcrumbs .trail-items a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

body.single-post .breadcrumbs .trail-items a:hover,
body.single-post .breadcrumbs .trail-items a:focus {
  color: var(--cuihua-accent);
}

body.single-post #content > .mt-container {
  overflow: visible;
}

body.single-post #primary.cuihua-single-post__primary {
  float: none;
  width: 100%;
}

.cuihua-single-article {
  margin: 0;
  color: var(--cuihua-ink);
}

.cuihua-single-article .post-thumbnail {
  margin: 0 0 22px;
  background: var(--cuihua-soft);
}

.cuihua-single-article .post-thumbnail img {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 560px);
  object-fit: cover;
}

.cuihua-single-article .entry-cat,
.cuihua-single-article .entry-header,
.cuihua-single-article .entry-content,
.cuihua-single-article .entry-footer {
  width: min(780px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.cuihua-single-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 0;
  margin: 0 0 16px;
  color: var(--cuihua-muted);
}

.cuihua-single-article__meta .posted-on,
.cuihua-single-article__meta .blog-cat,
.cuihua-single-article__meta .blog-author,
.cuihua-single-article__meta a {
  color: var(--cuihua-muted);
  font-size: 14px;
  font-weight: 600;
}

.cuihua-single-article__meta .posted-on a {
  margin-right: 50px;
}

.cuihua-single-article__meta .posted-on a::before {
  background: var(--cuihua-ink);
}

.cuihua-single-article__meta a:hover,
.cuihua-single-article__meta a:focus {
  color: var(--cuihua-accent-text);
}

.cuihua-single-article .entry-header {
  margin: 0 0 18px;
}

.cuihua-single-article .entry-title {
  margin: 0;
  color: var(--cuihua-ink);
  font-family: inherit;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  text-transform: none;
}

.cuihua-single-article .entry-content {
  margin: 0;
  color: var(--cuihua-muted);
  font-size: 17px;
  line-height: 1.95;
}

.cuihua-single-article .entry-content p {
  margin: 0 0 1.55em;
}

.cuihua-single-article .entry-content h2,
.cuihua-single-article .entry-content h3,
.cuihua-single-article .entry-content h4 {
  margin: 1.8em 0 0.65em;
  color: var(--cuihua-ink);
  font-family: inherit;
  font-weight: 900;
  line-height: 1.4;
}

.cuihua-single-article .entry-content h2 {
  font-size: 28px;
}

.cuihua-single-article .entry-content h3 {
  font-size: 23px;
}

.cuihua-single-article .entry-content a {
  color: var(--cuihua-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cuihua-single-article .entry-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--cuihua-accent);
  color: var(--cuihua-muted);
  font-size: 19px;
}

.cuihua-single-article .entry-content img,
.cuihua-single-article .entry-content figure {
  max-width: 100%;
}

.cuihua-single-article .entry-footer {
  margin-top: 28px;
}

.cuihua-single-article .entry-footer > span.tags-links {
  margin-bottom: 26px;
  color: var(--cuihua-ink) !important;
  font-size: 14px;
}

.cuihua-single-article .mt-author-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 34px 0 52px;
  padding: 26px;
  border-color: var(--cuihua-line);
  background: var(--cuihua-paper);
}

.cuihua-single-article .mt-author-box::after {
  display: none;
}

.single .cuihua-single-article .mt-author-box .mt-author__avatar,
.single .cuihua-single-article .mt-author-box .mt-author-info {
  float: none;
  width: auto;
  margin: 0;
}

.cuihua-single-article .mt-author__avatar img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.single .cuihua-single-article .mt-author-box .mt-author-info .mt-author-name {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 900;
}

.single .cuihua-single-article .mt-author-box .mt-author-info .mt-author-name a {
  color: var(--cuihua-ink);
}

.cuihua-single-article .mt-author-bio,
.cuihua-single-article .mt-author-meta {
  color: var(--cuihua-muted);
  font-size: 14px;
  line-height: 1.75;
}

body.single-post .post-navigation {
  width: min(780px, 100%);
  margin: 0 0 54px;
  margin-right: auto;
  margin-left: auto;
}

body.single-post .post-navigation .nav-links {
  display: flex;
  gap: 18px;
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
  float: none;
  width: auto;
  max-width: 50%;
}

body.single-post .post-navigation .nav-next {
  margin-left: auto;
}

body.single-post .post-navigation a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid var(--cuihua-line);
  color: var(--cuihua-muted);
  font-size: 14px;
  font-weight: 700;
}

body.single-post .post-navigation a:hover,
body.single-post .post-navigation a:focus {
  border-color: var(--cuihua-accent);
  color: var(--cuihua-accent-text);
}

body.single-post .mt-single-related-posts {
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid var(--cuihua-line);
}

body.single-post .mt-related-post-title {
  margin: 0 0 24px;
  color: var(--cuihua-ink);
  font-size: 20px;
  font-weight: 900;
}

body.single-post .mt-related-posts-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

body.single-post .mt-related-posts-wrapper article {
  display: block;
  width: auto;
  margin: 0;
}

body.single-post .mt-related-posts-wrapper .post-thumbnail {
  margin-bottom: 16px;
}

body.single-post .mt-related-posts-wrapper .post-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.single-post .mt-related-posts-wrapper .entry-cat,
body.single-post .mt-related-posts-wrapper .entry-header,
body.single-post .mt-related-posts-wrapper .entry-content,
body.single-post .mt-related-posts-wrapper .entry-footer {
  padding-right: 0;
  padding-left: 0;
}

body.single-post .mt-related-posts-wrapper .entry-title {
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.45;
}

body.single-post .mt-related-posts-wrapper .entry-content {
  color: var(--cuihua-muted);
  font-size: 14px;
  line-height: 1.75;
}

body.single-post .mt-related-posts-wrapper .entry-content p {
  margin: 0 0 16px;
}

body.single-post .cuihua-single-article a:focus-visible,
body.single-post .post-navigation a:focus-visible,
body.single-post .mt-single-related-posts a:focus-visible {
  outline: 2px solid var(--cuihua-ink);
  outline-offset: 3px;
}

body.single-post.site-mode--dark .cuihua-single-article .entry-content {
  color: var(--cuihua-muted);
}

@media (max-width: 850px) {
  body.single-post .custom-header {
    margin-bottom: 32px;
    padding: 30px 0 26px;
  }

  body.single-post .mt-related-posts-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.single-post .custom-header {
    margin-bottom: 28px;
    padding: 24px 0 21px;
  }

  body.single-post .custom-header .entry-title {
    font-size: 30px;
  }

  .cuihua-single-article .post-thumbnail img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .cuihua-single-article .entry-title {
    font-size: 29px;
  }

  .cuihua-single-article .entry-content {
    font-size: 16px;
    line-height: 1.85;
  }

  .cuihua-single-article .mt-author-box {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .cuihua-single-article .mt-author__avatar img {
    width: 72px;
    height: 72px;
  }

  body.single-post .post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.single-post .post-navigation .nav-previous,
  body.single-post .post-navigation .nav-next {
    width: 100%;
    max-width: none;
    margin-left: 0;
    text-align: left;
  }

  body.single-post .post-navigation a {
    width: 100%;
  }

  body.single-post .mt-related-posts-wrapper {
    grid-template-columns: 1fr;
  }
}
