/* News listing layout; exposed-filter rail styling below. */
.gt-listing { max-width: var(--gt-maxw); margin: 0 auto; }
/* Result summary sits between the title and the grid. */
.gt-listing__count,
.gt-listing .view-header { margin: 0 0 var(--gt-space-6); font-size: var(--gt-text-sm); color: var(--gt-ink-2); }
.gt-listing__count strong,
.gt-listing .view-header strong { color: var(--gt-ink); }

/* Two-column shell — filter rail beside the card rows. */
.gt-listing__grid { display: grid; grid-template-columns: 268px 1fr; gap: 44px; align-items: start; }
/* Rail tracks the scroll under the sticky header. */
.gt-facets { position: sticky; top: 150px; }
.gt-listing__list { min-width: 0; }
/* Row rhythm between the horizontal cards. */
.gt-listing__list > .views-row + .views-row,
.gt-listing__list .gt-card + .gt-card { margin-top: var(--gt-space-4); }
.gt-listing__empty { color: var(--gt-ink-2); }
/* Centred pagination under the results (matches the search page). */
.gt-listing .gt-pagination { justify-content: center; margin-top: var(--gt-space-8); }

/* Listing rows: fixed thumbnail on the horizontal card, uncropped ratio. */
.gt-listing .gt-card--row .gt-card__media { width: 200px; flex: 0 0 200px; aspect-ratio: auto; }

/* Keyword search sits above the Type/Year facets in the rail — mirrors the
   /search bar: search icon inside the field, no label, no submit button. Facets
   themselves reuse the gt-facetgroup/gt-check styling from search.css. */
.gt-listing .gt-newsbar { margin-bottom: var(--gt-space-5); }
.gt-listing .gt-newsbar .form-item { flex: 1; margin: 0; }
/* Label is the field's accessible name — hidden visually, kept for assistive tech. */
.gt-listing .gt-newsbar label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gt-listing .gt-newsbar input[type="text"],
.gt-listing .gt-newsbar input[type="search"] {
  width: 100%; min-height: var(--gt-control-h); padding: 0 14px 0 42px;
  font-family: var(--gt-font-body); font-size: var(--gt-text-sm); color: var(--gt-ink);
  background: var(--gt-surface); border: var(--gt-border-width-strong) solid var(--gt-border-2);
  border-radius: var(--gt-radius-input); transition: border-color .15s, box-shadow .15s;
}
.gt-listing .gt-newsbar input:hover { border-color: var(--gt-ink-3); }
.gt-listing .gt-newsbar input:focus { outline: none; border-color: var(--gt-primary); box-shadow: 0 0 0 3px var(--gt-primary-soft); }

/* Collapse to one column; the rail unpins and stacks above the list. */
@media (max-width: 860px) {
  .gt-listing__grid { grid-template-columns: 1fr; gap: 28px; }
  .gt-facets { position: static; }
}
/* Narrow rows stack: full-width 16/9 media over the body. */
@media (max-width: 560px) {
  .gt-listing .gt-card--row { flex-direction: column; }
  .gt-listing .gt-card--row .gt-card__media { width: 100%; flex: none; aspect-ratio: 16 / 9; }
}
