/* =============================================
   Practice Blog Page — blog-specific styles
   pb- prefix for blog-only elements.
   Shared layout (sp-breadcrumb, sp-hero, sp-layout, sp-sidebar,
   sp-article, sp-practice-card, sp-ratings, sp-cta-mobile,
   sp-back-link) comes from specialty-page.css via the library.
   ============================================= */

/* Reveal page once this stylesheet has loaded (prevents FOUC) */
.node--type-practice-blog #page-wrapper {
  opacity: 1 !important;
  transition: opacity 0.2s ease;
}

/* Hide Drupal default page title on blog pages */
.node--type-practice-blog .block-page-title-block,
.node--type-practice-blog #page-title {
  display: none !important;
}
.node--type-practice-blog article {
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

/* ── Article image (inside sp-article, below h1) ── */
.pb-article-image {
  margin: 0 0 20px;
  border-radius: 10px;
  overflow: hidden;
}
.pb-article-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ── Author block (avatar + name/role + date, inside sp-article) ── */
.pb-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sp-font, "Poppins", "Plus Jakarta Sans", sans-serif);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sp-line, #e3ecf1);
}
.pb-author__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.pb-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pb-author__name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pb-author__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sp-navy, #0e2a47);
  text-decoration: none;
  line-height: 1.3;
}
.pb-author__name:hover {
  color: var(--sp-teal, #00a9c1);
}
.pb-author__role {
  font-size: 0.78rem;
  color: var(--sp-muted, #5d6b7a);
  font-weight: 500;
}
.pb-author__date-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--sp-muted, #5d6b7a);
}
.pb-author__date-line time {
  color: var(--sp-muted, #5d6b7a);
}
.pb-meta__sep {
  color: #b0bcc7;
}
.pb-author__practice {
  color: var(--sp-teal, #00a9c1);
  text-decoration: none;
  font-weight: 500;
}
.pb-author__practice:hover {
  text-decoration: underline;
}

/* ── Desktop: back-link sits in content column ── */
.pb-layout > .sp-back-link {
  grid-column: 1;
}

/* ── Responsive ── */

/* Tablet: reorder — article → back link → practice card → CTA */
@media (max-width: 960px) {
  .pb-layout {
    display: flex;
    flex-direction: column;
  }
  .pb-layout > .sp-content   { order: 1; }
  .pb-layout > .sp-back-link { order: 2; }
  .pb-layout > .sp-sidebar   { order: 3; padding-top: 0; }
  .pb-layout > .sp-cta-mobile { order: 4; }

  .pb-article-image img {
    max-height: 280px;
  }
}

@media (max-width: 600px) {
  .pb-article-image img {
    max-height: 200px;
    border-radius: 8px;
  }
  .pb-author {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 16px;
  }
  .pb-author__avatar {
    width: 38px;
    height: 38px;
  }
  .pb-author__name {
    font-size: 0.85rem;
  }
  .pb-author__role {
    font-size: 0.72rem;
  }
  .pb-author__date-line {
    font-size: 0.75rem;
  }
}
