/* A local touch-first refinement, layered after the site's own composition. */
.native-categories {
  height: auto;
  min-height: 0;
  inset: 12px 12px auto auto;
  background: #f5f6ee;
  color: #172b26;
  border: 1px solid #adb9aa;
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border-radius: 3px;
}
.native-categories .dialog-inner {
  height: auto;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 26px);
  padding: 0;
  gap: 0;
}
.native-categories .dialog-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 6px 14px;
  border-bottom: 1px solid #c3cbbd;
}
.native-categories .dialog-head h2 {
  font-size: 18px;
  margin: 0;
}
.native-categories [data-close] {
  min-width: 54px;
  min-height: 44px;
  color: inherit;
  background: transparent;
  border: 0;
}
.category-destinations {
  display: grid;
  align-content: start;
  overflow-y: auto;
  padding: 8px 14px max(12px, env(safe-area-inset-bottom));
  min-height: 0;
  gap: 4px;
}
.category-destinations a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  color: inherit;
}
.category-destinations small {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.category-destinations a[aria-current],
.category-destinations a:hover {
  background: #dce4d4;
  color: #172b26;
}
.discovery-trigger {
  min-width: 44px;
  min-height: 44px;
}
.discovery-trigger svg {
  display: block;
  color: currentColor;
}
.native-categories::backdrop {
  background: rgb(15 24 24 / 45%);
}
:is(a, button, input, summary):focus-visible {
  outline: 2px solid #4c6a80;
  outline-offset: 3px;
}
[id^="ad-banner"][hidden] {
  display: none !important;
}
.pair-destinations {
  display: flex;
  overflow-x: auto;
  max-width: 100%;
  gap: 6px;
}
.pair-destinations a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 16px;
  color: inherit;
  text-decoration: none;
}
.pair-destinations a[aria-current] {
  background: #e6ede7;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
}

.category-destinations a {
  border: 1px solid #d0d4d7;
  border-top: 0;
}
.category-destinations a:first-child {
  border-top: 1px solid #d0d4d7;
}
.native-categories {
  background: #fff;
  color: #2d3337;
}

header nav a[aria-current="page"],
footer a[aria-current="page"] {
  color: var(--accent, #315b44);
  box-shadow: inset 0 -2px currentColor;
  text-decoration: none;
}

body[data-design-site] .reading-home .reading-summary {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 6px;
}
body[data-design-site] .reading-home {
  max-width: none;
  width: 100%;
  padding-inline: 0;
  margin-inline: 0;
}
body[data-design-site] .reading-home .reading-section-heading {
  padding-inline: 0;
}
[data-final-band] {
  grid-column: 1/-1 !important;
}
[data-final-band] .image-cell {
  aspect-ratio: 3/1 !important;
  height: auto !important;
  max-height: 180px;
  min-height: 0 !important;
}

body[data-design-site="Game49"] .reference-game.game-link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-decoration: none;
  padding: 8px;
}
.listing-summary {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 6px;
}
.reference-copy {
  min-width: 0;
}
.reference-game.game-link .image-cell {
  width: 100%;
  height: 100%;
  min-height: 78px;
  aspect-ratio: 4/3;
}
.include-reference {
  border: 0;
  font-size: 13px;
  justify-self: end;
  padding: 2px 10px;
  gap: 6px;
}
.reference-slip {
  padding: 0;
  gap: 0;
}
.reference-game.game-link .listing-summary {
  margin-top: 6px;
  color: var(--ink);
}

body[data-page-kind] header nav[aria-label="Main navigation"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  min-height: 44px !important;
  height: 44px;
  margin: 0;
  padding-block: 0;
  gap: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
body[data-page-kind] header nav[aria-label="Main navigation"] a {
  min-height: 44px !important;
  font-weight: 400;
  padding-block: 0;
}
body[data-page-kind] header nav[aria-label="Main navigation"]::-webkit-scrollbar {
  display: none;
}

.selection-receipt {
  gap: 0 10px;
  margin-top: 10px;
  padding: 6px 0 !important;
}
.selection-receipt [data-sheet-count] {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.selection-receipt :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.selection-receipt [hidden] {
  display: none !important;
}
.reference-tail {
  padding-top: 4px;
}
.reference-tail button {
  min-height: 44px;
  font-size: 14px;
}
@media (max-width: 379px) {
  body[data-design-site="Game49"] [data-home-reference-block] {
    padding-block: 0 !important;
    margin-bottom: 8px !important;
  }
  body[data-design-site="Game49"][data-design-page="home"]
    .reference-samples
    .reference-game.game-link {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }
}

body[data-design-site="Game49"] [data-game-grid][data-row-groups-ready] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body[data-design-site="Game49"] .catalogue-content-group {
  display: grid;
  grid-template-columns: repeat(var(--catalogue-columns), minmax(0, 1fr));
  align-items: start;
  width: 100%;
  min-width: 0;
  gap: 12px;
}
body[data-design-site="Game49"] .catalogue-content-group > * {
  min-width: 0;
}

/* This site's real related content supports short pages and genuine empty states. */
.page-support {
  margin: 20px 0 0;
}
.page-support > h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.support-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.support-game {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.support-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.support-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}
.support-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.support-copy strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.support-copy small {
  font-size: 13px;
  opacity: 0.75;
}
.support-copy > span {
  font-size: 14px;
  line-height: 1.5;
}
.support-game:focus-visible {
  outline: 3px solid var(--accent, currentColor);
  outline-offset: 3px;
}
.support-number {
  font-size: 13px;
  opacity: 0.65;
}
body[data-design-site] .reading-directory :is(h2, h3) {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
@media (min-width: 768px) {
  .support-art {
    max-height: 150px;
  }
}
@media print {
  .page-support,
  .gpt-lazy {
    display: none !important;
  }
}
.support-reference-pairs .support-group {
  grid-template-columns: 1fr;
}
.support-reference-pairs .support-game {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 8px;
  border: 1px solid var(--line);
}
.support-reference-pairs .support-art {
  height: 112px;
  aspect-ratio: auto;
}
@media (min-width: 768px) {
  .support-reference-pairs .support-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
