/* =====================================================================
   Astra Travel — Single post + default single (blog reading layout)
   Uses the unified --ast-* design tokens (see style.css :root).
   ===================================================================== */
.ast-single {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: 48px 20px 64px;
  box-sizing: border-box;
  color: var(--ast-ink);
}

/* ── Title (shared) ── */
.ast-single__title,
.ast-post__title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ast-dark);
}

.ast-single__header {
  margin-bottom: 24px;
}

/* ── Post header ── */
.ast-post__header {
  margin-bottom: 28px;
}

.ast-post__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ast-post__cat {
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ast-accent);
  background: rgba(194, 146, 46, 0.12);
  border-radius: 999px;
  text-decoration: none;
  transition: 0.2s ease;
}

.ast-post__cat:hover {
  background: var(--ast-accent);
  color: #fff;
}

/* ── Meta row (author / date / comment count) ── */
.ast-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ast-line);
  font-size: 0.88rem;
  color: var(--ast-muted);
}

.ast-post__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ast-muted);
  text-decoration: none;
}

.ast-post__meta-item svg {
  width: 17px;
  height: 17px;
  color: var(--ast-accent);
  flex: none;
}

.ast-post__author:hover,
.ast-post__comments-link:hover {
  color: var(--ast-accent);
}

/* ── Featured image ── */
.ast-post__featured {
  margin: 0 0 30px;
  border-radius: var(--ast-radius);
  overflow: hidden;
}

.ast-post__featured-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── Content typography (shared) ── */
.ast-single__content,
.ast-post__content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
}

.ast-single__content > *,
.ast-post__content > * {
  margin-block: 0 1.3em;
}

.ast-single__content :is(h2, h3, h4),
.ast-post__content :is(h2, h3, h4) {
  margin-block: 1.6em 0.6em;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ast-dark);
}

.ast-single__content h2,
.ast-post__content h2 {
  font-size: 1.6rem;
}

.ast-single__content h3,
.ast-post__content h3 {
  font-size: 1.3rem;
}

.ast-single__content h4,
.ast-post__content h4 {
  font-size: 1.1rem;
}

.ast-single__content a,
.ast-post__content a {
  color: var(--ast-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ast-single__content img,
.ast-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ast-radius-sm);
}

.ast-single__content :is(ul, ol),
.ast-post__content :is(ul, ol) {
  padding-inline-start: 1.4em;
}

.ast-single__content li,
.ast-post__content li {
  margin-bottom: 0.5em;
}

.ast-single__content blockquote,
.ast-post__content blockquote {
  margin-inline: 0;
  border-radius: var(--ast-radius-sm);
}

/* wp_link_pages (multi-page posts) */
.ast-single__pages,
.ast-post__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 700;
}

.ast-single__pages a,
.ast-post__pages a {
  padding: 4px 12px;
  background: var(--ast-soft);
  border-radius: 8px;
  color: var(--ast-ink);
  text-decoration: none;
}

/* ── Tags ── */
.ast-post__tagwrap {
  margin-top: 32px;
}

.ast-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ast-post__tags li {
  margin: 0;
}

.ast-post__tags a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--ast-muted);
  background: var(--ast-soft);
  border: 1px solid var(--ast-line);
  border-radius: 999px;
  text-decoration: none;
  transition: 0.2s ease;
}

.ast-post__tags a:hover {
  color: var(--ast-accent);
  border-color: var(--ast-accent);
}

/* ── Comments ── (the form/list themselves are styled globally in style.css) */
.ast-single__comments,
.ast-post__comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ast-line);
}

.comment-reply-title {
  margin: 0 0 16px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ast-dark);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .ast-single {
    padding: 32px 16px 48px;
  }
  .ast-post__meta {
    gap: 12px;
  }
}
