/* news-reviews.css
   News page (news-reviews.html): thumbnail on the left, title and summary in the middle, audio brief on the right.
   Needs theme.css, page-shell.css, lists.css, mini-player.css and play-marks.css. */

.news-list { display: grid; align-content: start; }
.news-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) 122px; gap: 20px; align-items: start; padding: 10px 4px; border-bottom: 1px solid var(--line); border-radius: 6px; transition: background-color 150ms ease; }
.news-item:hover { background-color: var(--hover-gold); }
.news-label { margin: 0 0 6px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.news-thumb { display: block; width: 112px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(214, 226, 255, .18); border-radius: 7px; background: #111a29; }
.news-thumb:hover, .news-thumb:focus-visible { border-color: rgba(132, 200, 237, .75); }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-text { min-width: 0; }
/* Title on the left, date far right on the same line. On a phone the date drops under the title. */
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.news-title { display: block; margin: 0; color: #fff; font-size: 16px; line-height: 1.35; text-decoration: none; }
.news-head .news-title { flex: 1 1 auto; min-width: 0; }
.news-title:hover, .news-title:focus-visible { color: var(--orange); }
.news-date { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; } /* same size as the date on the video list */
.news-summary { margin: 5px 0 0; color: #d5dce8; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.news-audio { min-width: 0; }
/* Compact audio player for the news rows */
.news-item .mini-player { width: 105px; gap: 3px; }
.news-item .audio-progress { flex: 1 1 20px; width: auto; min-width: 20px; }
.news-item .audio-time { font-size: 9px; }
.news-item .audio-menu-toggle { width: 18px; }

/* Phone: thumbnail and title on top, the date under the thumbnail and a play button at the right end of that line.
   The summary runs the full width underneath. The labels, seek bar, time and speed menu are left out. */
@media (max-width: 560px) {
  .news-item { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "thumb title title" "date date audio" "summary summary summary"; gap: 4px 12px; padding: 8px 2px; }
  .news-text, .news-head { display: contents; } /* so the title, date and summary can each take their own place in the grid */
  .news-thumb-wrap { grid-area: thumb; }
  .news-label { display: none; }
  .news-thumb { width: 96px; }
  .news-title { grid-area: title; font-size: 14px; }
  .news-date { grid-area: date; align-self: center; justify-self: start; font-size: 12px; }
  .news-audio { grid-area: audio; align-self: center; justify-self: end; }
  .news-summary { grid-area: summary; margin-top: 4px; font-size: 12px; }
  .news-item .mini-player { width: auto; min-height: 0; }
  .news-item .audio-progress, .news-item .audio-time, .news-item .audio-menu-wrap { display: none; }
  /* The plain play button has no circle. It uses the same logo marks as everywhere else (see play-marks.css), a little larger. */
  .news-item .audio-play, .news-item .audio-play:hover, .news-item .audio-play:focus-visible { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; --mark-w: 19px; --mark-h: 17px; --mark-nudge: 1px; }
  .news-item .audio-play[title="Pause"] { --mark-w: 15px; --mark-h: 15px; --mark-nudge: 0px; }
  .news-item .audio-play::after { content: ""; position: absolute; inset: -10px; } /* a larger tap area around the button */
  .news-item .audio-na { font-size: 10px; }
}
