/* Blog page — mobile (max-width: 768px) */

@media (max-width: 768px) {
  body.rj-blog-page {
    overflow-x: clip;
  }

  body.rj-blog-page .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .blg-hero {
    padding: 16px 0 32px;
    overflow-x: clip;
  }

  .blg-hero__grid {
    gap: 24px;
  }

  .blg-breadcrumb {
    font-size: 0.76rem;
  }

  .blg-hero__badge {
    margin-bottom: 16px;
    font-size: 0.74rem;
  }

  .blg-hero__title-line {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .blg-hero-lead {
    font-size: 0.92rem;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .blg-hero__trust li {
    font-size: 0.76rem;
  }

  .blg-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .blg-hero-actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  .blg-hero-panel {
    padding: 22px 20px 18px;
  }

  .blg-hero-featured {
    padding: 10px;
    gap: 12px;
  }

  .blg-hero-featured img,
  .blg-hero-featured-placeholder {
    width: 88px;
    height: 66px;
  }

  .blg-hero-tip .rj-btn {
    width: 100%;
    justify-content: center;
  }

  .blg-pillars {
    padding-bottom: 20px;
  }

  .blg-pillar-bar {
    grid-template-columns: 1fr;
  }

  .blg-pillar {
    padding: 16px 18px;
    border-right: none;
    border-bottom: 1px solid var(--rj-line);
  }

  .blg-pillar:last-child {
    border-bottom: none;
  }

  .blg-main {
    padding-bottom: 48px;
    overflow-x: clip;
  }

  .blg-layout {
    gap: 24px;
    min-width: 0;
    width: 100%;
  }

  .blg-content,
  .blg-sidebar {
    min-width: 0;
    width: 100%;
  }

  .blg-sidebar {
    order: 2;
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blg-content {
    order: 1;
  }

  .blg-side-card {
    padding: 18px 16px;
    box-sizing: border-box;
  }

  .blg-side-card > p {
    font-size: 0.82rem;
    overflow-wrap: break-word;
  }

  .blg-tags span {
    font-size: 0.72rem;
  }

  .blg-side-btn,
  .blg-side-link {
    width: 100%;
    box-sizing: border-box;
  }

  .blg-featured {
    margin-bottom: 28px;
  }

  .blg-featured-body h2 {
    font-size: 1.28rem;
  }

  .blg-featured-body > p {
    font-size: 0.88rem;
  }

  .blg-read-link {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    background: var(--rj-teal-soft);
    border: 1px solid rgba(188, 0, 45, 0.15);
    border-radius: 999px;
  }

  .blg-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 16px;
  }

  .blg-section-head h2 {
    font-size: 1.22rem;
  }

  .blg-card-img {
    height: 180px;
  }

  .blg-card-body {
    padding: 18px 16px 20px;
  }

  .blg-card-body h3 {
    font-size: 1rem;
  }

  .blg-card .blg-read-link {
    width: auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    justify-content: flex-start;
  }

  .blg-empty {
    padding: 36px 20px;
  }

  .blg-empty-actions {
    flex-direction: column;
    width: 100%;
  }

  .blg-empty-actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  .blg-cta {
    padding-bottom: 56px;
  }

  .blg-cta-grid {
    padding: 24px 20px;
    gap: 24px;
  }

  .blg-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .blg-cta-actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  body.rj-blog-page .topbar-left span:not(:first-child) {
    display: none;
  }
}

@media (max-width: 480px) {
  .blg-hero__title-line {
    font-size: clamp(1.75rem, 10vw, 2.15rem);
  }

  .blg-hero__trust {
    flex-direction: column;
    gap: 8px;
  }

  .blg-featured-body h2 {
    font-size: 1.18rem;
  }
}
