@import url("./base.css?v=ab190d28f476");
:root {
  --paper: #f8faf9;
  --ink: #263b38;
  --accent: #355d54;
}
.log-head,
main,
.site-footer,
.announcement {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}
.log-head {
  padding-block: 8px;
  display: flex;
  gap: 30px;
  border-bottom: 4px solid;
  align-items: center;
  flex-wrap: wrap;
}
.log-head > a {
  font-size: 23px;
  font-weight: 700;
}
.log-head nav {
  display: flex;
  gap: 22px;
}
.log-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.log-starters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.log-game {
  min-width: 0;
  border-bottom: 1px solid #8caaa1;
  padding-bottom: 8px;
}
.log-game img {
  height: 90px;
  width: 100%;
}
.log-game h2 {
  font-size: 18px;
  margin: 4px 0;
}
.log-game p {
  margin: 6px 0;
}
.log-game > a:last-child {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.log-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.log-directory .log-game {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
}
.log-directory .log-game > a:first-child {
  display: contents;
}
.log-directory img {
  grid-row: span 3;
  width: 100px;
  height: 90px;
}
.log-directory h2,
.log-directory p {
  margin: 0;
}
.title-log-entry {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 18px;
}
.title-log-entry > a:first-child {
  display: contents;
}
.title-log-entry img {
  width: 90px;
  height: 72px;
  grid-row: span 3;
}
.title-log-entry h2,
.title-log-entry p {
  margin: 0;
}
.title-log-entry > a:last-child {
  grid-column: 2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
[data-record] > section > img {
  width: 130px;
  height: 90px;
}
@media (max-width: 799px), (orientation: landscape) and (max-width: 950px) {
  .log-head,
  main,
  .site-footer,
  .announcement {
    padding-inline: 12px;
  }
  .log-starters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .log-game img {
    height: 76px;
  }
  .log-directory {
    grid-template-columns: 1fr;
  }
}

/* Current whole-card link structure. Independent actions remain outside. */
.log-game {
  padding: 0;
}
.log-game > .game-link {
  display: block;
  padding: 10px;
}
.log-cue {
  display: block;
  margin-top: 8px;
  text-decoration: underline;
}
.log-directory .log-game {
  display: block;
}
.log-directory .log-game > a:first-child {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 6px 10px;
}
.log-directory img {
  grid-column: 1;
  grid-row: 1/4;
}
.log-directory h2,
.log-directory p,
.log-directory .log-cue {
  grid-column: 2;
}
.title-log-entry {
  display: block;
  padding: 0;
}
.title-log-entry > .game-link {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 14px;
}
.title-log-entry img {
  grid-column: 1;
  grid-row: 1/3;
}
.title-log-entry h2,
.title-log-entry p {
  grid-column: 2;
}

/* Image cells stretch with their complete link rows. */
.log-game .game-picture {
  height: 90px;
  aspect-ratio: auto;
}
.log-directory .game-picture {
  width: 100px;
  min-height: 90px;
  height: auto;
  aspect-ratio: auto;
  grid-column: 1;
  grid-row: 1/4;
}
.title-log-entry .game-picture {
  width: 90px;
  min-height: 72px;
  height: auto;
  aspect-ratio: auto;
  grid-column: 1;
  grid-row: 1/3;
}
[data-record] > section > .game-picture {
  width: 130px;
  height: 90px;
  aspect-ratio: auto;
}
@media (max-width: 799px), (orientation: landscape) and (max-width: 950px) {
  .log-starters .game-picture {
    height: 76px;
  }
}

.log-game > a.game-link:first-child:last-child {
  display: block;
}
.log-directory .log-game > a.game-link:first-child:last-child {
  display: grid;
}
[data-record-preview] > .game-picture {
  width: 130px;
  height: 90px;
}

/* Content-first revision: retain this site’s own card organisation. */
.log-starters {
  margin-block: 8px;
}
.log-game .game-picture {
  height: auto;
  aspect-ratio: 6 / 5;
}
.log-game h2 {
  margin: 6px 0;
}

/* Site-owned search presentation; one set of conditions and one Clear. */
.ledger-modal {
  max-width: min(600px, calc(100vw - 24px));
  border-width: 1px;
}
.ledger-modal header {
  border-bottom: 3px double #8caaa1;
}
.ledger-modal fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}

/* Independent remaining-viewport correction; no content or model changes. */
/* Keep the illustrated log starters compact at tablet and desktop widths. */
.log-starters .log-game .game-picture {
  max-height: 128px;
}
.log-game > .game-link > h2 {
  font-size: 1rem;
  line-height: 1.35;
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  .log-starters .log-game > a.game-link:first-child:last-child {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 4px;
    align-items: center;
  }
  .log-starters .log-game > .game-link > .game-picture {
    grid-column: 1;
    grid-row: 1;
    width: 72px;
    height: 56px;
    min-height: 56px;
    aspect-ratio: auto;
  }
  .log-starters .log-game > .game-link > h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  .log-directory .log-game > .game-link {
    grid-template-columns: 80px minmax(0, 1fr);
    padding-block: 4px;
  }
  .log-directory .log-game .game-picture {
    width: 80px;
    height: 64px;
    min-height: 64px;
  }
}

/* Rules8–12: source-fixed columns, complete bounded rows, consistent discovery cards. */
.log-starters,
.log-directory {
  --discovery-columns: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  margin-block: 8px 12px;
}
.log-starters > li:nth-child(n),
.log-directory > li:nth-child(n) {
  grid-column: span 2;
  min-width: 0;
  margin: 0;
}
.log-starters > li:last-child:nth-child(odd),
.log-directory > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.log-starters > li > a.game-link:first-child:last-child,
.log-directory > li > a.game-link:first-child:last-child {
  display: block;
  padding: 6px;
  min-width: 0;
}
.log-starters > li > a.game-link:first-child:last-child > .game-picture,
.log-directory > li > a.game-link:first-child:last-child > .game-picture {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 128px;
  aspect-ratio: 16 / 9;
  grid-column: auto;
  grid-row: auto;
}
.log-starters > li > a.game-link:first-child:last-child > h2,
.log-directory > li > a.game-link:first-child:last-child > h2 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 6px 0;
  min-width: 0;
}
.log-starters > li:last-child:nth-child(odd) > a.game-link,
.log-directory > li:last-child:nth-child(odd) > a.game-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.log-starters > li:last-child:nth-child(odd) > a.game-link > .game-picture,
.log-directory > li:last-child:nth-child(odd) > a.game-link > .game-picture {
  width: 96px;
  height: 80px;
  min-height: 80px;
  aspect-ratio: auto;
  grid-column: 1;
  grid-row: 1;
}
.log-starters > li:last-child:nth-child(odd) > a.game-link > h2,
.log-directory > li:last-child:nth-child(odd) > a.game-link > h2 {
  grid-column: 2;
  grid-row: 1;
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  .log-starters,
  .log-directory {
    gap: 8px 12px;
    margin-block: 4px 8px;
  }
  .log-starters > li:nth-child(n) > a.game-link:first-child:last-child,
  .log-directory > li:nth-child(n) > a.game-link:first-child:last-child {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 4px;
    align-items: center;
  }
  .log-starters > li:nth-child(n) > a.game-link:first-child:last-child > .game-picture,
  .log-directory > li:nth-child(n) > a.game-link:first-child:last-child > .game-picture {
    width: 72px;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    aspect-ratio: auto;
    grid-column: 1;
    grid-row: 1;
  }
  .log-starters > li:nth-child(n) > a.game-link:first-child:last-child > h2,
  .log-directory > li:nth-child(n) > a.game-link:first-child:last-child > h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: center;
  }
}

/* 2026-10-23: Game Marks, a picture notebook. The directory and notes share a calm baseline. */
body {
  color: #253537;
  background: #fcfcfb;
}
main,
.site-footer,
.announcement,
.log-head {
  max-width: 1160px;
  padding-inline: 16px;
}
body > header.log-head#top {
  display: block;
  padding-block: 0;
  border: 0;
}
header#top > .brand-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid #b9ccc7;
  gap: 12px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}
.wordmark svg {
  flex: none;
  display: block;
}
.marks-tab {
  font-size: 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
header#top > nav.directory-band {
  display: flex;
  grid-area: auto;
  gap: 14px;
  overflow: visible;
  padding: 0;
  align-items: center;
  min-height: 44px;
  justify-content: flex-start;
  white-space: normal;
}
header#top > nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  text-decoration: none;
  min-height: 44px;
  padding: 0;
  white-space: nowrap;
}
header#top .discovery-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  min-height: 44px;
  width: auto;
  max-width: 48%;
  padding: 0 8px;
  margin: 0;
  background: #e8efeb;
  font-size: 0.875rem;
  color: #214e47;
}
header#top .discovery-open span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header#top .discovery-open svg {
  flex: none;
}
a[aria-current="page"] {
  font-weight: 700;
  color: #1d6864;
}
.brand-group a[aria-current="page"] {
  font-weight: 700;
}
main {
  padding-top: 0;
}
[data-catalogue] {
  margin: 8px 0 16px;
}
[data-catalogue] > section {
  padding: 0;
  border: 0;
  margin: 0;
}
.log-directory,
.title-log-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin: 0;
  padding: 0;
}
.log-directory > li:nth-child(n),
.title-log-list > li:nth-child(n) {
  display: block;
  grid-column: auto;
  padding: 0;
  border: 0;
  min-width: 0;
  margin: 0;
}
.log-directory > li:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.log-directory > li > a.game-link,
.title-log-list > li > a.game-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  height: 100%;
  align-items: stretch;
}
.log-directory > li > a.game-link > .game-picture,
.title-log-list > li > a.game-link > .game-picture {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 8/5;
  border-radius: 3px;
  flex: none;
  grid-area: auto;
}
.card-copy {
  display: block;
  min-width: 0;
}
.card-copy h2,
.log-directory h2 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.card-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  height: 2.9em;
  margin: 0;
  font-size: 0.875rem;
  color: #4b5d59;
}
.game-link:hover h2 {
  text-decoration: none;
}
.game-link:hover {
  background: #edf2ef;
}
.game-link:focus-visible {
  outline-offset: 3px;
}
.game-picture {
  border-radius: 3px;
}
button[data-more] {
  display: block;
  margin: 16px auto 8px;
  min-height: 44px;
  border: 1px solid #a6bdb5;
  border-radius: 4px;
  padding: 6px 20px;
  background: transparent;
}
.site-footer .policy-nav a {
  min-height: 44px;
}
.filter-dialog {
  display: none;
}
.filter-dialog[open] {
  display: flex;
}
.ledger-modal {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 70vw;
  min-width: 0;
  max-width: none;
  height: 100dvh;
  min-height: 70dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-left: 1px solid #a8b8b5;
  border-radius: 0;
  background: #fcfcfb;
  color: #253537;
}
.ledger-modal header {
  padding: 12px 14px;
  flex-wrap: nowrap;
  gap: 8px;
}
.ledger-modal header h2 {
  font-size: 1rem;
}
.ledger-modal header button {
  font-size: 0.875rem;
  border: 0;
  padding: 4px 6px;
  min-width: 44px;
}
.ledger-modal .dialog-body {
  padding: 0 14px 20px;
  flex: 1;
  overflow: auto;
}
.ledger-modal nav[data-category-navigation] {
  display: block;
}
.ledger-modal nav[data-category-navigation] a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  text-decoration: none;
  border-bottom: 1px solid #dbe3df;
  font-size: 1rem;
  padding: 7px 4px;
}
.ledger-modal nav[data-category-navigation] a[aria-current] {
  background: #e3eeea;
  color: #204f45;
}
.ledger-modal small {
  font-size: 0.8rem;
  color: #51615b;
}
.ledger-modal svg {
  display: block;
  flex: none;
}
.ledger-modal .secondary-pages {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
}
.secondary-pages a {
  font-size: 0.875rem;
}
.game-title-row,
.article-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  min-width: 0;
  min-height: 44px;
  margin: 0;
}
.back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  text-decoration: none;
}
.back-arrow svg {
  display: block;
}
.game-title-row h1,
.article-title-row h1 {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.game-title-row h1 {
  flex: 1;
}
.title-disclosure {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: inherit;
  border: 0;
  padding: 0;
  min-height: 44px;
}
.full-title {
  position: absolute;
  top: 44px;
  left: 44px;
  right: 0;
  z-index: 5;
  background: #eef4f1;
  border: 1px solid #9cb5aa;
  padding: 10px;
  font-size: 1rem;
}
.full-title[hidden] {
  display: none !important;
}
.full-title button {
  margin-left: 8px;
  border: 0;
}
.player-stage {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
  color: var(--ink);
}
.player-media {
  aspect-ratio: 4/3;
  min-height: 0;
  max-height: 70dvh;
  background: #192226;
}
.player-media > [data-play] {
  border: 0;
  background: #1b5f54;
  color: white;
  border-radius: 5px;
  min-height: 44px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.player-media > [data-play]::before {
  content: "▶";
  font-size: 0.85em;
}
.player-tools {
  padding-top: 8px;
  gap: 6px;
}
.player-tools button {
  border: 0;
  background: #e7eeea;
  font-size: 0.875rem;
  border-radius: 3px;
  min-height: 44px;
  padding: 5px 12px;
}
.player-tools [data-stop]:disabled,
.player-tools [data-restart]:disabled {
  display: none;
}
.player-stage [role="status"] {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #4b5d59;
}
.player-stage:fullscreen {
  color: white;
}
.player-stage:fullscreen [role="status"] {
  color: #fff;
}
.required-route {
  font-size: 0.9rem;
}
.source-list h2 {
  font-size: 1rem;
}
.source-list p {
  max-width: 70ch;
}
.reading-previews {
  padding: 12px 0 !important;
  border: 0 !important;
  margin: 16px 0 !important;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
}
.section-heading h2 {
  font-size: 1rem;
  margin: 0;
}
.section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.85rem;
  text-decoration: none;
}
.section-heading svg {
  width: 16px;
}
.reading-previews ul {
  margin: 0;
}
.reading-previews li {
  border-top: 1px solid #cddbd4;
}
.reading-previews li > a,
.article-directory li > a {
  display: block;
  text-decoration: none;
  padding: 12px 0;
  min-width: 0;
}
.reading-previews h3,
.article-directory h2 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reading-previews p,
.article-directory p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  height: 3em;
  color: #4b5d59;
}
.article-directory {
  margin: 8px 0;
}
.article-directory li {
  border-bottom: 1px solid #cddbd4;
}
.article-body {
  max-width: 70ch;
  margin: 0 auto;
}
.article-title-row h1 {
  font-size: 1rem;
  font-weight: 700;
}
.article-summary {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #405b52;
  margin: 10px 0 16px;
}
.article-body section {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.article-body section h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.article-body section p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 12px;
}
.editorial-note {
  font-size: 0.85rem;
  color: #52645b;
}
.related-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.short-recommendations {
  border: 0 !important;
}
.short-recommendations h2 {
  font-size: 1rem;
}
@media (min-width: 768px) {
  main,
  .site-footer,
  .announcement,
  .log-head {
    padding-inline: 24px;
  }
  .log-directory,
  .title-log-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .log-directory > li:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .log-directory > li > a.game-link,
  .title-log-list > li > a.game-link {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
  }
  .log-directory > li > a.game-link > .game-picture,
  .title-log-list > li > a.game-link > .game-picture {
    width: 96px;
    aspect-ratio: 1;
    grid-area: auto;
  }
  .card-copy {
    align-self: center;
  }
  .reading-previews ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .reading-previews li {
    min-width: 0;
  }
  .player-media {
    aspect-ratio: 16/10;
    max-height: 70dvh;
  }
  .log-head .brand-group {
    max-width: none;
  }
  .article-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .article-directory li {
    min-width: 0;
  }
}
@media (max-width: 359px) {
  header#top > nav.directory-band {
    gap: 9px;
  }
  header#top > nav a,
  header#top .discovery-open {
    font-size: 0.8rem;
  }
  .ledger-modal .dialog-body {
    padding-inline: 10px;
  }
  .ledger-modal nav[data-category-navigation] a {
    gap: 7px;
  }
}
@media (min-width: 768px) {
  .log-directory {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .log-directory > li:nth-child(n) {
    grid-column: span 2;
  }
  .log-directory > li:nth-child(3n + 1):nth-last-child(2),
  .log-directory > li:nth-child(3n + 2):last-child {
    grid-column: span 3;
  }
  .log-directory > li:nth-child(3n + 1):last-child {
    grid-column: 1/-1;
  }
}

/* Logbook: centered masthead, ledger band, square-ended picture records. */
body > header.log-head#top {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-block: 0;
  border-bottom: 1px solid #a1b9ac;
}
header.log-head#top > .wordmark {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  grid-area: auto;
  min-height: 44px;
  text-decoration: none;
}
header.log-head#top > .ledger-band {
  display: flex;
  grid-area: auto;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  border-top: 1px solid #c9d7cf;
}
header.log-head#top > .ledger-band > a {
  font-size: 0.875rem;
  min-height: 44px;
  padding: 0 5px;
  text-decoration: none;
}
header.log-head#top > .ledger-band > .discovery-open {
  display: grid;
  place-items: center;
  grid-area: auto;
  max-width: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
}
.log-head a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.log-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.log-directory > li:nth-child(n) {
  grid-column: auto;
}
.log-directory > li > a.game-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px solid #a3bdb0;
  padding: 0 0 10px;
}
.log-directory > li > a.game-link > .game-picture {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: none;
  border-radius: 0;
}
.card-copy h2 {
  font-family: Georgia, serif;
  font-weight: 700;
}
.card-copy p {
  font-size: 0.875rem;
}
.ledger-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 24px));
  height: 76dvh;
  min-height: 70dvh;
  max-height: calc(100dvh - 24px);
  max-width: none;
  border: 1px solid #93ac9f;
  border-radius: 2px;
  background: #f8faf9;
}
.ledger-modal nav[data-category-navigation] a {
  grid-template-columns: 24px minmax(0, 1fr) 30px;
  min-height: 48px;
  gap: 14px;
  padding-inline: 8px;
}
.ledger-modal nav[data-category-navigation] a svg {
  background: #e6eee8;
  border-radius: 50%;
  padding: 2px;
  width: 24px;
  height: 24px;
}
.ledger-modal nav[data-category-navigation] a[aria-current] {
  background: #dce9df;
  border-left: 3px solid #355d54;
  padding-left: 5px;
}
.player-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
}
.player-media {
  grid-column: 1/-1;
}
.player-tools {
  grid-row: 2;
  grid-column: 2;
  align-self: start;
  padding: 0;
}
.player-stage > [role="status"] {
  grid-row: 2;
  grid-column: 1;
  margin: 0;
  align-self: center;
}
.player-tools button {
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #789184;
  padding: 4px 8px;
}
.player-stage:fullscreen {
  display: flex;
}
.reading-previews ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.reading-previews li > a {
  padding: 12px 0 12px 12px;
  border-left: 2px solid #b2c8bb;
}
.reading-previews h3 {
  font-family: Georgia, serif;
}
.article-directory {
  display: block;
  counter-reset: dispatch;
}
.article-directory li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  counter-increment: dispatch;
}
.article-directory li:before {
  content: counter(dispatch, decimal-leading-zero);
  align-self: start;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #547265;
}
.article-directory h2 {
  font-family: Georgia, serif;
}
.article-body h2 {
  font-family: Georgia, serif;
}
.article-summary {
  font-family: Georgia, serif;
}
.title-log-entry .game-link {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 6px 12px;
}
.title-log-entry .game-picture {
  width: 80px;
  aspect-ratio: 1;
  grid-row: 1/3;
}
.title-log-entry h2 {
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title-log-entry p {
  font-size: 0.875rem;
  margin: 0;
}
.title-log-entry {
  max-width: 70ch;
}
@media (min-width: 768px) {
  .log-directory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .log-directory > li:nth-child(n) {
    grid-column: auto;
  }
  .log-directory > li > a.game-link {
    display: flex;
    flex-direction: column;
  }
  .log-directory > li > a.game-link > .game-picture {
    width: 100%;
    aspect-ratio: 4/3;
  }
  .reading-previews ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .article-directory {
    max-width: 90ch;
    margin-inline: auto;
  }
  .player-media {
    aspect-ratio: 16/10;
  }
}

header#top > .brand-group,
header#top > nav.directory-band {
  flex-wrap: wrap;
}
.article-body section {
  margin-top: 14px;
}
.article-summary {
  margin-bottom: 12px;
}
.short-recommendations .log-directory > li > a.game-link > .game-picture {
  aspect-ratio: 16/9;
}
.short-recommendations .log-directory > li:nth-child(n) {
  grid-column: auto;
}
@media (min-width: 768px) {
  .short-recommendations .log-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Intrinsic grid sizes must not be set by an unbroken preview headline. */
.reading-previews ul,
.reading-previews li,
.reading-previews li > a {
  min-width: 0;
  max-width: 100%;
}
.reading-previews li > a {
  width: 100%;
  box-sizing: border-box;
}

#main .log-directory > li:nth-child(n) > a.game-link:first-child:last-child {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  align-items: stretch;
}
#main .log-directory > li:nth-child(n) > a.game-link > .game-picture {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16/9;
  grid-area: auto;
}
#main .log-directory > li:nth-child(n) {
  grid-column: auto;
  min-width: 0;
}
@media (min-width: 768px) {
  #main .log-directory > li:nth-child(n) > a.game-link:first-child:last-child {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: stretch;
  }
  #main .log-directory > li:nth-child(n) > a.game-link > .game-picture {
    width: 88px;
    height: 100%;
    aspect-ratio: 1;
  }
  #main .short-recommendations .log-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#main .title-log-entry,
#main .title-log-entry > a.game-link {
  min-width: 0;
  max-width: 100%;
}
#main .title-log-entry > a.game-link {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 12px 0;
}
#main .title-log-entry > a.game-link > .game-picture {
  grid-column: 1;
  grid-row: 1/3;
}
#main .title-log-entry h2,
#main .title-log-entry p {
  grid-column: 2;
  min-width: 0;
}
@media (min-width: 768px) {
  #main .log-directory > li:nth-child(n) > a.game-link:first-child:last-child {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  #main .log-directory > li:nth-child(n) > a.game-link > .game-picture {
    width: 100px;
    min-height: 100px;
  }
}

/* Visual review, 2026-10-23: transparent targets and a tighter document rhythm. */
#main > h1:not(.sr-only) {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 4px 0 12px;
}
#main > section.prose,
#main [data-content-block="controls"],
#main .short-recommendations {
  padding-block: 10px;
  margin-bottom: 12px;
}
#main .short-recommendations > h2 {
  margin: 0 0 10px;
}
#main .reading-previews {
  padding-block: 8px !important;
  margin-block: 12px !important;
}
#main .recovery-heading {
  padding: 0;
  border: 0;
  margin: 12px 0 8px;
}
#main .recovery-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
body[data-page="error"] #main > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
}
#top svg {
  flex-shrink: 0;
  display: block;
}
#top a {
  transition: color 0.12s ease;
}
#top button {
  transition: background-color 0.12s ease;
}
.filter-dialog > header {
  padding-block: 4px;
}
.filter-dialog > header h2 {
  font-size: 1rem;
}
.filter-dialog > header [data-close] {
  border: 0;
  padding: 0 6px;
  background: transparent;
  font-size: 0.8125rem;
}
.filter-dialog > header [data-close]:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  #top a,
  #top button {
    transition: none;
  }
}

body > header.log-head#top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding-block: 0;
}
header.log-head#top > .wordmark {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.08rem;
  gap: 6px;
  min-height: 48px;
  white-space: nowrap;
}
header.log-head#top > .wordmark svg {
  width: 17px;
  height: 17px;
}
header.log-head#top > .ledger-games {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.8125rem;
  text-decoration: none;
}
header.log-head#top > .ledger-games svg {
  width: 15px;
  height: 15px;
}
header.log-head#top > .ledger-band {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
  justify-self: end;
  width: auto;
  gap: 0;
  border: 0;
}
header.log-head#top > .ledger-band > .ledger-records {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0;
  gap: 6px;
}
.ledger-records > span {
  display: none;
}
header.log-head#top a[aria-current="page"] {
  text-decoration: none;
  color: #214f43;
}
header.log-head#top .ledger-games[aria-current]:after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
header.log-head#top .ledger-records[aria-current] svg {
  stroke-width: 2.3;
}
header.log-head#top .discovery-open svg {
  width: 18px;
  height: 18px;
}
#main [data-more],
#main [data-more-articles] {
  border: 0;
  padding: 0 10px;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: #a0b5aa;
  text-underline-offset: 7px;
}
.ledger-modal > header h2 {
  font-family: Georgia, serif;
  font-weight: 600;
}
.ledger-modal nav[data-category-navigation] a svg {
  background: transparent;
  padding: 0;
  width: 20px;
  height: 20px;
}
.ledger-modal nav[data-category-navigation] a[aria-current] {
  border: 0;
  padding-left: 8px;
  background: #e4eee7;
}
@media (min-width: 768px) {
  .ledger-records > span {
    display: inline;
  }
  header.log-head#top > .wordmark {
    font-size: 1.25rem;
  }
  header.log-head#top > .ledger-band {
    gap: 14px;
  }
}
@media (max-width: 359px) {
  header.log-head#top > .wordmark {
    font-size: 0.95rem;
  }
  header.log-head#top > .wordmark svg {
    display: none;
  }
  header.log-head#top > .ledger-games {
    gap: 4px;
  }
  body > header.log-head#top {
    gap: 5px;
  }
}

#main .recovery-directory {
  display: block;
  max-width: 70ch;
  margin: 0 auto;
}
#main .recovery-directory li > a {
  display: block;
}
#main .recovery-directory h2,
#main .recovery-directory p {
  min-width: 0;
}

/* Intrinsic wrapping keeps every target distinct when text grows. */
body > header.log-head#top {
  display: flex;
  flex-wrap: wrap;
  container-type: inline-size;
}
header.log-head#top > .wordmark {
  flex: 0 0 auto;
  margin-inline: auto;
}
header.log-head#top > .ledger-games {
  flex: 0 0 auto;
  min-width: 44px;
  white-space: nowrap;
}
header.log-head#top > .ledger-band {
  flex: 0 0 auto;
}
@media (max-width: 359px) {
  header.log-head#top > .wordmark {
    font-size: 1.08rem;
  }
  header.log-head#top > .wordmark svg {
    display: block;
  }
}
@container (max-width:20rem) {
  header.log-head#top > .wordmark {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
  }
  header.log-head#top > .ledger-band {
    margin-left: auto;
  }
}

@container (max-width:20rem) {
  header.log-head#top > .wordmark > span {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}

/* A recovery page leads straight from its compact status row into real reading. */
body[data-page="error"] #main {
  padding-top: 0;
}
#main .recovery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 44px;
  margin: 0 0 4px;
}
#main .recovery-bar h1 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}
#main .recovery-bar nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
#main .recovery-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
}
#main .recovery-directory > li:first-child > a {
  padding-top: 0;
}

/* Menu refinement: the local start log and the next category occupy separate areas. */
.ledger-modal > header {
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ledger-modal > header h2 {
  flex: 1 1 6rem;
}
.ledger-modal .dialog-body {
  min-height: 0;
  overscroll-behavior: contain;
}
.ledger-modal .start-menu-layout {
  display: grid;
  gap: 16px;
}
.ledger-modal .menu-start-summary {
  border-left: 3px solid #99b7a6;
  padding: 0 12px;
}
.ledger-modal .menu-log-total {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.ledger-modal .menu-log-total strong {
  font:
    500 2.5rem/1 Georgia,
    serif;
}
.ledger-modal .menu-log-total span {
  font-size: 0.875rem;
}
.ledger-modal .menu-start-summary p {
  margin: 8px 0;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ledger-modal .menu-start-summary p > a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.ledger-modal nav[data-category-navigation] .start-menu-all {
  background: #e8efea;
  border: 0;
  margin-bottom: 12px;
}
.ledger-modal nav[data-category-navigation] h3 {
  margin: 14px 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
.ledger-modal .unstarted-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  column-gap: 12px;
}
.ledger-modal nav[data-category-navigation] .unstarted-categories > a {
  grid-template-columns: 20px minmax(0, 1fr) max-content;
  padding: 8px 0;
  gap: 6px;
  min-height: 48px;
}
.ledger-modal nav[data-category-navigation] a > span {
  overflow-wrap: anywhere;
}
.ledger-modal nav[data-category-navigation] .started-categories > a {
  grid-template-columns: 20px minmax(0, 1fr) max-content;
  gap: 4px 8px;
  padding: 10px 4px;
  border-bottom: 1px solid #b7cabc;
}
.ledger-modal .menu-start-count {
  grid-column: 2 / -1;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #465e50;
}
@media (min-width: 768px) {
  .ledger-modal .start-menu-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
    gap: 18px;
  }
  .ledger-modal .menu-log-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* Keep the title target while bringing the original summary into the reading budget. */
body[data-page="article"] .article-summary {
  margin-top: 4px;
}

/* Ledger typography and columns make the log a side note to discovery. */
header.log-head#top > .wordmark {
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}
header.log-head#top > .ledger-games {
  font-weight: 400;
}
header.log-head#top .ledger-games:after {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  visibility: hidden;
}
header.log-head#top .ledger-games[aria-current]:after {
  visibility: visible;
}
header.log-head#top .ledger-records {
  position: relative;
}
header.log-head#top .ledger-records[aria-current]:after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
}
.ledger-modal > header {
  border-bottom: 1px solid #b5c6ba;
}
.ledger-modal .menu-start-summary {
  border: 0;
  border-bottom: 1px solid #cad6ce;
  padding: 0 0 10px;
}
.ledger-modal .menu-log-total {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.ledger-modal .menu-log-total strong {
  font:
    500 1.25rem/1.2 Georgia,
    serif;
  font-variant-numeric: tabular-nums;
}
.ledger-modal .menu-log-total span {
  font-size: 0.875rem;
}
.ledger-modal .menu-start-summary p {
  margin: 2px 0;
  font-size: 0.8125rem;
}
.ledger-modal .start-menu-layout {
  gap: 12px;
}
.ledger-modal .unstarted-categories {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.ledger-modal nav[data-category-navigation] a,
.ledger-modal nav[data-category-navigation] .unstarted-categories > a,
.ledger-modal nav[data-category-navigation] .started-categories > a {
  grid-template-columns: 20px minmax(0, 1fr) 2.5ch;
  gap: 4px 10px;
  padding: 6px 8px;
  min-height: 44px;
  border-bottom: 1px solid #d3ddd6;
}
.ledger-modal nav[data-category-navigation] a > small {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}
.ledger-modal nav[data-category-navigation] a[aria-current] {
  box-shadow: inset 2px 0 #4b7760;
  background: #e7eee8;
}
.ledger-modal nav[data-category-navigation] .start-menu-all {
  margin-bottom: 8px;
}
.ledger-modal nav[data-category-navigation] h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 8px 8px 4px;
  color: #486350;
}
.ledger-modal .secondary-pages {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0 18px;
  border-top: 1px solid #cad6ce;
  padding-top: 6px;
  margin-top: 12px;
}
@media (min-width: 768px) {
  header.log-head#top > .wordmark {
    font-size: 1.25rem;
  }
  .ledger-modal .menu-start-summary {
    border: 0;
    border-right: 1px solid #cad6ce;
    padding: 0 16px 0 0;
  }
}

/* Short help/information pages lead into the original first paragraph promptly. */
#main > h1:not(.sr-only) {
  font-size: 1.125rem;
  line-height: 1.25;
  margin: 0 0 2px;
}
#main > h1 + section.prose {
  padding-top: 0;
  margin-top: 0;
}
#main > h1 + section.prose > h2 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 2px;
}
#main > h1 + section.prose > h2 + p {
  margin-top: 0;
}

/* Legal pages retain their type sizes while the first policy follows its title. */
body[data-page="legal"] #main > h1 {
  margin-bottom: 0;
}
body[data-page="legal"] #main > h1 + .info-section {
  padding-top: 0;
  margin-top: 0;
}
body[data-page="legal"] #main > h1 + .info-section > h2 {
  margin: 0;
}
body[data-page="legal"] #main > h1 + .info-section > h2 + p {
  margin-top: 0;
}

/* Ordinary document layers leave external overlay controls above classification. */
.category-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  z-index: 1000;
  background: rgb(0 0 0 / 55%);
}
.category-backdrop[hidden] {
  display: none;
}
[data-filter-dialog] {
  z-index: 1001;
}
[data-category-disabled] {
  pointer-events: none;
}

/* Bounded home collections and finite, content-based recovery. */
body[data-home-modules] #main .home-module {
  margin: 0 0 20px;
  padding: 0;
}
body[data-home-modules] #main [data-catalogue] {
  margin-top: 4px;
}
body[data-home-modules] #main .section-heading {
  gap: 12px;
  margin: 0 0 4px;
  align-items: center;
}
body[data-home-modules] #main .section-heading h2 {
  font-size: 1.125rem;
  line-height: 1.2;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-home-modules] #main .section-heading > a {
  font-size: 0.8125rem;
  flex-shrink: 0;
}
body[data-home-modules] #main [data-game-list],
#main .batch-games.batch-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  margin: 0;
  padding: 0;
}
body[data-home-modules] #main [data-game-list] > li:nth-child(n),
#main .batch-games.batch-games > li:nth-child(n) {
  grid-column: auto;
  min-width: 0;
  margin: 0;
}
body[data-home-modules] #main [data-game-list] > li:nth-child(n) > a.game-link:first-child,
#main .batch-games.batch-games > li:nth-child(n) > a.game-link:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding: 0;
}
body[data-home-modules]
  #main
  [data-game-list]
  > li:nth-child(n)
  > a.game-link:first-child
  > .game-picture,
#main .batch-games.batch-games > li:nth-child(n) > a.game-link:first-child > .game-picture {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16/10;
}
body[data-home-modules] #main [data-game-list] .card-copy,
#main .batch-games.batch-games .card-copy {
  display: block;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  padding: 0 0 8px;
}
body[data-home-modules] #main [data-game-list] h2,
#main .batch-games.batch-games h2 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 4px;
}
body[data-home-modules] #main [data-more],
body[data-home-modules] #main [data-more-articles] {
  margin-block: 12px 0;
}
.home-articles {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-articles > li {
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  margin: 0;
  min-width: 0;
}
.home-articles > li > a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  text-decoration: none;
}
.home-articles h3 {
  font-size: 0.9375rem;
  line-height: 1.35;
  margin: 0 0 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-articles p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.module-ad-boundary {
  clear: both;
}
.finite-discovery {
  margin-top: 20px;
}
.finite-discovery[hidden] {
  display: none;
}
#top nav {
  scrollbar-width: none;
}
#top nav::-webkit-scrollbar {
  display: none;
}
/* Simple category rows retain native destinations and a single current state. */
.filter-dialog .dialog-body {
  display: block;
  min-height: 0;
  padding: 8px 16px 20px;
  overflow: auto;
}
.filter-dialog nav.simple-categories {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.filter-dialog nav.simple-categories > a:nth-child(n) {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) max-content;
  grid-column: auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
}
.filter-dialog nav.simple-categories > a[aria-current] {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 2px 0 var(--accent);
}
.filter-dialog nav.simple-categories > a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.filter-dialog nav.simple-categories svg {
  width: 20px;
  height: 20px;
  grid-row: auto;
}
.filter-dialog nav.simple-categories small {
  font-size: 0.75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  grid-column: auto;
}
.filter-dialog .secondary-pages {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0 20px;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.filter-dialog .secondary-pages a:nth-child(n) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}
.category-visual-copy,
.category-visual-copy * {
  pointer-events: none !important;
}
@media (min-width: 800px) {
  body[data-home-modules] #main [data-game-list],
  #main .batch-games.batch-games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .home-articles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .home-articles > li:last-child {
    grid-column: 1/-1;
  }
}
body[data-home-modules] #main [data-game-list] > li:nth-child(n) > a.game-link:first-child,
body[data-home-modules] #main .batch-games.batch-games > li:nth-child(n) > a.game-link:first-child {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  align-items: start;
}
body[data-home-modules]
  #main
  [data-game-list]
  > li:nth-child(n)
  > a.game-link:first-child
  > .game-picture,
body[data-home-modules]
  #main
  .batch-games.batch-games
  > li:nth-child(n)
  > a.game-link:first-child
  > .game-picture {
  width: 64px;
  aspect-ratio: 2/3;
  grid-column: 1;
  grid-row: 1;
}
body[data-home-modules] #main .card-copy {
  grid-column: 2;
}
body[data-home-modules] #main [data-game-list] h2,
body[data-home-modules] #main .batch-games.batch-games h2 {
  font-size: 0.875rem;
}
@media (min-width: 800px) {
  body[data-home-modules] #main [data-game-list] > li:nth-child(n) > a.game-link:first-child,
  body[data-home-modules]
    #main
    .batch-games.batch-games
    > li:nth-child(n)
    > a.game-link:first-child {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  body[data-home-modules]
    #main
    [data-game-list]
    > li:nth-child(n)
    > a.game-link:first-child
    > .game-picture,
  body[data-home-modules]
    #main
    .batch-games.batch-games
    > li:nth-child(n)
    > a.game-link:first-child
    > .game-picture {
    width: 88px;
    aspect-ratio: 11/12;
  }
}

/* Keep the first real entrance within the original banner content budget. */
body[data-home-modules]
  #main
  [data-home-module="primary"]
  [data-game-list]
  > li:nth-child(n)
  > a.game-link:first-child {
  padding-top: 0;
}

/* More remains a local text action with a full touch target and no stacked frame. */
body[data-page]
  #main
  :is(
    [data-more],
    [data-more-home],
    [data-more-articles],
    [data-more-marked],
    [data-more-log],
    [data-more-events],
    [data-more-lane]
  ) {
  display: block;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin: 4px auto 0;
  padding-block: 4px;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body[data-page] #main [data-catalogue] {
  margin-bottom: 0;
}
body[data-home-modules] #main .home-module[data-home-module="primary"] {
  margin-bottom: 8px;
  padding-bottom: 0;
}

/* Keep the existing public module boundaries inside the measured ad reading budget. */
body[data-home-modules] #main .section-heading {
  margin-bottom: 4px;
}
#main .finite-discovery {
  margin-top: 12px;
}
#main .finite-discovery .section-heading {
  margin-bottom: 4px;
}
#main .reading-previews .section-heading {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  body[data-home-modules] #main [data-home-module="primary"] [data-game-list] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body:is([data-empty-log="true"], [data-empty-board="true"]) #main > .short-recommendations {
  padding-top: 0;
  margin-top: 0;
}
body:is([data-empty-log="true"], [data-empty-board="true"]) #main > .short-recommendations > h2 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 4px;
}

#main [data-invalid-game]:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0;
  padding: 0;
}
#main [data-invalid-game] h1 {
  font-size: 1.125rem;
  line-height: 1.25;
  margin: 0;
}
#main [data-invalid-game] a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
#main:has([data-invalid-game]:not([hidden])) > .short-recommendations {
  padding-top: 0;
  margin-top: 0;
}
#main:has([data-invalid-game]:not([hidden])) > .short-recommendations > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Remove stacked reading padding while preserving the original title, summary and link target. */
body[data-home-modules] #main .section-heading {
  margin-bottom: 0;
}
#main .reading-previews {
  padding-top: 0 !important;
  margin-top: 8px !important;
}
#main .reading-previews li:first-child > a {
  padding-top: 4px;
}
body:is([data-empty-log="true"], [data-empty-board="true"]) #main > .short-recommendations > ul {
  margin-block: 0;
}

#main:has([data-invalid-game]:not([hidden])) > .finite-discovery {
  margin-top: 0;
}
#main:has([data-invalid-game]:not([hidden])) > .finite-discovery .section-heading {
  min-height: 0;
  height: 0;
  margin: 0;
}
#main:has([data-invalid-game]:not([hidden])) > .finite-discovery .section-heading > a {
  display: none;
}
#main:has([data-invalid-game]:not([hidden])) > .finite-discovery .section-heading h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* A short real reading block keeps enough original title and summary across ad boundaries. */
@media (min-width: 768px) {
  #main .reading-previews > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
  #main .reading-previews > ul > li:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  #main .reading-previews > ul:has(> li:nth-child(2):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}
body:is([data-empty-log="true"], [data-empty-board="true"]) #main > .short-recommendations > h2 {
  margin-bottom: 0;
}

/* Finite supplements keep the final genuine entries across the available row. */
body[data-page] #main .finite-discovery > ul:has(> li:only-child) > li {
  grid-column: 1 / -1;
}
body[data-page] #main .finite-discovery > ul:has(> li:only-child) > li > a.game-link:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
}
@media (min-width: 1024px) {
  body[data-page] #main .finite-discovery > ul {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  body[data-page] #main .finite-discovery > ul > li:nth-child(n) {
    grid-column: span 2;
  }
  body[data-page] #main .finite-discovery > ul > li:nth-last-child(2 of li):nth-child(3n + 1 of li),
  body[data-page] #main .finite-discovery > ul > li:last-of-type:nth-child(3n + 2 of li) {
    grid-column: span 3;
  }
  body[data-page] #main .finite-discovery > ul > li:last-of-type:nth-child(3n + 1 of li) {
    grid-column: 1 / -1;
  }
  body[data-page]
    #main
    .finite-discovery
    > ul
    > li:last-of-type:nth-child(3n + 1 of li)
    > a.game-link:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 4px 12px;
    align-items: center;
  }
}
body[data-page]
  #main
  .finite-discovery
  > ul:has(> li:only-child)
  > li
  > a.game-link:first-child
  > .game-picture {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: auto;
  min-height: 0;
}
body[data-page]
  #main
  .finite-discovery
  > ul:has(> li:only-child)
  > li
  > a.game-link:first-child
  > .card-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
}
@media (min-width: 1024px) {
  body[data-page]
    #main
    .finite-discovery
    > ul
    > li:last-of-type:nth-child(3n + 1 of li)
    > a.game-link:first-child
    > .game-picture {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  body[data-page]
    #main
    .finite-discovery
    > ul
    > li:last-of-type:nth-child(3n + 1 of li)
    > a.game-link:first-child
    > .card-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Home article previews keep a relaxed line rhythm inside each original link. */
body[data-home-modules] #main .home-articles > li > a {
  padding-block: 12px;
}
body[data-home-modules] #main .home-articles h3 {
  line-height: 1.5;
}
body[data-home-modules] #main .home-articles p {
  line-height: 1.65;
  height: auto;
  max-height: none;
}
