/* Homepage news only: three horizontal editorial rows; everything else remains unchanged. */
.qh section.qh-sec:has(> .qh-home-editorial-grid) .qh-home-editorial-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.qh .qh-home-editorial-grid article.qh-news,
.qh .qh-home-editorial-grid article.qh-news.qh-home-featured {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(215px, 29%) !important;
  align-items: center !important;
  gap: clamp(20px, 4vw, 65px) !important;
  min-height: 200px !important;
  margin: 0 !important;
  padding: 26px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #bed9e9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
}

.qh .qh-home-editorial-grid article.qh-news:first-child {
  border-top: 0 !important
}

.qh .qh-home-editorial-grid article.qh-news .qh-nimg {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  align-self: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: #f3f8fb !important;
}

.qh .qh-home-editorial-grid article.qh-news .qh-nimg img {
  display: block !important;
  width: 100% !important;
  height: 160px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
}

.qh .qh-home-editorial-grid article.qh-news .qh-nbody,
.qh .qh-home-editorial-grid article.qh-news.qh-home-featured .qh-nbody {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.qh .qh-home-editorial-grid article.qh-news h3,
.qh .qh-home-editorial-grid article.qh-news.qh-home-featured h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem) !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
  margin: 18px 0 0 !important;
  max-width: 90% !important;
}

.qh .qh-home-editorial-grid article.qh-news h3 a {
  color: #193467 !important;
  text-decoration: none !important
}

.qh .qh-home-editorial-grid article.qh-news h3 a:hover {
  color: #057ba9 !important;
  text-decoration: underline !important
}

.qh .qh-home-editorial-grid article.qh-news .qh-news-meta {
  font-size: .82rem !important;
  margin: 0 !important
}

.qh .qh-home-editorial-grid article.qh-news .qh-news-meta time {
  display: inline !important;
  margin: 0 !important
}

/* Compact homepage teaser only; article pages and Q-News archive retain their full content. */
.qh .qh-home-editorial-grid article.qh-news .qh-home-origin,
.qh .qh-home-editorial-grid article.qh-news .qh-nbody>p:not(.qh-home-origin),
.qh .qh-home-editorial-grid article.qh-news .qh-more {
  display: none !important
}

@media(max-width:650px) {

  .qh .qh-home-editorial-grid article.qh-news,
  .qh .qh-home-editorial-grid article.qh-news.qh-home-featured {
    grid-template-columns: minmax(0, 1fr) 35% !important;
    gap: 14px !important;
    min-height: 130px !important;
    padding: 20px 0 !important
  }

  .qh .qh-home-editorial-grid article.qh-news .qh-nimg img {
    height: 100px !important
  }

  .qh .qh-home-editorial-grid article.qh-news h3,
  .qh .qh-home-editorial-grid article.qh-news.qh-home-featured h3 {
    font-size: 1rem !important;
    max-width: none !important;
    margin-top: 10px !important
  }
}
