/* =============================================================================
   Article single post page
============================================================================= */

/* =============================================================================
   Breadcrumb
============================================================================= */

.gos-breadcrumb {
  font-size: 14px;
  color: var(--wp--preset--color--primary-dark);
}

.gos-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.gos-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gos-breadcrumb__current,
.gos-breadcrumb__item a {
  color: var(--wp--preset--color--primary-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.gos-breadcrumb__item a:hover {
  color: var(--wp--preset--color--primary);
}

.gos-breadcrumb__sep {
  display: flex;
  align-items: center;
  color: var(--wp--preset--color--primary-dark);
}

/* =============================================================================
   Hero cover
============================================================================= */

/* Allow hyphenation for long titles in the cover block */
.wp-block-cover.gos-article-cover {
  hyphens: auto;
}

/* The cover block uses the featured image as background — ensure it covers fully */
.gos-article-hero-card {
  max-width: 800px;
  width: 100%;
}

/* =============================================================================
   Author block inside hero
============================================================================= */

.gos-article-author.wp-block-post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin-top: var(--wp--preset--spacing--40);
}

.gos-article-author .wp-block-post-author__avatar img {
  border-radius: 16px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.gos-article-author .wp-block-post-author__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gos-article-author .wp-block-post-author__name,
.gos-article-author .wp-block-post-author__bio {
  font-family: var(--wp--preset--font-family--manrope);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28px;
  color: var(--wp--preset--color--primary-dark);
  margin: 0;
}

.gos-article-author .wp-block-post-author__name {
  text-transform: uppercase;
}

/* =============================================================================
   Related posts
============================================================================= */

.gos-related-posts__title {
  font-family: var(--wp--preset--font-family--ppwatch);
  font-weight: 500;
  font-size: var(--wp--preset--font-size--xx-large);
  color: var(--wp--preset--color--primary-dark);
  margin: 0 0 var(--wp--preset--spacing--40);
  line-height: 1.15;
}

.gos-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gos-related-post {
  display: flex;
  gap: 20px;
  align-items: center;
  hyphens: auto;
}

.gos-related-post__img-wrap {
  display: block;
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--wp--preset--color--border);
  text-decoration: none;
}

.gos-related-post__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gos-related-post:hover .gos-related-post__img-wrap img {
  transform: scale(1.04);
}

.gos-related-post__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gos-related-post__title {
  font-family: var(--wp--preset--font-family--ppwatch);
  font-size: var(--wp--preset--font-size--large);
  font-weight: 500;
  line-height: 1.5;
  color: var(--wp--preset--color--primary-dark);
  margin: 0;
}

.gos-related-post__title a {
  color: inherit;
  text-decoration: none;
}

.gos-related-post__title a:hover {
  color: var(--wp--preset--color--primary);
}

.gos-related-post__date {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--muted);
  margin: 0;
}

/* =============================================================================
   Responsive
============================================================================= */

@media screen and (max-width: 1024px) {
  .gos-article-hero-card {
    max-width: 100%;
  }

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

@media screen and (max-width: 768px) {
  .wp-block-cover.gos-article-cover
    .wp-block-cover__inner-container
    .gos-article-hero-card
    .wp-block-post-title {
    font-size: var(--wp--preset--font-size--xx-large) !important;
  }

  .gos-related-posts__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gos-related-post__img-wrap {
    width: 140px;
    height: 140px;
  }

  .gos-related-post__title {
    font-size: var(--wp--preset--font-size--medium) !important;
  }
}
