/* Inline names share a row; live scores form a separate, centered pair below it.
   The DOM keeps each score associated with its team, including RTL layouts. */
html[data-teams='inline'] .ev-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px 8px; align-items: center; }
html[data-teams='inline'] .ev-teams > .ev-team { display: contents; }
html[data-teams='inline'] .ev-teams > .ev-team + .ev-team::before { content: none; }
html[data-teams='inline'] .ev-teams > .ev-team > .team-heading { grid-row: 1; width: 100%; max-width: 100%; justify-content: flex-start; }
html[data-teams='inline'] .ev-teams > .ev-team:first-child > .team-heading { grid-column: 1; flex-direction: row-reverse; }
html[data-teams='inline'] .ev-teams > .ev-team:last-child > .team-heading { grid-column: 3; flex-direction: row; }
html[data-teams='inline'] .ev-teams::before { content: '–'; grid-area: 1 / 2; color: var(--muted); }
html[data-teams='inline'] .ev-teams > .ev-team > .score { position: static; grid-row: 2; line-height: 1.35; }
html[data-teams='inline'] .ev-teams > .ev-team:first-child > .score { grid-column: 1; justify-self: end; }
html[data-teams='inline'] .ev-teams > .ev-team:last-child > .score { grid-column: 3; justify-self: start; }
html[data-teams='inline'] .ev-teams:has(> .ev-team > .score)::after { content: '–'; grid-area: 2 / 2; color: var(--muted); }
@media (max-width: 540px) {
  html[data-teams='inline'] [data-testid='event-list'] .ev .ev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 6px; align-items: center; }
  html[data-teams='inline'] [data-testid='event-list'] .ev-head > .ev-link { grid-area: 1 / 1 / span 2; display: flex; }
  html[data-teams='inline'] [data-testid='event-list'] .ev-head > .en-toggle { grid-area: 1 / 2; position: relative; justify-self: center; }
  html[data-teams='inline'] [data-testid='event-list'] .ev-head > .ev-more { grid-area: 2 / 2; }
  html[data-teams='inline'] [data-testid='event-list'] .ev-head:not(:has(> .en-toggle)) > .ev-more { grid-row: 1 / span 2; }
  html[data-teams='inline'] .ev-teams > .ev-team > .team-heading { align-self: stretch; gap: 3px; }
  html[data-teams='inline'] .ev-teams .nm-l { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
}
