/* Local content flow; each group contains two real listings. */
[data-round-support][hidden],
[data-round-group][hidden] {
  display: none !important;
}
.round-group {
  margin: 20px 0;
}
.round-group > h2 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 550;
  margin: 0 0 10px;
}
.round-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.round-entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.round-entry > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.round-copy {
  min-width: 0;
  padding: 10px 12px;
}
.round-entry h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.round-entry p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.round-entry small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.round-entry:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  text-decoration: none;
}
.round-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.round-entry .round-action {
  display: block;
  font-size: 0.8125rem;
  margin-top: 8px;
}
header .primary-navigation a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  box-shadow: inset 0 -2px var(--accent);
}
body[data-design-site] .reading-home .reading-summary {
  display: block;
}
@media (max-width: 600px) {
  .round-items {
    grid-template-columns: 1fr;
  }
  .round-entry {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
@media print {
  [data-round-support] {
    display: none !important;
  }
}
/* Two category examples read as open folds with a slim image edge. */
.site-game65 .round-entry {
  grid-template-columns: 76px minmax(0, 1fr);
  border-left: 3px solid var(--line);
}
.site-game65 .round-entry small {
  color: var(--accent);
}
.site-game65 .category-navigation > a {
  font-size: 16px;
}

/* Keep native page links reachable in the same compact header row. */
body.site-game65 .site-header .primary-navigation {
  display: flex;
  flex: 1 1 0;
  min-width: 44px;
  justify-content: flex-start;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
body.site-game65 .site-header .primary-navigation a {
  font-size: 14px;
  flex: 0 0 auto;
}
body.site-game65 .site-header .wordmark {
  flex: 0 0 auto;
}

/* Keep native result cards in the established image-above-title composition. */
@media (min-width: 900px) {
  body[data-design-site="Game65"][data-design-page]
    [data-catalogue]
    [data-batches]
    > .game-card
    .game-entry {
    display: block !important;
  }
  body[data-design-site="Game65"][data-design-page]
    [data-catalogue]
    [data-batches]
    > .game-card
    .thumbnail {
    width: 100% !important;
  }
}

/* Open the fold across the content width while retaining a shallow lead image. */
@media (min-width: 900px) and (min-height: 501px) {
  body[data-design-site="Game65"][data-design-page="home"] [data-fold-home] .fold-grid {
    max-width: none;
    width: 100%;
  }
  body[data-design-site="Game65"][data-design-page="home"]
    [data-fold-home]
    .fold-grid
    > :first-child:not(:nth-last-child(-n + 2))
    .thumbnail {
    aspect-ratio: 8/1 !important;
  }
}

/* A category fold has a wide opening and closing strip around three picture pairs. */
body.site-game65[data-design-site][data-design-page] [data-batches] {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
}
body.site-game65[data-design-site][data-design-page] [data-batches] > .game-card:nth-child(n) {
  grid-column: auto !important;
  grid-area: auto !important;
}
body.site-game65[data-design-site][data-design-page]
  [data-batches]
  > .game-card:nth-child(n)
  .game-entry {
  display: block !important;
}
body.site-game65[data-design-site][data-design-page]
  [data-batches]
  > .game-card:nth-child(n)
  .thumbnail {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 8/5 !important;
}
body.site-game65[data-design-site][data-design-page] .fold-grid > .game-card:first-child,
body.site-game65[data-design-site][data-design-page]
  .fold-grid
  > .game-card:last-child:nth-child(even) {
  grid-column: 1/-1 !important;
}
body.site-game65[data-design-site][data-design-page]
  .fold-grid
  > .game-card:first-child
  .game-entry,
body.site-game65[data-design-site][data-design-page]
  .fold-grid
  > .game-card:last-child:nth-child(even)
  .game-entry {
  display: grid !important;
  grid-template-columns: 36% minmax(0, 1fr);
  align-items: stretch;
  border-block: 1px solid var(--line) !important;
}
body.site-game65[data-design-site][data-design-page] .fold-grid > .game-card:first-child .thumbnail,
body.site-game65[data-design-site][data-design-page]
  .fold-grid
  > .game-card:last-child:nth-child(even)
  .thumbnail {
  aspect-ratio: 8/5 !important;
  height: 100% !important;
}
.site-game65 .fold-count {
  margin: 2px 0 8px;
  font-size: 13px;
  text-transform: capitalize;
}
.site-game65 [data-more] {
  display: block;
  margin: 12px auto 16px;
}
.site-game65 .fold-strips [data-discovery-items] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.site-game65 .fold-strips .discovery-entry {
  display: block;
}
.site-game65 .fold-strips .discovery-entry img {
  width: 100%;
  aspect-ratio: 8/5;
  height: auto;
  object-fit: cover;
}
.site-game65 .round-entry {
  grid-template-columns: 38% minmax(0, 1fr);
  border-left-width: 1px;
}
.site-game65 .round-copy {
  padding: 8px 10px;
}
.site-game65 .round-entry h3,
.site-game65 .round-entry p {
  font-size: 14px;
  line-height: 1.45;
}
.site-game65 [data-title-popup] {
  color: var(--ink);
  background: var(--paper);
}
.site-game65 .player-tools :is([data-play], [data-stop]) {
  color: white;
  background: var(--accent);
}
@media (min-width: 900px) {
  body.site-game65[data-design-site][data-design-page] [data-batches] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  body.site-game65[data-design-site][data-design-page] .fold-grid > .game-card:first-child,
  body.site-game65[data-design-site][data-design-page]
    .fold-grid
    > .game-card:last-child:nth-child(even) {
    grid-column: span 2 !important;
  }
  .site-game65 .reading-home > ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .site-game65 .fold-strips [data-discovery-items] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
