/* UI fix report 2026-11-15 - blog home (page 1646) */

/* 1. Top article meta: on small screens reading time gets its own line, with no leading dot */
@media (max-width: 480px) {
  .rm-pf .rm-pf-metarow > * { white-space: nowrap; }
  .rm-pf .rm-pf-featq .rm-pf-readtime { flex-basis: 100%; margin-left: 0 !important; padding-left: 0 !important; }
  .rm-pf .rm-pf-featq .rm-pf-readtime::before,
  .rm-pf .rm-pf-featq .rm-pf-hdate::after { content: none !important; display: none !important; }
}

/* 3. Mobile card rows run to the screen edge and snap in line with the heading */
@media (max-width: 767px) {
  .rm-pf .rm-pf-sec { overflow: visible !important; }
  .rm-pf .wp-block-post-template {
    max-width: none !important;
    width: auto !important;
    margin-right: calc(-1 * var(--rm-gut)) !important;
    padding-right: var(--rm-gut) !important;
    scroll-padding-left: var(--rm-gut);
    scroll-snap-type: x mandatory;
  }
  .rm-pf .wp-block-post-template > li { scroll-snap-align: start; }
}

/* 5. Tap targets of at least 44px on mobile */
@media (max-width: 767px) {
  .rm-pf .rm-pf-pills a { min-height: 44px; display: inline-flex !important; align-items: center; box-sizing: border-box; }
  .rm-pf .rm-pf-more a { display: inline-block; padding: 14px 0; margin: -14px 0; }
}

/* 6. Keep the title inside the AI Hallucinations image visible in the 16:9 crop */
.rm-pf img[src*="AI-Hallucinations-Explained"] { object-position: center bottom !important; }

/* 7. A section with a single post: show it as one wide horizontal card instead of 1/3 + empty space */
@media (min-width: 768px) {
  .rm-pf .wp-block-post-template > li:only-child { grid-column: 1 / -1; }
  .rm-pf .wp-block-post-template > li:only-child .rm-pf-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .rm-pf .wp-block-post-template > li:only-child .rm-pf-body { padding: 24px 32px !important; }
}
