.rd-live-feed {
  --rd-feed-paper: var(--surface-content, #fff);
  --rd-feed-ink: var(--surface-text, #203142);
  --rd-feed-muted: var(--surface-muted, #617286);
  --rd-feed-rule: var(--surface-line, #dfe5ec);
  --rd-feed-time: #165b98;
  color: var(--rd-feed-ink);
  font-family:var(--rd-font-article,"Source Sans 3",Arial,sans-serif);
  margin: 0 0 20px;
  overflow-wrap: anywhere;
  padding: 16px clamp(15px, 4.7%, 41px) 10px;
}

html[data-theme=dark] .rd-live-feed { --rd-feed-time: #99caff; }

.rd-live-feed .rd-live-head {
  align-items: center;
  border-bottom: 1px solid var(--rd-feed-rule);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 44px;
  padding-bottom: 8px;
}

.rd-live-feed h2, .rd-live-feed h3 {
  color: inherit;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.rd-live-feed h2 { font-size: 23px; letter-spacing: -.04em; line-height: 1.3; }
.rd-live-feed h3 { font-size: 18px; letter-spacing: -.025em; line-height: 1.24; margin-bottom: 4px; }

.rd-live-feed .rd-live-comments {
  align-items: center;
  border-radius: 6px;
  color: var(--rd-feed-ink);
  display: inline-flex;
  flex: none;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  margin-right: -3px;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 6px;
  text-decoration: none;
}

.rd-live-feed .rd-live-comments svg { height: 19px; width: 19px; }
.rd-live-feed .rd-live-comments:hover { background: var(--surface-subtle, #f6f8fb); color: var(--rd-feed-time); }
.rd-live-feed a:focus-visible { outline: 2px solid var(--rd-feed-time); outline-offset: 2px; }
.rd-live-feed .rd-live-empty { color: var(--rd-feed-muted); font-size: 14px; margin: 16px 0; }
.rd-live-feed [hidden] { display: none; }

.rd-live-feed [data-live-entries] {
  --rd-feed-date-width: 74px;
  --rd-feed-rail-width: 20px;
  --rd-feed-gap: 9px;
  --rd-feed-pad: 16px;
  --rd-feed-node-y: calc(var(--rd-feed-pad) + 10px);
  --rd-feed-node-x: calc(var(--rd-feed-date-width) + var(--rd-feed-gap) + var(--rd-feed-rail-width) / 2);
}

.rd-live-feed .rd-live-entry {
  border-bottom: 1px solid var(--rd-feed-rule);
  column-gap: var(--rd-feed-gap);
  display: grid;
  grid-template-columns: var(--rd-feed-date-width) var(--rd-feed-rail-width) minmax(0, 1fr);
  margin: 0;
  padding: var(--rd-feed-pad) 0;
  position: relative;
}

.rd-live-feed .rd-live-entry:last-of-type { border-bottom: 0; }

.rd-live-feed .rd-live-entry::before, .rd-live-feed .rd-live-entry::after {
  box-sizing: border-box;
  content: "";
  left: var(--rd-feed-node-x);
  position: absolute;
}

.rd-live-feed .rd-live-entry::before {
  background: var(--rd-live-category, #267786);
  bottom: -1px;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
}

.rd-live-feed .rd-live-entry:first-of-type::before { top: var(--rd-feed-node-y); }
.rd-live-feed .rd-live-entry:last-of-type::before { bottom: auto; height: var(--rd-feed-node-y); }
.rd-live-feed .rd-live-entry:only-of-type::before { content: none; }

.rd-live-feed .rd-live-entry::after {
  background: var(--rd-feed-paper);
  border: 2px solid var(--rd-live-category, #267786);
  border-color: color-mix(in srgb, var(--rd-live-category, #267786) 76%, var(--rd-feed-paper));
  border-radius: 50%;
  height: 9px;
  top: var(--rd-feed-node-y);
  transform: translate(-50%, -50%);
  width: 9px;
}

.rd-live-feed .rd-live-entry:first-of-type::after {
  border-color: var(--rd-live-highlight, #E30613);
  box-shadow: 0 0 0 2px var(--rd-feed-paper), 0 0 0 4px var(--rd-live-highlight, #E30613);
  height: 8px;
  width: 8px;
}

.rd-live-feed .rd-live-when {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-column: 1;
}

.rd-live-feed time { display: block; font-variant-numeric: tabular-nums; line-height: 1.28; }
.rd-live-feed time strong { color: var(--rd-feed-time); display: block; font-size: 16px; font-weight: 700; }
.rd-live-feed time span { color: var(--rd-feed-muted); display: block; font-size: 11px; white-space: nowrap; }
.rd-live-feed .rd-live-copy { grid-column: 3; min-width: 0; }
.rd-live-feed .rd-live-copy p { color: inherit; font-size: 14px; line-height: 1.5; margin: 0; }
.rd-live-feed .rd-live-edited { color: var(--rd-feed-muted); display: block; font-size: 12px; line-height: 1.35; margin: 0 0 5px; }

.rd-live-feed .rd-live-photo {
  background: var(--rd-feed-rule);
  border: 0;
  border-radius: 4px;
  display: block;
  height: 48px;
  overflow: hidden;
  position: relative;
  width: 72px;
}

.rd-live-feed .rd-live-photo img { border-radius: 0; display: block; height: 48px; margin: 0; object-fit: cover; width: 72px; }

.rd-live-feed .rd-live-photo-count {
  background: rgb(13 25 39 / 85%);
  border-radius: 3px;
  bottom: 2px;
  color: #fff;
  font:700 11px/1.2 "Source Sans 3",Arial,sans-serif;
  padding: 3px 4px;
  position: absolute;
  right: 2px;
}

@media (max-width: 600px) {
  .rd-live-feed { margin-bottom: 10px; padding: 8px 13px 9px; }
  .rd-live-feed .rd-live-head { padding-bottom: 4px; }
  .rd-live-feed h2 { font-size: 19px; }
  .rd-live-feed h3 { font-size: 16px; }
  .rd-live-feed [data-live-entries] {
    --rd-feed-date-width: 72px;
    --rd-feed-rail-width: 16px;
    --rd-feed-gap: 7px;
    --rd-feed-pad: 13px;
    --rd-feed-node-y: calc(var(--rd-feed-pad) + 9px);
  }
}
.rd-live-feed .rd-live-sponsor {
  display: grid;
  grid-template-columns: var(--rd-feed-date-width) var(--rd-feed-rail-width) minmax(0, 1fr);
  column-gap: var(--rd-feed-gap);
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--rd-feed-rule);
  color: var(--rd-feed-ink);
  overflow-wrap: anywhere;
}
.rd-live-feed .rd-live-sponsor-label {
  grid-column: 1;
  color: var(--rd-feed-ink);
  font-family:var(--rd-font-ui,"Source Sans 3",Arial,sans-serif);
  font-weight: 750;
  font-size: 11px;
  letter-spacing: .045em;
}
.rd-live-feed .rd-live-sponsor-rail { position: relative; align-self: stretch; grid-column: 2; }
.rd-live-feed .rd-live-sponsor:not(:last-child) .rd-live-sponsor-rail::before {
  content: "";
  position: absolute;
  inset: 0 auto -1px 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--rd-live-category, #456d83);
}
body.rd-flat-public .rd-live-feed .rd-live-sponsor-name {
  display: block;
  justify-self: start;
  grid-column: 3;
  min-width: 0;
  margin: 3px 0;
  padding: 9px 0;
  background: transparent;
  color: #c31520;
  font:750 16px/1.4 var(--rd-font-ui,"Source Sans 3",Arial,sans-serif);
  text-decoration: none;
}
html[data-theme=dark] body.rd-flat-public .rd-live-feed .rd-live-sponsor-name { color: #ff737a; }
body.rd-flat-public .rd-live-feed .rd-live-sponsor-name[href]:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}
.rd-live-sponsor-external { margin-inline-start: 5px; font-size: .9em; }
.rd-live-sponsor-name:not([href]) .rd-live-sponsor-external { display: none; }
@media (pointer: coarse) {
  body.rd-flat-public .rd-live-feed .rd-live-sponsor-name[href] { min-height: 44px; align-content: center; }
}
