/* News: the list reuses the publication rows of site.css (.pub-list, .pub-row); this adds the summary, the outgoing arrow, the small picture of an item that has one and the page of one item. */

.news { padding-top: 12px; padding-bottom: 48px; }
/* The items are kept apart by more space and a darker line than the publication rows, since a picture across the row on a phone would otherwise run into the item above. */
.news-list .pub-row { padding: 28px 0; border-bottom-color: #A79ED0; }
.news-list .venue { font-size: 15px; color: var(--blue); }
.news-list .title { font-size: 19px; line-height: 1.25; }
.news-summary { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 720px; overflow-wrap: anywhere; }
/* Where an item was published, under its date: smaller than the date and in the softer text colour. It wraps inside the narrow date column, and a long single word breaks instead of overflowing it. */
.news-source { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.news-out { margin-left: 2px; color: var(--blue); }
.news-empty { padding-top: 40px; }

/* An item with a cover shows it (16:9, as the editor cropped it) across the row on a phone, above the date, and small to the right of the text on a wide screen. On a tablet it stops at 560 px, so it does not fill the screen. Items without one have no placeholder: their row is just the text. */
.news-row.has-cover { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "thumb" "venue" "main"; align-items: start; }
.news-row.has-cover .venue { grid-area: venue; }
.news-row.has-cover .pub-row-main { grid-area: main; }
.news-thumb { position: relative; grid-area: thumb; display: block; align-self: start; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-row.has-cover .news-thumb { width: 100%; max-width: 560px; margin-bottom: 12px; }

/* The page of one item: one column, with the reading width of the other detail pages. On its blue band the source takes the colour of the lead text, which is the soft one there. */
.res-head .news-source { margin-top: 4px; color: #E2DCFF; font-size: 15px; }
.news-detail { padding-top: 8px; padding-bottom: 48px; }
.news-detail .res-intro { margin-top: 24px; }
/* The cover sits above the text on every screen, whole (it is already cropped to 16:9). */
.news-cover { margin-top: 24px; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.news-cover img { display: block; width: 100%; height: auto; }
.news-cover + .res-intro { margin-top: 24px; }

@media (min-width: 900px) {
  .news { padding-top: 24px; padding-bottom: 88px; }
  /* The month sits on the first line of the title (same baseline), in a column just wide enough for "settembre 2026". */
  .news-list .pub-row { grid-template-columns: 128px minmax(0, 1fr); align-items: baseline; padding: 24px 12px; }
  .news-list .venue { font-size: 16px; }
  .news-source { font-size: 14px; }
  .news-row.has-cover { grid-template-columns: 128px minmax(0, 1fr) 232px; grid-template-areas: "venue main thumb"; column-gap: 24px; }
  .news-row.has-cover .news-thumb { margin-bottom: 0; }
  .news-list .title { font-size: 24px; }
  .news-summary { font-size: 17px; }
  .news-detail { padding-top: 24px; padding-bottom: 88px; }
  .news-cover { margin-top: 32px; }
  .news-cover + .res-intro { margin-top: 32px; }
}
