/**
 * Single post — layout, sidebar, featured image, TOC, consultation CTA.
 *
 * @package aldoctorz-theme
 */

body.single-post .alz-single-post__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 40px;
  align-items: start;
  padding: 32px 0 16px;
}

body.single-post .alz-single-post__main {
  min-width: 0;
}

body.single-post .alz-single-post__sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Featured image — top of content */
body.single-post .alz-single-post__featured {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(10, 48, 94, 0.05),
    0 16px 40px rgba(10, 48, 94, 0.12);
  aspect-ratio: 16 / 9;
  background: var(--featured-light, #f8fafc);
}

body.single-post .alz-single-post__featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar banners — see single-post-banners.css */

/* Table of contents */
body.single-post .alz-post-toc__card {
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(10, 48, 94, 0.1);
  box-shadow: 0 4px 16px rgba(10, 48, 94, 0.06);
}

body.single-post .alz-post-toc__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--featured-primary, #0a305e);
}

body.single-post .alz-post-toc__title i {
  color: var(--featured-accent, #34c3db);
}

body.single-post .alz-post-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}

body.single-post .alz-post-toc__item {
  margin: 0 0 6px;
}

body.single-post .alz-post-toc__item--h3 {
  padding-inline-start: 14px;
}

body.single-post .alz-post-toc__link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--featured-gray, #64748b);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

body.single-post .alz-post-toc__link:hover,
body.single-post .alz-post-toc__link.is-active {
  background: rgba(52, 195, 219, 0.12);
  color: var(--featured-primary, #0a305e);
  font-weight: 600;
}

/* FAQ in main column */
body.single-post .alz-single-post__faq {
  margin-top: 40px;
}

@media (max-width: 991.98px) {
  body.single-post .alz-single-post__layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
  }

  body.single-post .alz-single-post__sidebar {
    position: static;
    order: 2;
  }

  body.single-post .alz-single-post__main {
    order: 1;
  }

  body.single-post .alz-post-toc__list {
    max-height: none;
  }

}

@media (max-width: 575.98px) {
  body.single-post .alz-single-post__featured {
    margin-bottom: 24px;
    border-radius: 12px;
  }
}