/* 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-bottom: 1px solid #d3ddd4;
  border-left: 3px solid #b2c2b4;
}
.category-destinations a[aria-current] {
  border-left-color: #315b44;
}
.native-categories {
  background: #f8fbf7;
  color: #24352c;
}

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-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;
}

body[data-design-site] .reading-directory .reading-summary {
  display: block;
}

/* 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-topic-pairs .support-art {
  aspect-ratio: 16/9;
}
.support-topic-pairs .support-copy {
  border-top: 1px solid var(--line);
  padding-top: 7px;
}
@media (min-width: 768px) {
  .support-topic-pairs .support-game {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .support-topic-pairs .support-art {
    height: 144px;
    aspect-ratio: auto;
  }
}
