/* 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;
  }
}
/* Reference slips put the listed control beside the game. */
.site-game64 .round-entry {
  border-top: 1px dashed var(--line);
  border-bottom: 0;
  grid-template-columns: 80px minmax(0, 1fr);
}
.site-game64 .round-copy {
  background: color-mix(in srgb, var(--accent) 4%, var(--paper));
}
.site-game64 .round-entry p {
  font-family: Georgia, serif;
}
/* Remove the retired search drawer's fixed height; retain the native menu structure. */
dialog[data-filters].category-panel {
  inset: 12px 12px auto auto;
  height: auto;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  max-width: calc(100vw - 24px);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog[data-filters].category-panel .category-links {
  flex: 0 1 auto;
  min-height: 0;
}
dialog[data-filters].category-panel .category-links a {
  min-height: 44px;
  font-size: 16px;
}

/* Cue deck: one whole slip opens its reference, with controls after the preview. */
body.site-game64[data-design-site][data-design-page] .cue-grid[data-home-list] {
  width: 100%;
  max-width: none;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
body.site-game64[data-design-site][data-design-page] .cue-grid > .cue-tile:nth-child(n) {
  grid-column: auto !important;
  grid-area: auto !important;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
}
body.site-game64[data-design-site][data-design-page] .cue-grid .game-entry {
  display: block !important;
}
body.site-game64[data-design-site][data-design-page] .cue-grid .thumbnail {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 8/5 !important;
}
.site-game64 .cue-grid .reference-action {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  padding: 4px 8px;
  color: var(--accent);
}
.site-game64 [data-home-more] {
  display: block;
  margin: 12px auto 16px;
}
.site-game64 .round-entry {
  grid-template-columns: 38% minmax(0, 1fr);
}
.site-game64 .round-copy {
  padding: 8px 10px;
}
.site-game64 .round-entry h3 {
  font-size: 14px;
  line-height: 1.4;
}
.site-game64 .round-entry p {
  font-size: 14px;
  line-height: 1.45;
}
.site-game64 .cue-notes [data-discovery-items] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.site-game64 .cue-notes .discovery-entry {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  align-items: stretch;
}
.site-game64 .cue-notes .discovery-entry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-game64 [data-title-popup] {
  background: var(--paper);
  color: var(--ink);
}
.site-game64 .player-tools :is([data-play], [data-stop]) {
  background: var(--accent);
  color: white;
}
.site-game64 .cue-sheet > h1 {
  font-size: 20px;
  line-height: 1.4;
  margin: 8px 0;
}
.site-game64 [data-cue-game] {
  max-width: 640px;
}
.site-game64 .reading-home .reading-card {
  padding: 0 0 12px;
}
@media (min-width: 900px) {
  body.site-game64[data-design-site][data-design-page] .cue-grid[data-home-list] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  body.site-game64 [data-catalogue] [data-batches] {
    width: 100%;
    max-width: none;
  }
  .site-game64 .cue-notes [data-discovery-items] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
