.homepage.news-page > header,
.news-page .home-intro {
  background-image: url('/assets/images/branding/scratchcard-gameshow-header-background-repeat-original.webp');
  background-size: max(100%, 1200px) auto;
}
@media (max-width: 640px) {
  .homepage.news-page > header,
  .news-page .home-intro { background-size: 950px auto; }
}

.news-entry {
  --news-entry-padding: clamp(10px, 2vw, 20px);
  --news-entry-gap: clamp(10px, 2vw, 24px);
  display: flex;
  align-items: start;
  gap: var(--news-entry-gap);
  padding: var(--news-entry-padding);
  border-radius: 8px;
}
.news-main { background: #030d36; color: white; }
.news-history .rail-head h2 { color: var(--home-gold); }
.news-timeline .lowdown-event-icon { color: var(--home-gold); }
.news-timeline .lowdown-event-claim { background: var(--home-gold); }
.news-entry:not(.lowdown-event-highlight) { background: #15214c; color: white; }
.news-art { width: clamp(58px, 19vw, 160px); margin-bottom: 0; }
.news-entry > .lowdown-event-copy { min-width: 0; }
.news-status { color: inherit; text-decoration: none; }
.news-status:focus-visible :is(strong, .timeline-headline) { text-decoration: underline; text-underline-offset: .18em; }
.news-entry .lowdown-event-copy > :is(span, .timeline-detail),
.news-entry time { color: inherit; }
.news-history .news-timeline > li[id]:last-child::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 36px;
  bottom: 0;
  border-left: 2px solid #64759e;
}
@media (max-width: 480px) {
  .news-history .news-timeline > li[id]:last-child::before { left: 8px; top: 27px; }
  .news-timeline > li { padding-left: 28px; }
  .news-timeline > li:not(:last-child)::before { left: 8px; top: 27px; }
  .news-timeline .lowdown-event-icon { width: 18px; height: 18px; }
}

.news-roundup { display: grid; gap: 8px; padding-bottom: 0; }
.news-roundup h3 { color: var(--home-gold); font-size: 1.2rem; }
.news-roundup p, .news-roundup ul { margin: 0; }
.news-roundup p { padding-bottom: 12px; }
.news-roundup ul { list-style: none; padding: 0; }
.news-timeline .news-roundup li {
  padding: 0;
  border-top: 1px solid #64759e55;
}
.news-group-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px var(--news-entry-gap);
  padding: var(--news-entry-padding) 0;
}
.news-timeline .news-roundup li::before { content: none; }
.news-group-name { flex: 1 1 90px; min-width: 0; display: grid; gap: 4px; }
.news-group-title { display: flex; align-items: center; gap: 6px; }
.news-group-detail { font-size: 1rem; font-weight: 400; }
.news-status :is(strong, h3.timeline-headline), .news-roundup li { font-size: 1.2rem; font-weight: 700; }
.news-entry .game-price { display: inline-block; font-size: .96rem; }
.news-roundup strong { white-space: nowrap; }

.news-entry.news-release { background: #1536b8; }

.news-timeline > .news-record-note {
  padding-bottom: 20px;
  font-size: .85rem;
  color: #cbd5ef;
}
.news-timeline > .news-record-note::before { content: none; }

@media (max-width: 760px) {
  .news-entry {
    --news-entry-padding: clamp(14px, calc(2vw + 4px), 24px);
    --news-entry-gap: clamp(14px, calc(2vw + 4px), 28px);
  }
  .news-roundup :is(.news-remaining-detail, .news-closure-detail) { display: none; }
  .news-roundup:not(.news-release, .closed) .news-group-link { font-size: 1rem; }
  .news-roundup:not(.news-release, .closed) .game-price { font-size: .8rem; }
}

.news-roundup.closed h3, .news-roundup.closed .game-price { color: inherit; }
.news-roundup.closed .game-price { background: #dce0e4; }

.home-news-promo .rail-head p { color: #cbd5ef; }
.home-news-promo .rail-link { color: var(--home-gold); }

.home-news-promo .news-timeline > li::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 36px;
  bottom: 0;
  border-left: 2px solid #64759e;
}

@media (max-width: 480px) {
  .home-news-promo .news-timeline > li::before { left: 8px; top: 27px; }
}

.news-entry.news-episode {
  align-items: stretch;
  border: 1.5px solid #0033ff;
  background: #101e54;
  background-image: linear-gradient(#07134266, #07134288), url('/assets/images/branding/scratchcard-gameshow-header-background-repeat-original.webp');
  background-position: center top;
  background-size: auto, auto 250px;
}
.news-entry.news-episode:is(:hover, :focus-within) {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}
.news-episode .news-art { flex: none; width: clamp(116px, 38vw, 320px); border: 1.5px solid #0033ff; border-radius: 6px; }
.news-history .news-timeline time { font-size: 1rem; }
.news-episode .lowdown-event-copy > :is(.news-episode-label, strong, .timeline-headline) { color: var(--home-gold); }
.news-episode-label { font-size: 1.2rem; font-weight: 700; }
.news-episode.news-status :is(strong, h3.timeline-headline) { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

.news-episode > .lowdown-event-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 760px) {
  .news-episode { flex-direction: column; }
  .news-episode .news-art { width: 100%; }
  .news-episode-label { font-size: 1rem; }
  .news-episode.news-status :is(strong, h3.timeline-headline) { font-size: 1.2rem; }
  .news-title-break { display: none; }
}

@media (width > 760px) {
  .news-episode .news-episode-label,
  .news-episode.news-status :is(strong, h3.timeline-headline) { padding-top: 8px; }
}

.news-timeline > li[id] { scroll-margin-top: 120px; }
.news-timeline > li:target > .news-entry {
  outline: 2px solid var(--home-gold);
  outline-offset: 3px;
}
.news-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 24px;
  line-height: 24px;
  padding-inline-end: 4px;
}
.news-timeline > li[id] .lowdown-event-copy { flex: 1; }
.news-share:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
  min-height: 44px;
  margin: -10px 0 -10px auto;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-yellow);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.news-share svg { flex: none; }
.news-entry.claim .news-share { color: inherit; }
.news-entry.closed .news-share { color: var(--footer-background); }
.news-share:is(:hover, :focus-visible) svg { fill: currentColor; }
.news-share:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.news-entry:has(.news-entry-link) { position: relative; }
.news-entry-link { color: inherit; text-decoration: none; }
.news-entry-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.news-entry-link:focus-visible::after { outline: 2px solid currentColor; outline-offset: 2px; }

.news-archive-link { color: var(--home-gold); }
.news-archive-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 26px; }
.news-history { min-width: 0; }
.news-archive { min-width: 0; }
.news-archive-years { display: grid; gap: 10px; }
.news-archive-years summary::after { content: '+' / ''; }
.news-archive-years details[open] > summary::after { content: '−' / ''; }
.news-archive-years summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 10px;
  border-bottom: 1px solid #64759e;
  color: var(--home-gold);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.news-archive-years summary::-webkit-details-marker { display: none; }
.news-archive-years ul {
  margin: 0;
  padding: 8px 0 12px;
  list-style: none;
}
.news-archive-years a { display: block; padding-block: 6px; color: white; text-decoration: none; }
.news-archive-years a:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--home-gold); }
.news-archive-years [aria-current="page"] { font-weight: 700; }
.news-archive-years .news-archive-latest-mobile,
.news-footer-latest-short { display: none; }
.news-month-navigation {
  margin-left: 52px;
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}
@media (width > 760px) {
  .news-columns.lowdown-columns:has(> .news-archive) {
    grid-template-columns: minmax(0, calc(75% - 18px)) minmax(0, 1fr);
    column-gap: 32px;
  }
  .news-archive { margin-top: calc(clamp(1.45rem, 3vw, 2.15rem) * 1.2 + 26px); }
}

/* Let the homepage rail spacing govern the news heading and first entry. */
.news-columns.home-rail { padding-block: 54px 26px; }
.news-history > .news-timeline { margin-block-start: 0; }
@media (max-width: 640px) {
  .news-columns.home-rail { padding-block: 34px 18px; }
}

.news-columns.home-rail:has(.news-archive-footer, .news-month-navigation) { padding-block-end: 54px; }
@media (max-width: 640px) {
  .news-columns.home-rail:has(.news-archive-footer, .news-month-navigation) { padding-block-end: 34px; }
}

.news-heading p { color: #cbd5ef; }
@media (max-width: 760px) {
  .news-month-navigation { margin-left: 0; }
  .news-archive-years .news-archive-latest-desktop { display: none; }
  .news-archive-years .news-archive-latest-mobile { display: block; }
  .news-archive-years ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 0 10px;
  }
  .news-archive-years li:nth-child(13) { grid-column: 3; grid-row: 5; }
}
.news-columns.lowdown-columns .news-status:not(.news-episode) .lowdown-event-copy > :is(strong, span, .timeline-headline, .timeline-detail) {
  max-inline-size: calc(100% - clamp(14px, 4vw, 64px));
  overflow-wrap: anywhere;
}

.news-history .news-status:not(.news-episode):has(.news-entry-link):is(:hover, :focus-within),
.news-history .news-breaking:is(:hover, :focus-within),
.news-history .news-roundup > ul > li:is(:hover, :focus-within) {
  outline: 1px solid #7d8cb7;
  outline-offset: -1px;
}
.news-history .news-roundup > ul > li:last-child { border-radius: 0 0 8px 8px; }

@media (max-width: 760px) {
  .news-date-weekday { display: block; }
  .news-entry-meta { align-items: start; flex-wrap: nowrap; }
  .news-entry-meta .news-share { flex-shrink: 0; }
}

.news-history .news-roundup > ul {
  margin-inline: calc(-1 * var(--news-entry-padding));
}
.news-history .news-group-link { padding-inline: var(--news-entry-padding); }

.news-archive > .lowdown-stuart {
  margin-top: 28px;
  border: 1px solid #52618b;
  box-shadow: 0 4px 14px #0005;
}

.news-breaking {
  background: #ff0000;
  color: white;
  padding-bottom: var(--news-entry-padding);
}
.news-breaking h3 { margin: 0; color: white; }

.news-entry .news-breaking-label { color: var(--brand-yellow); font-weight: 800; }
.news-entry.news-teaser { background: #15237a; }

.news-teaser .news-group-link:is(a) { position: relative; }

.news-conversation-link {
  position: relative;
  z-index: 1;
  color: inherit;
  font-weight: 700;
  text-underline-offset: .15em;
}

.home-news-promo .news-teaser { padding-bottom: var(--news-entry-padding); align-content: start; align-items: start; grid-auto-rows: max-content; }
.home-news-promo .news-teaser h3 { margin: 0; }
.home-news-promo .news-teaser p { padding-bottom: 0; }
.home-news-promo .news-teaser:has(.news-promo-teaser-art) { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--news-entry-gap); }
.home-news-promo .news-teaser:has(.news-promo-teaser-art) > :not(.news-promo-teaser-art) { grid-column: 2; }
.home-news-promo .news-promo-teaser-art { grid-column: 1; grid-row: 1; }
.home-news-promo .news-promo-teaser-copy { display: grid; grid-row: 1; gap: 4px; }
.home-news-promo .news-teaser:is(:hover, :focus-within) { outline: 1px solid #7d8cb7; outline-offset: -1px; }

.home-claims-region .claims-source + .rail-footer { margin-top: 4px; }
.news-claims-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.news-claims-navigation > a:first-child:not(.news-all-link) { justify-self: start; }
.news-claims-navigation .news-all-link { grid-column: 2; justify-self: center; }
.news-claims-navigation > a:last-child:not(.news-all-link) { grid-column: 3; justify-self: end; text-align: right; }

@media (max-width: 760px) {
  .news-month-navigation .news-all-link,
  .news-footer-latest-full { display: none; }
  .news-footer-latest-short { display: inline; }
  .news-month-navigation { justify-content: space-between; column-gap: 0; }
  .news-claims-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-claims-navigation > a:last-child:not(.news-all-link) { grid-column: 2; }
}

/* Match the mobile homepage rail typography in timeline stories. */
@media (max-width: 640px) {
  .news-entry :is(h3, .news-group-title),
  .news-entry.news-status :is(strong, h3.timeline-headline) {
    font-size: clamp(.84rem, 3.6vw, 1.05rem);
  }
  .news-entry-meta { line-height: 1.5; }
  .home-news-promo .news-entry time,
  .news-history .news-timeline time { font-weight: 400; line-height: 1.5; }
  .home-news-promo .news-entry time,
  .news-history .news-timeline time,
  .news-entry-meta .news-share:not([hidden]),
  .news-entry :is(.lowdown-event-copy > .timeline-detail, .news-group-detail, .news-episode-label, .news-breaking-label, .news-group-link > strong),
  .news-roundup > p,
  .news-promo-teaser-copy > p,
  .news-timeline > .news-record-note { font-size: clamp(.78rem, 3.5vw, 1rem); }
  .news-entry .game-price { font-size: .8rem; }
}

.news-history [data-latest-feed-nav] { margin-left: 52px; }
@media (max-width: 480px) {
  .news-history [data-latest-feed-nav] { margin-left: 28px; }
}

.home-news-promo .news-release .timeline-headline { color: var(--home-gold); }

.news-status:is(.news-reprint, .news-release) .timeline-headline { color: var(--home-gold); }
