/* Cati — pàgina de Notícies. Va a sobre de vendor + cati.css + funcions.css (la targeta final). */

.nw-lead { max-width: 560px; text-wrap: pretty; }

/* featured story: the photo of everyone at the results of the second pilot */
.nw-feature { clip-path: inset(0 round 24px); }
.nw-feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center 35%; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.nw-feature:hover .nw-feature-img { transform: scale(1.02); }
.nw-feature:focus-visible { outline: 4px solid hsl(var(--blue-60) / 50%); outline-offset: 2px; }
.nw-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.28); }
.nw-story-logo { display: block; height: var(--h); width: auto; max-width: 170px; object-fit: contain; object-position: left center; }

/* media logos: wordmarks need a bit more room than the partner logos */
@media (max-width: 767px) { .nw-media .cati-logo { max-width: 92px; } }
@media (min-width: 768px) { .nw-media .cati-logo-row { gap: 24px; } .nw-media .cati-logo { max-width: 96px; } }
@media (min-width: 1024px) { .nw-media .cati-logo-row { gap: 40px; } .nw-media .cati-logo { max-width: 132px; } }
/* each logo opens that outlet's news; rows that are swapped out can't be clicked or tabbed to
   (visibility waits until the logos have faded out, and comes back at once) */
.nw-media .cati-logo-group { transition: visibility 0s; }
.nw-media .cati-logo-group[aria-hidden=true] { visibility: hidden; transition: visibility 0s linear 1.1s; }
.nw-media-link { display: block; border-radius: 8px; }
.nw-media-link .cati-logo { transition: filter 0.25s ease-out, opacity 0.25s ease-out; }
.nw-media-link:hover .cati-logo, .nw-media-link:focus-visible .cati-logo { filter: none; opacity: 1; }
.nw-media-link:focus-visible { outline: 2px solid var(--cati-green); outline-offset: 6px; }

/* list */

.nw-row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1024px) { .nw-row-title { display: block; white-space: nowrap; text-overflow: ellipsis; } .nw-row-date-m { display: none; } }
.nw-row .nw-row-go, .nw-row .nw-row-arrow { transition: color 0.15s ease-out, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.nw-row:hover .nw-row-go, .nw-row:focus-visible .nw-row-go, .nw-row:hover .nw-row-arrow, .nw-row:focus-visible .nw-row-arrow { color: hsl(var(--text-primary)); }
.nw-row:hover .nw-row-arrow, .nw-row:focus-visible .nw-row-arrow { transform: translateX(3px); }
.nw-row:focus-visible { outline: 2px solid var(--cati-green); outline-offset: 4px; border-radius: 8px; }
.nw-initial { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: hsl(var(--background-secondary)); font-size: 14px; font-weight: 600; color: hsl(var(--text-secondary)); }

@media (prefers-reduced-motion: reduce) {
  .nw-feature-img, .nw-row .nw-row-arrow { transition: none; }
}

/* bits the vendor CSS has no utility for */
.rounded-6 { border-radius: 6px; }
.group:focus-visible .max-h-0 { max-height: 48px; }
.group:focus-visible .opacity-0 { opacity: 1; }
@media (min-width: 1024px) { .nw-grid.nw-grid { grid-template-columns: 40px 200px minmax(0, 1fr) 124px 100px; } }
