/* 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 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}
.category-destinations a {
  padding-inline: 0;
  border-bottom: 1px solid #d1d9d3;
}
.native-categories {
  background: #fbfcf8;
  color: #22332e;
}

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] .reading-home > ol > li:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
body[data-design-site] .reading-home > ol > li:last-child:nth-child(odd) .reading-card {
  flex-direction: row;
  align-items: start;
}
body[data-design-site] .reading-home > ol > li:last-child:nth-child(odd) .reading-art {
  width: 104px;
  aspect-ratio: 4/3;
}
body[data-design-site] .reading-home > ol > li:last-child:nth-child(odd) .reading-copy {
  width: auto;
  flex: 1;
}

body[data-page-kind] header nav[aria-label="Main navigation"] {
  display: flex;
  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;
}

body[data-design-site] .reading-directory .reading-summary {
  display: block;
}

@media (max-width: 379px) {
  body[data-design-site="Game44"] .reading-directory > li:only-child {
    grid-column: 1/-1;
  }
  body[data-design-site="Game44"] .reading-directory > li:only-child .reading-art {
    aspect-ratio: auto;
    height: 96px;
  }
}
@media (min-width: 768px) {
  body[data-design-site="Game44"] .reading-directory .reading-art {
    max-height: 240px;
  }
}

body[data-design-site="Game44"] [data-game-grid][data-row-groups-ready] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body[data-design-site="Game44"] .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="Game44"] .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 {
    display: none !important;
  }
}
.support-colour-ribbons .support-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.support-colour-ribbons .support-art {
  height: 96px;
  aspect-ratio: auto;
}
.support-colour-ribbons .support-copy {
  padding: 0 4px 8px;
}
.support-colour-ribbons .support-game {
  border-bottom: 2px solid var(--line);
}

/* Palette is a sequence of colour bands, each with a direct route. */
header nav a,
.footer-links a {
  text-decoration: none;
}
.discovery-trigger {
  border: 0;
}
.native-categories {
  background: #fafbf8;
  color: #26333a;
  border-color: #bec8c2;
}
.category-destinations a[aria-current],
.category-destinations a:hover {
  background: #e4ebe7;
  color: #26333a;
}
body[data-design-site="Game44"] .band-heading h2 {
  flex: 1;
}
body[data-design-site="Game44"] .band-heading h2 a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
body[data-design-site="Game44"] .palette-band {
  margin-bottom: 12px;
}
body[data-design-page="home"] .palette-band [data-band-more] {
  display: none;
}
body[data-design-site="Game44"] .palette-card.game-link {
  border: 0;
  border-radius: 2px;
}
body[data-design-site="Game44"] .palette-card .palette-copy {
  padding: 8px 10px;
}
body[data-design-site="Game44"] .reading-home .reading-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
}
body[data-design-site="Game44"] .reading-home > ol {
  grid-template-columns: 1fr;
}
body[data-design-site="Game44"] .reading-home .reading-art {
  width: 86px;
  height: 100%;
  aspect-ratio: auto;
}
body[data-design-site="Game44"] .reading-home .reading-card h3 {
  margin: 0;
  font-weight: 500;
}
body[data-design-site="Game44"] .reading-home .reading-summary {
  font-size: 14px;
  line-height: 1.45;
}
body[data-design-site="Game44"] .reading-home .reading-context {
  display: none;
}
@media (min-width: 768px) {
  body[data-design-site="Game44"] .reading-home > ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
body[data-design-site="Game44"] .palette-card .palette-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
  max-height: 2.6em;
  padding: 0;
  margin: 0;
}
