/* League Feed and its story page (league-feed.html, league-story.html; the app's feed-screen.tsx). */
.feed-heading p { color: var(--secondary); font-size: 13px; }
.feed-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; }
.feed-count { color: var(--secondary); font-size: 12px; }
.feed-pagination nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.feed-pagination .plain-button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.feed-stories { display: grid; }
.feed-story { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feed-story .logo-wrap { width: 40px; height: 40px; }
.feed-story-body { display: grid; gap: 4px; min-width: 0; }
.feed-kicker { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--secondary); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.feed-kind { color: var(--accent); }
.feed-story h3 { font-size: 21px; line-height: 1.15; }
.feed-story h3 a { color: inherit; text-decoration: none; }
.feed-story h3 a:hover, .feed-story h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.feed-summary { color: var(--ink); font-size: 15px; line-height: 1.4; }
.feed-game { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 32px; color: var(--secondary); font-size: 13px; font-weight: 600; }
.feed-game svg { width: 14px; height: 14px; flex: 0 0 14px; }
.feed-game .team-control-marker svg { width: 12px; height: 12px; flex-basis: 12px; }
.feed-game:hover span, .feed-game:focus-visible span { text-decoration: underline; text-underline-offset: 2px; }
/* Attribution on every card and article, at the end of its top line: the stories are EA's. */
.feed-kicker { align-items: center; }
.feed-source { margin-left: auto; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0; line-height: 1.4; text-transform: none; white-space: nowrap; }

.story-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 6px; color: var(--secondary); font-size: 14px; font-weight: 700; }
.story-back svg { width: 16px; height: 16px; }
.story { display: grid; gap: 18px; }
.story-header { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.story-header h2 { font-size: 34px; line-height: 1.05; }
.story-dek { font-size: 17px; line-height: 1.4; }
.story-game { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: inherit; text-decoration: none; }
.story-game:hover, .story-game:focus-visible { border-color: var(--ink); }
.story-game-teams { display: grid; gap: 8px; flex: 1 1 260px; }
.story-game-team { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.story-game-team .logo-wrap { width: 32px; height: 32px; }
.story-game-name { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; font-weight: 700; }
.story-game-name small { color: var(--secondary); font-size: 12px; font-weight: 600; }
.story-game-team b { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--secondary); }
.story-game-team.winner b { color: var(--ink); }
.story-game-status { display: grid; justify-items: end; gap: 4px; color: var(--secondary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.story-game-status span { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); text-transform: none; letter-spacing: 0; }
.story-game-status svg { width: 16px; height: 16px; }
.story-text { display: grid; gap: 12px; font-size: 17px; line-height: 1.6; }
.story-panel h3 { margin-bottom: 8px; font-size: 20px; }
/* Two or four columns: these tables size to their content instead of the shared table minimum. */
.league-table.story-table { min-width: 0; }
.story-table th, .story-table td { height: 40px; padding: 0 12px; font-size: 14px; }
.story-table thead th { font-size: 12px; }
.story-table tbody th { font-weight: 600; text-align: left; }
.story-school { display: inline-flex; align-items: center; gap: 6px; }
.story-school .logo-wrap { width: 20px; height: 20px; }
.story-more { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.story-more li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.story-more a { font-weight: 700; }
.story-more span { color: var(--secondary); font-size: 13px; }
/* The player page's Feed section. */
.player-feed { margin-top: 20px; }
/* The game page's list of its stories. */
.game-stories { margin: 16px 0; }
.game-stories h2 { margin-bottom: 6px; font-size: 20px; }

@media (max-width: 640px) {
  .feed-story { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .feed-story .logo-wrap { width: 32px; height: 32px; }
  .feed-story h3 { font-size: 19px; }
  .feed-kicker { gap: 4px 6px; font-size: 11px; }
  .feed-source { padding: 1px 5px; font-size: 10px; }
  .story-header h2 { font-size: 28px; }
  .story-dek, .story-text { font-size: 16px; }
  .story-game-status { justify-items: start; }
}
