/* Owner-approved cinematic Home. The gradient belongs only to the main wrapper. */
.source-home {
  background:
    radial-gradient(circle at 14% 8%, rgba(37,99,235,.13), transparent 34rem),
    radial-gradient(circle at 87% 20%, rgba(124,58,237,.12), transparent 38rem),
    linear-gradient(180deg,
      #071421 0%,
      #071725 24%,
      #06131f 50%,
      #071422 76%,
      #06111f 100%) !important;
}

.source-home .entry-content,
.source-home .wp-block-uagb-container,
.source-home .uagb-container-inner-blocks-wrap,
.source-home .ndj-home-a,
.source-home .ndj-home-b,
.source-home .ndj-home-c,
.source-home #ndj-home-portals,
.source-home #latest-wonders,
.source-home #latest-books,
.source-home #latest-tools {
  background: transparent !important;
}

/* Restore/retain the real accepted shell geometry. */
.source-home .ndj-home-shell {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* Full image in normal flow, before the preserved content shells. */
.source-home .entry-content{padding-top:clamp(24px,5vw,64px)}
.source-home .ndj-home-a{padding-top:0!important}
.source-home .ndj-home-cinematic-hero{position:relative;width:100%;margin:0;padding:0!important;border:0;border-radius:0!important;background:transparent!important;box-shadow:none;overflow:visible}
.source-home .ndj-home-cinematic-hero::after{display:none}
.ndj-home-hero-art img{display:block;width:100%;height:auto;min-height:0;max-height:none;object-fit:contain;border:0;border-radius:0}
.source-home .ndj-home-actions{position:static;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:28px 28px 6px;background:transparent}
.ndj-home-cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.78rem 1.25rem;border:1px solid rgba(255,255,255,.32);border-radius:13px;background:rgba(8,23,43,.84);color:#fff!important;font-weight:800;line-height:1.1;text-decoration:none!important;box-shadow:0 10px 24px rgba(0,0,0,.22)}
.ndj-home-cta:hover,.ndj-home-cta:focus-visible{background:rgba(27,43,76,.95);border-color:rgba(255,255,255,.66);transform:translateY(-1px)}
.ndj-home-cta:focus-visible{outline:2px solid #fff;outline-offset:3px}
.ndj-home-cta-primary{background:linear-gradient(135deg,#5b13ff,#7b00f5);border-color:rgba(255,255,255,.22)}
.ndj-home-cta-primary:hover,.ndj-home-cta-primary:focus-visible{background:linear-gradient(135deg,#6a23ff,#8a12ff)}
/* ---------- PORTAL SECTION ---------- */

.source-home #ndj-home-portals {
  margin-top: 0 !important;
  padding: 34px 0 54px !important;
}

.source-home #ndj-home-portals .ndj-home-section-heading {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  text-align: center;
}

.source-home #ndj-home-portals .ndj-home-section-label {
  color: #8bb8ff;
}

.source-home #ndj-home-portals h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(2rem,4vw,3rem);
  letter-spacing: -.035em;
}

.source-home #ndj-home-portals .ndj-home-section-heading p {
  margin-inline: auto;
  color: #cbd5e1;
  max-width: 760px;
}

.source-home #ndj-home-portals .ndj-home-icon-portal-grid {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 18px;
}

.source-home #ndj-home-portals .ndj-home-icon-portal-card {
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: #0b1b2d;
  box-shadow: 0 18px 45px rgba(0,0,0,.26);
}

.source-home #ndj-home-portals .ndj-home-icon-portal-card:hover {
  border-color: rgba(167,139,250,.50);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
}

.source-home #ndj-home-portals .ndj-home-icon-image-wrap {
  background: #f7f4e8;
}

.source-home #ndj-home-portals .ndj-home-icon-card-body {
  background:
    radial-gradient(circle at top right,rgba(109,40,217,.13),transparent 14rem),
    #0b1b2d;
}

.source-home #ndj-home-portals .ndj-home-icon-card-body span { color: #9fc4ff; }
.source-home #ndj-home-portals .ndj-home-icon-card-body strong { color: #fff; }
.source-home #ndj-home-portals .ndj-home-icon-card-body em { color: #c2cfdf; }

/* ---------- RECENTLY ADDED / LOWER HOME ---------- */

/*
  Only the surrounding page is cinematic.
  The actual accepted light cards keep their original dimensions.
*/
.source-home #latest-wonders,
.source-home #latest-books,
.source-home #latest-tools {
  width: auto !important;
  max-width: none !important;
}

.source-home #latest-wonders {
  margin-top: 28px !important;
}

.source-home .ndj-home-b,
.source-home .ndj-home-c {
  padding-top: 32px !important;
  padding-bottom: 36px !important;
}

/* Do not enlarge or restyle the section objects themselves. */
.source-home #latest-wonders .ndj-home-section-heading,
.source-home .ndj-home-books-heading,
.source-home .ndj-home-tools-heading {
  width: auto !important;
}

/* Give the very end of Home enough dark breathing room before the footer. */
.source-home .entry-content {
  padding-bottom: 44px;
}


@media(max-width:1180px){.source-home #ndj-home-portals .ndj-home-icon-portal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.source-home .ndj-home-actions{padding:16px 14px 24px}.ndj-home-cta{flex:1 1 calc(50% - 12px);min-width:210px}}
@media(max-width:760px){.source-home #ndj-home-portals .ndj-home-icon-portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.source-home #ndj-home-portals .ndj-home-icon-portal-grid{grid-template-columns:1fr}.ndj-home-cta{flex-basis:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.ndj-home-cta:hover,.ndj-home-cta:focus-visible{transform:none}}
