/* Posts index: compact editorial list with text on the left and visual on the right. */
.qs-post-list {
  width: min(980px, 100%);
  margin: 0 auto;
}

.qs-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 170px;
  padding: 1.65rem 0 2rem;
}

.qs-post-row + .qs-post-row {
  border-top: 1px solid rgba(49, 79, 96, .10);
}

.qs-post-copy {
  min-width: 0;
}

.qs-post-copy h2 {
  margin: 0;
  color: var(--qs-ocean-deep);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.qs-post-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.qs-post-copy h2 a:hover,
.qs-post-copy h2 a:focus-visible {
  color: var(--qs-ocean-mid);
  text-decoration: underline;
  text-underline-offset: .14em;
}

.qs-post-summary {
  max-width: 710px;
  margin: .42rem 0 0;
  color: var(--qs-ink);
  font-size: 1rem;
  line-height: 1.48;
}

.qs-post-author {
  margin: .9rem 0 0;
  color: var(--qs-ink-soft);
  font-size: .82rem;
  line-height: 1.25;
}

.qs-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  align-items: center;
  margin: .35rem 0 0;
  color: var(--qs-muted);
  font-size: .82rem;
  line-height: 1.25;
}

.qs-post-thumb {
  display: grid;
  place-items: center;
  width: 190px;
  height: 120px;
  overflow: hidden;
  border-radius: .35rem;
  background: #fff;
  text-decoration: none;
}

.qs-post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qs-post-thumb-fallback {
  border: 1px solid var(--qs-border);
  background: var(--qs-panel);
  color: var(--qs-ocean-mid);
}

.qs-post-thumb-fallback span {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.05em;
}

@media (max-width: 760px) {
  .qs-post-row {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 1rem;
    min-height: 145px;
    padding: 1.25rem 0 1.55rem;
  }

  .qs-post-copy h2 {
    font-size: 1.22rem;
  }

  .qs-post-summary {
    font-size: .9rem;
    line-height: 1.4;
  }

  .qs-post-author,
  .qs-post-meta {
    font-size: .76rem;
  }

  .qs-post-thumb {
    width: 104px;
    height: 82px;
  }
}

@media (max-width: 520px) {
  .qs-post-row {
    grid-template-columns: 1fr;
  }

  .qs-post-thumb {
    grid-row: 1;
    width: 132px;
    height: 88px;
    justify-self: start;
  }
}
