:root {
  --explore-ink: #17332d;
  --explore-moss: #2e6a55;
  --explore-leaf: #88a861;
  --explore-sun: #f5bd55;
  --explore-paper: #fbf7e9;
  --explore-line: #b8c7a7;
}

.lx-explore-page,
.lx-family-tree-page {
  background:
    radial-gradient(circle at 8% 10%, rgba(245, 189, 85, .24), transparent 26rem),
    linear-gradient(135deg, #f8f4e5 0%, #eef4e7 54%, #e4efe8 100%);
  color: var(--explore-ink);
}

/* Explore catalogue */

.lx-explore-shell {
  width: min(78rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
}

.lx-explore-hero {
  max-width: 56rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.lx-explore-kicker {
  margin: 0 0 .65rem;
  color: var(--explore-moss);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lx-explore-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 6.5vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .96;
}

.lx-explore-hero > p:last-child {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
}

.lx-explore-toys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.lx-explore-toy-card {
  min-width: 0;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1rem;
  border: 1px solid rgba(23, 51, 45, .18);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .72);
  color: inherit;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 .9rem 2.4rem rgba(42, 67, 53, .06);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background-color .16s ease;
}

.lx-explore-toy-card:hover,
.lx-explore-toy-card:focus-visible {
  border-color: var(--explore-moss);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1.1rem 2.8rem rgba(42, 67, 53, .1);
  transform: translateY(-3px);
}

.lx-explore-toy-card strong {
  display: block;
  margin-top: .9rem;
  font: 600 1.3rem Georgia, 'Times New Roman', serif;
  line-height: 1.15;
}

.lx-explore-toy-card small {
  display: block;
  max-width: 14rem;
  margin-top: .35rem;
  color: rgba(23, 51, 45, .78);
  font-size: .9rem;
  line-height: 1.35;
}

.lx-explore-toy-card__icon {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  background: rgba(136, 168, 97, .09);
  box-shadow: inset 0 0 0 1px rgba(46, 106, 85, .08);
}


.lx-explore-toy-card__icon-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* Genealogy Explorer catalogue icon */

.lx-explore-toy-card__icon--genealogy {
  background: #07191d;
}

.lx-explore-toy-card__icon--genealogy::before,
.lx-explore-toy-card__icon--genealogy::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3.25rem;
  height: 1.75rem;
  border: solid #7de2c2;
  border-width: 1px 0 0 1px;
  border-radius: 50%;
  opacity: .7;
  transform: translate(-50%, -50%) rotate(18deg);
}

.lx-explore-toy-card__icon--genealogy::after {
  transform: translate(-50%, -50%) rotate(142deg) scale(.72);
}

.lx-explore-toy-card__icon--genealogy span {
  position: absolute;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #f5bd55;
  box-shadow: 0 0 .7rem rgba(245, 189, 85, .8);
}

.lx-explore-toy-card__icon--genealogy span:nth-child(1) { left: .65rem; top: 2rem; }
.lx-explore-toy-card__icon--genealogy span:nth-child(2) { left: 1.85rem; top: .75rem; }
.lx-explore-toy-card__icon--genealogy span:nth-child(3) { right: .65rem; top: 1.4rem; }
.lx-explore-toy-card__icon--genealogy span:nth-child(4) { right: 1.25rem; bottom: .65rem; }

/* Family Tree catalogue icon */

.lx-explore-toy-card__icon--family-tree {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .3rem;
  align-items: end;
  padding: .5rem .4rem .55rem;
}

.lx-explore-toy-card__icon--family-tree::before {
  content: '';
  position: absolute;
  top: .85rem;
  left: 14%;
  right: 14%;
  height: 1.8rem;
  border: solid var(--explore-line);
  border-width: 2px 2px 0;
}

.lx-explore-toy-card__icon--family-tree span {
  z-index: 1;
  width: .82rem;
  height: .82rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--explore-leaf);
}

/* Inventory Size catalogue icon */

.lx-explore-toy-card__icon--inventory-size {
  display: grid;
  grid-template-columns: repeat(4, .62rem);
  gap: .3rem;
  align-items: end;
  justify-content: center;
  padding: .65rem 0;
}

.lx-explore-toy-card__icon--inventory-size span {
  display: block;
  width: .62rem;
  border-radius: .4rem .4rem .18rem .18rem;
  background: var(--explore-leaf);
}

.lx-explore-toy-card__icon--inventory-size span:nth-child(1) {
  height: 42%;
}

.lx-explore-toy-card__icon--inventory-size span:nth-child(2) {
  height: 72%;
  background: var(--explore-moss);
}

.lx-explore-toy-card__icon--inventory-size span:nth-child(3) {
  height: 56%;
}

.lx-explore-toy-card__icon--inventory-size span:nth-child(4) {
  height: 86%;
  background: var(--explore-moss);
}

/* LexiScope catalogue icon */
.lx-explore-toy-card__icon--lexiscope span{position:absolute;width:1rem;height:1rem;border:2px solid var(--explore-moss);border-radius:50%;background:var(--explore-paper)}
.lx-explore-toy-card__icon--lexiscope span:nth-child(1){left:.55rem;top:.55rem}.lx-explore-toy-card__icon--lexiscope span:nth-child(2){right:.55rem;top:.55rem}.lx-explore-toy-card__icon--lexiscope span:nth-child(3){left:.55rem;bottom:.55rem}.lx-explore-toy-card__icon--lexiscope span:nth-child(4){right:.55rem;bottom:.55rem}
.lx-explore-toy-card__icon--lexiscope::before,.lx-explore-toy-card__icon--lexiscope::after{content:'';position:absolute;left:1.3rem;right:1.3rem;height:2px;background:var(--explore-sun);transform:rotate(45deg);transform-origin:center}.lx-explore-toy-card__icon--lexiscope::before{top:1.25rem}.lx-explore-toy-card__icon--lexiscope::after{bottom:1.25rem}

/* Shared Family Tree typography retained for the toy page */

.lx-family-tree {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 0;
}

.lx-family-tree__header h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}

.lx-family-tree__header > p:last-child {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

@media (max-width: 64rem) {
  .lx-explore-toys {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .lx-explore-toys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lx-explore-toy-card {
    min-height: 11rem;
  }
}

@media (max-width: 30rem) {
  .lx-explore-toys {
    grid-template-columns: 1fr;
  }

  .lx-explore-toy-card {
    min-height: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lx-explore-toy-card {
    transition: none;
  }

  .lx-explore-toy-card:hover,
  .lx-explore-toy-card:focus-visible {
    transform: none;
  }
}

/* Shared manual advertising zone for explicitly approved Explore routes. */

.lx-explore-ad-zone {
  width: min(72rem, calc(100% - 2rem));
  min-height: 5.625rem;
  margin: 10rem auto 4rem;
}

.lx-explore-ad-zone > .adsbygoogle {
  width: 100%;
}
