/* J-100. Homepage only. Artwork is shared with the original Detisfera theme. */
.j100-home {
  --night: #101247;
  --starlight: #fff7df;
  --cloud: #f6f3ff;
  background: var(--cloud);
}
.j100-home :is(.header-row, .footer-row, .home-content) {
  width: min(calc(100% - 2rem), 103rem);
}
.j100-home .site-header {
  background: linear-gradient(115deg, #15154d, #151858 56%, #101447);
  border-block-end: 1px solid #c6caff45;
}
.j100-home .header-row { flex-wrap: wrap; }
.j100-home .j085-personal {
  position: relative;
  z-index: 1;
  flex: 1 0 100%;
  justify-content: center;
  align-items: center;
  gap: 0 .75rem;
  padding: 0 .7rem;
  color: white;
}
.j100-home .j085-personal a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  padding-inline: .6rem;
  font-size: .88rem;
  font-weight: 800;
  text-underline-offset: .22em;
}
.j100-home .j085-personal a::before {
  content: "";
  width: .85em;
  height: .85em;
  border: 1.5px solid #ffd568;
  border-radius: 2px;
  transform: rotate(-9deg);
}
.j100-home .j085-personal [data-j085-global-status]:empty { display: none; }

.j100-home .world-hero {
  padding: 0;
  background:
    radial-gradient(ellipse at 50% 7%, #161d59 0%, transparent 51%),
    radial-gradient(ellipse at 14% 36%, #2b43aa 0%, transparent 52%),
    radial-gradient(ellipse at 90% 45%, #3932a0 0%, transparent 56%),
    linear-gradient(#111448 5%, #1e236e 44%, #6954b4 77%, #eae5fa 95%, var(--cloud));
}
.j100-home .world-hero::before,
.j100-home .world-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.j100-home .world-hero::before {
  background:
    radial-gradient(circle at 27px 19px, #ffeabb 0 1px, #fbdc83aa 1.5px, transparent 3px) 0 0 / 167px 89px,
    radial-gradient(circle at 46px 39px, #eef0ffce 0 .8px, transparent 1.6px) 6px 9px / 83px 63px,
    radial-gradient(circle at 28px 56px, #b8c9ff9e 0 .7px, transparent 1.5px) 29px 5px / 107px 77px;
  mask-image: linear-gradient(black 56%, transparent 100%);
}
.j100-home .world-hero::after {
  inset-block-start: auto;
  height: clamp(6rem, 14vw, 12rem);
  background:
    linear-gradient(transparent, #eae6fc00 15%, #eae6fcb3 68%, var(--cloud)),
    url('art/lower-left-cloud.webp') left bottom / auto 100% no-repeat,
    url('art/lower-right-cloud.webp') right bottom / auto 100% no-repeat,
    radial-gradient(ellipse at 6% 100%, #e5e1fb 0 32%, transparent 67%) left bottom / 34% 94% no-repeat,
    radial-gradient(ellipse at 96% 100%, #e8e5ff 0 32%, transparent 67%) right bottom / 39% 93% no-repeat,
    radial-gradient(ellipse at 53% 100%, #e1dcfc 0 25%, transparent 67%) center bottom / 75% 93% no-repeat;
}
.j100-home .hero-stage {
  width: min(calc(100% - 1.25rem), 99rem);
  display: grid;
  place-items: center;
  grid-template: auto auto auto / minmax(0, 1fr);
  min-height: auto;
  padding-block: clamp(.65rem, 1.3vw, 1.3rem) .35rem;
}
.j100-home .hero-stage::before { display: none; }
.j100-home .hero-copy {
  grid-area: 1 / 1;
  z-index: 2;
  width: min(100%, 32rem);
  padding: 0;
  text-align: center;
}
.j100-home .hero-copy h1 {
  width: fit-content;
  margin: .15em auto 0;
  padding: .08em .16em .1em;
  color: var(--starlight);
  font-size: clamp(2.55rem, 5.2vw, 5.45rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
  text-shadow: 0 2px #58529e, 0 7px 27px #090a44, 0 0 20px #7682e578;
  position: relative;
  isolation: isolate;
}
.j100-home .hero-copy h1::before,
.j100-home .hero-copy h1::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3% 14% auto auto;
  width: 49%;
  height: 33%;
  border: .061em solid transparent;
  border-top-color: #ffda61;
  border-right-color: #ffda61;
  border-radius: 50%;
  transform: rotate(-15deg);
}
.j100-home .hero-copy h1::after {
  inset: auto auto 1% 28%;
  width: 33%;
  height: 20%;
  border-color: transparent transparent #ffda61 #ffda61;
}
.j100-home .hero-copy > p {
  max-width: 35ch;
  margin: .6rem auto .8rem;
  color: #fff;
  font-size: clamp(.95rem, 1.2vw, 1.17rem);
  line-height: 1.35;
  text-shadow: 0 1px 3px var(--night);
}
.j100-home .home-search { max-width: none; }
.j100-home .home-search .search-form {
  min-height: 52px;
  margin: 0;
  padding: 3px;
  border-radius: 99px;
  border: 1px solid #dedbfd;
  box-shadow: 0 8px 23px #1010478c, 0 0 20px #a0b5ff48;
}
.j100-home .home-search .search-form svg { display: block; width: 19px; height: 19px; }
.j100-home .home-search .search-form input { padding-inline: 1.95rem .12rem; }
.j100-home .home-search .search-form button {
  border-radius: 99px;
  background: linear-gradient(#ffe092, #ffc44b);
  padding-inline: clamp(.65rem, 1.5vw, 1.3rem);
  box-shadow: inset 0 0 0 1px #f2ac32;
}
.j100-home .home-search .query-examples { justify-content: center; gap: .1rem .35rem; margin-top: .4rem; }
.j100-home .home-search .query-examples a {
  min-height: 44px;
  padding-inline: .7rem;
  background: #232565;
  border-color: #acb9ff88;
  font-size: .85rem;
}
.j100-home .hero-stage .age-section {
  z-index: 2;
  grid-area: 2 / 1;
  justify-content: center;
  align-items: center;
  gap: .25rem .55rem;
  max-width: 35rem;
  margin: .45rem 0 0;
  padding: .32rem .3rem;
  border: 0;
  border-radius: .9rem;
  background: #171952c9;
  color: #fff;
}
.j100-home .hero-stage .age-list { justify-content: center; gap: .25rem; }
.j100-home .hero-stage :is(.age-section h2, .age-list a, .ux-age-reset) { font-size: .83rem; }
.j100-home .hero-stage .age-list a { min-height: 44px; padding-inline: .5rem; }
.j100-home .age-section .ux-age-reset { color: white; }
.j100-home .age-section :focus-visible,
.j100-home .j085-personal :focus-visible {
  outline: 3px solid #ffdc78;
  outline-offset: 2px;
}
.j100-home .search-form :focus-visible { outline-color: #381ba1; }
.j100-home .world-art {
  grid-area: 3 / 1;
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  height: clamp(7.5rem, 37vw, 15rem);
  overflow: visible;
}
.j100-home .world-kids,
.j100-home .world-planet {
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
}
.j100-home .world-kids {
  inset: auto auto 0 -1%;
  width: min(68%, 527px);
  --outer-edge: to right;
  --edge-width: 7%;
  --art-shape: radial-gradient(ellipse at 48% 50%, #000 51%, transparent 75%);
}
.j100-home .world-planet {
  inset: auto -1% 10% auto;
  width: min(48%, 440px);
  --outer-edge: to left;
  --edge-width: 13%;
  --art-shape: radial-gradient(ellipse at 50% 50%, #000 48%, transparent 72%);
}

/* Keep the existing vertical falloff and feather the two exposed raster edges. */
.j100-home :is(.world-kids, .world-planet) {
  mask-image: linear-gradient(var(--outer-edge), transparent, #000 var(--edge-width)), var(--art-shape);
  mask-composite: intersect;
}

.j100-home .category-panel {
  width: min(calc(100% - 1.25rem), 77rem);
  padding: 0 0 .1rem;
  text-align: center;
  color: #21154e;
}
.j100-home #categories-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.j100-home .category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.5rem, 1.12vw, 1.05rem);
  margin: 0;
}
.j100-home .category-grid > li {
  --sphere-size: clamp(5.15rem, 23vw, 7rem);
  flex: 0 0 var(--sphere-size);
  width: var(--sphere-size);
}
.j100-home .category-link {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  justify-content: center;
  gap: .12em;
  padding: .3rem .15rem;
  border: 2px solid #fff0fe;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 40% 22%, #ffffffe0, transparent 60%),
    radial-gradient(ellipse at 50% 53%, var(--tint) 24%, var(--tile) 74%);
  box-shadow: inset 0 0 14px #fff, 0 0 16px #fffc, 0 8px 21px #4d399d46;
  color: #1d1442;
  font-size: clamp(.68rem, 2.65vw, .9rem);
  line-height: 1.03;
}
.j100-home .category-link > span:last-child { max-width: 96%; overflow-wrap: normal; text-wrap: balance; }
.j100-home .category-link:hover {
  background: radial-gradient(ellipse at 45% 25%, #fff, var(--tile));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.j100-home .category-link:focus-visible {
  outline: 3px solid #3a1c8b;
  outline-offset: 3px;
}
.j100-home .category-icon {
  width: 47%;
  height: auto;
  aspect-ratio: 1;
  background: none;
  box-shadow: none;
}
.j100-home .category-icon img { width: 100%; height: 100%; }
.j100-home .category-panel > .text-action {
  min-height: 44px;
  margin-top: .27rem;
  color: #23154e;
}

.j100-home .home-content {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin: auto;
  padding-block: .35rem 1rem;
}
.j100-home .home-campaign-links { margin: 0; }
.j100-home .home-campaign-links a {
  border-color: #cdc3f0;
  background: #fdfaff;
  color: #422379;
}
.j100-home .home-content .collection-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: .8rem;
  margin-top: .6rem;
}
.j100-home .home-content .collection-grid > li:nth-child(n) {
  grid-column: auto;
  display: flex;
  flex-direction: column;
}
.j100-home .home-content .collection-grid > li:has(> .j085-actions:not([hidden])) > .collection-card {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  border-bottom: 0;
}
.j100-home .home-content .collection-grid > li > .j085-actions:not([hidden]) {
  margin: 0;
  padding: .4rem clamp(.8rem, 1.4vw, 1.25rem);
  border: 3px solid #fff;
  border-top: 1px solid #d9cdf7;
  border-radius: 0 0 1.3rem 1.3rem;
  background: #f3ecff;
}
.j100-home .home-content .collection-grid > li > .j085-actions button {
  min-height: 44px;
  color: #422379;
}
.j100-home .home-content .collection-grid :focus-visible {
  outline: 3px solid #3a1c8b;
  outline-offset: 2px;
}
.j100-home .home-content .collection-card {
  --card-ink: #26154f;
  --card-wash: #f3ecff;
  --card-edge: #d9cdf7;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: auto 1fr auto / minmax(0, 1fr);
  row-gap: .55rem;
  justify-items: start;
  align-items: start;
  flex: 1;
  min-height: 0;
  height: auto;
  padding: clamp(.8rem, 1.4vw, 1.25rem);
  border: 3px solid #fff;
  border-radius: 1.3rem;
  background:
    radial-gradient(ellipse at 9% 100%, #fffd 0%, transparent 44%),
    radial-gradient(ellipse at 97% 100%, #fffc 0%, transparent 44%),
    linear-gradient(145deg, var(--card-wash), var(--card-edge));
  box-shadow: 0 4px 16px #392b6b21;
  color: var(--card-ink);
  overflow: hidden;
}
.j100-home .home-content .collection-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(37%, 149px);
  aspect-ratio: 149 / 97;
  background: var(--collection-art, none) top right / contain no-repeat;
  mask-image: radial-gradient(ellipse at 100% 0%, #000 34%, transparent 76%);
}
.j100-home .home-content .collection-coloring { --card-wash: #f4eaff; --card-edge: #d3d8ff; }
.j100-home .home-content .collection-crafts { --card-wash: #fff1ea; --card-edge: #f8d5f1; }
.j100-home .home-content .collection-activities { --card-wash: #ecfff5; --card-edge: #c7eadf; }
.j100-home .home-content .collection-space { --card-wash: #e3edff; --card-edge: #d1d6ff; }
.j100-home .home-content .collection-school { --card-wash: #fff7db; --card-edge: #ffeadc; }
.j100-home .home-content .collection-stories {
  --card-ink: #fff;
  --card-wash: #171c5b;
  --card-edge: #293879;
  background:
    radial-gradient(ellipse at 85% 100%, #5545a4, transparent 62%),
    linear-gradient(140deg, var(--card-wash), var(--card-edge));
}
.j100-home .home-content .collection-copy {
  max-width: min(92%, 40ch);
  gap: .25rem;
}
.j100-home .home-content .collection-copy strong { font-size: clamp(1.12rem, 1.65vw, 1.62rem); }
.j100-home .home-content .collection-copy > span { font-size: .9rem; }
.j100-home .home-content .collection-stories .collection-copy { 
  border-radius: .3rem;
  background: linear-gradient(90deg, #171c5bd9 65%, #171c5b75);
}
.j100-home .home-content .collection-card .round-arrow { display: none; }
.j100-home .wide-collection-previews,
.j100-home .wide-collection-previews:has(> .wide-collection-preview:only-child) {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr));
  grid-row: 2;
  gap: .5rem;
  align-items: start;
  margin-block: .25rem;
  text-align: start;
}
.j100-home .wide-collection-previews:has(> .wide-collection-preview:only-child) {
  grid-template-columns: minmax(0, 14rem);
  justify-content: center;
  text-align: center;
}
.j100-home .wide-collection-preview {
  display: grid;
  gap: .25rem;
  font-size: .78rem;
  line-height: 1.17;
  font-weight: 750;
}
.j100-home .wide-collection-preview picture { display: contents; }
.j100-home .wide-collection-preview :is(img, .dictation-result-graphic) {
  width: 100%;
  height: clamp(6.4rem, 10vw, 9.5rem);
  padding: .15rem;
  border: 2px solid #fff;
  border-radius: .65rem;
  background: #fff;
  object-fit: contain;
}
.j100-home .wide-collection-action {
  display: block;
  grid-row: 3;
  padding: .43em .85em;
  border-radius: 99px;
  background: linear-gradient(#783db9, #5c2297);
  color: #fff;
  font-size: .83rem;
  font-weight: 900;
}
.j100-home main > .j085-block:has(> [data-j085-placement="picker"]) {
  padding: clamp(1.2rem, 3vw, 2.8rem);
  border: 3px solid white;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 27px 19px, #ffeabbe0 0 1px, transparent 2.5px) 0 0 / 89px 57px,
    radial-gradient(ellipse at 72% 115%, #765ad8, transparent 60%),
    linear-gradient(125deg, #151555, #2b2388 54%, #242060);
  text-align: center;
}
.j100-home main > .j085-block:has(> [data-j085-placement="picker"]) > h2 {
  color: var(--starlight);
  width: fit-content;
  margin: .75rem auto .25rem;
  padding: .12em .42em;
  border-radius: .35em;
  background: #252168;
}
.j100-home [data-j085-placement="picker"] {
  background: #ffd568;
  border-color: #ffe18e;
  border-radius: 99px;
  color: #251549;
  font-weight: 900;
}
.j100-home [data-j085-placement="picker"]:focus-visible {
  outline-color: #fff1a2;
}
.j100-home .site-footer {
  border-top: 1px solid #ada8e3;
  background: linear-gradient(110deg, #181754, #30215d);
}
@media (min-width: 39rem) {
  .j100-home .home-content .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (36rem <= width < 52rem) {
  .j100-home .category-grid {
    max-width: 31rem;
    margin-inline: auto;
  }
}
@media (min-width: 52rem) {
  .j100-home .category-grid > li { --sphere-size: clamp(5.6rem, 10.55vw, 9.1rem); }
  .j100-home .category-link { font-size: clamp(.78rem, 1.15vw, 1.02rem); }
  .j100-home .home-content .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 63rem) {
  .j100-home .hero-stage {
    grid-template-rows: auto auto;
    padding-bottom: .75rem;
    min-height: 17rem;
  }
  .j100-home .hero-copy { width: min(36.5%, 34rem); }
  .j100-home .hero-stage .age-section { max-width: 39%; }
  .j100-home .world-art {
    position: absolute;
    grid-area: auto;
    inset: 0;
    height: auto;
  }
  .j100-home .world-kids {
    inset: .05rem auto auto 0;
    width: min(39%, 527px);
    --edge-width: 8%;
    --art-shape: radial-gradient(ellipse at 44% 51%, #000 59%, transparent 79%);
  }
  .j100-home .world-planet {
    inset: .1rem 0 auto auto;
    width: min(33%, 440px);
    --edge-width: 16%;
    --art-shape: radial-gradient(ellipse at 53% 49%, #000 51%, transparent 76%);
  }
}
@media (min-width: 84rem) {
  .j100-home .header-row { flex-wrap: nowrap; }
  .j100-home .j085-personal { flex: none; width: auto; padding: 0; }
  .j100-home .j085-personal a {
    background: #252665;
    border: 1px solid #ced2ff5c;
    border-radius: 99px;
    padding-inline: .65rem;
    white-space: nowrap;
  }
  .j100-home .j085-personal [data-j085-global-status] {
    position: absolute;
    inset: calc(100% + .25rem) 0 auto auto;
    padding: .35rem .65rem;
    border-radius: .5rem;
    background: #171952;
  }
}
@media (forced-colors: active) {
  .j100-home .category-link, .j100-home .wide-collection-action { border: 2px solid LinkText; }
}
