.nx-hub { display: grid; gap: 14px; }
.nx-hero { min-height: 310px; }
.nx-hero .hero-body { width: 69%; padding-block: 35px; }
.nx-hero h1 { font-size: clamp(1.9rem,4.1vw,3.55rem); line-height: 1.18; color: #f4fff6; margin-block-end: 14px; max-width: 18ch; text-wrap: balance; }
.nx-hero p { max-width: 48ch; font-size: clamp(.86rem,1.4vw,1rem); }
.nx-hero-actions { margin-block-start: 23px; }
.nx-primary { color: #18473b; background: #d3efbb; }
.nx-primary:hover { background: #e5f9d5; }
.nx-secondary { color: #edf9e8; border-color: #97bca480; }
.nx-secondary:hover { background: #ffffff1f; }
.nx-soul-bar { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 15px; background: #e6efe5; border: 1px solid #d9e7d8; border-radius: 13px; }
.nx-soul-bar:hover { border-color: #a7c5af; }
.nx-soul-bar > span:nth-child(2) { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nx-soul-bar strong { font-weight: 850; letter-spacing: .06em; color: var(--green-dark); }
.nx-soul-bar small { color: #466353; }
.nx-product { display: flex; gap: 14px; align-items: start; padding: clamp(14px,2.3vw,24px); }
.nx-product .stack { gap: 7px; }
.nx-product a, .nx-domain-card button, .nx-privacy .button { justify-self: start; width: fit-content; }
.nx-product a { min-height: 39px; }
.nx-domain-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.nx-domain { display: flex; align-items: center; min-width: 0; text-align: start; gap: 10px; min-height: 70px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.nx-domain:hover { border-color: #9cbfa9; background: #fbfdfa; }
.nx-domain > span:nth-child(2) { display: grid; min-width: 0; }
.nx-domain strong { font-size: .94rem; }
.nx-domain small { font-size: .8rem; line-height: 1.5; }
.nx-domain-card { display: grid; gap: 13px; align-content: start; padding: clamp(15px,2.1vw,22px); }
.nx-domain-title { display: flex; align-items: center; gap: 11px; }
.nx-domain-card > p { color: var(--muted); }
.mark.creative { background: #f0e5f4; color: #784289; }
.mark.business { background: #f2ead8; color: #775724; }
.mark.family { background: #f7e6e8; color: #8a4d59; }
.nx-creator-grid { display: grid; align-items: start; grid-template-columns: minmax(230px,.85fr) minmax(0,1.65fr); gap: 16px; }
.nx-creator-grid > .card, .nx-privacy > .card { padding: clamp(15px,2.5vw,28px); }
.nx-creator-grid textarea { min-height: 6rem; }
.nx-brief { display: grid; grid-template-columns: minmax(100px,.6fr) minmax(0,1.4fr); gap: 8px 12px; margin-block: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f7faf6; }
.nx-brief dt { font-weight: 700; font-size: .88rem; }
.nx-brief dd { margin: 0; }
.nx-privacy { align-items: start; }
.nx-privacy-setting { padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.nx-privacy-setting label { font-weight: 740; color: var(--ink); }
.nx-privacy-setting small { display: block; margin-inline-start: 23px; margin-block-start: 3px; }
.nx-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.nx-metric { padding: 10px; border-radius: 10px; background: #edf4ea; }
.nx-metric strong { display: block; font-size: 1.24rem; color: var(--green-dark); }
.links .nx-link { color: var(--green-dark); }
@media (max-width: 930px) {
  .nx-domain-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nx-creator-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 490px) {
  .nx-hero .hero-body { width: 100%; padding-block: 25px; }
  .nx-hero h1 { font-size: 2.05rem; }
  .nx-hero p { max-width: 32ch; }
  .nx-hero-actions { margin-block-start: 15px; }
  .nx-hero-actions .button { font-size: .78rem; padding-inline: .48rem; }
  .nx-domain-grid.detailed { grid-template-columns: minmax(0,1fr); }
  .nx-domain { padding: 8px; gap: 7px; }
  .nx-domain .mark { inline-size: 32px; block-size: 32px; }
  .nx-domain .mark svg { inline-size: 17px; }
  .nx-brief { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .nx-brief dd + dt { margin-block-start: 6px; }
}

/* Parent navigation and shared components for every learning route. */
:root {--background:#f8f7fc;--ink:#242534;--muted:#575665;--line:#dfdce7;--green:#5841ab;--green-dark:#44327b;--tint:#ede8ff}
.sidebar,.topbar {background:#fff}
.family-parent {display:inline-flex;align-items:center;min-height:42px;font-size:.96rem;font-weight:800;color:var(--green-dark)}
.family-parent:hover {text-decoration:underline;text-underline-offset:4px}
.brand-name span {color:#7959b3}
.brand small {font-size:.78rem}
.search-button {background:#f6f4fa}
.links a {color:#555060}.links a:hover {background:#f6f3fb}
.links a[aria-current=page] {background:var(--tint);color:var(--green-dark)}
.button {border-radius:999px}.button-green,.hero-composer .send,.nx-primary {background:#242534;color:white}
.button-green:hover,.hero-composer .send:hover,.nx-primary:hover {background:#514087;color:white}
.nx-secondary {color:#312b42;border-color:#cdc7db;background:white}
.nx-secondary:hover {background:#f4f0fe}
.hero,.hero.nx-hero {border-radius:23px;color:#242534;background:#e4f4ee}
.hero.nx-hero {
  display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
  grid-template-areas:"copy art"; padding:12px; background:#ede8ff;
}
.hero::before,.nx-hero::before {display:none}
.hero .hero-art {inset-inline-end:12px;inset-block:12px;width:37%;height:calc(100% - 24px);border-radius:16px;mask-image:none;opacity:1}
:root[dir=rtl] .hero .hero-art {mask-image:none}
.hero .hero-body {width:61%}
.hero.nx-hero .hero-art {
  grid-area:art; display:block; position:static; width:100%; height:auto; object-fit:contain; z-index:auto;
}
.hero.nx-hero .hero-body {grid-area:copy; width:auto}
.lab-intro > .button {border-radius:12px}
.hero .hero-label {color:#205743;background:#fff;border-color:#badbce}
.hero h1,.hero h2 {color:#292534}.hero p {color:#504c5c}
.hero-composer .composer {background:white;border-color:#c7d6ce}
.nx-soul-bar,.nx-metric,.nx-brief {background:#f0ebfa;border-color:#ded7e9}
.nx-soul-bar small,.date-label {color:#595364}
.avatar {background:#eee9fa}
.nx-products .nx-product:first-child {background:#e4f4ee}.nx-products .nx-product:last-child {background:#fff0df}
.nx-domain:hover,.card a.button-outline:hover {background:#f6f3fd;border-color:#b7a4d4}
:where(a,button,input,textarea,select,summary):focus-visible {outline-color:#7454ad}
@media(max-width:740px){
  .hero:not(.nx-hero) {flex-direction:column-reverse;align-items:stretch;gap:0;padding:12px;min-height:0}
  .hero:not(.nx-hero) .hero-art {position:static;width:100%;height:auto;object-fit:contain;z-index:auto}
  .hero:not(.nx-hero) .hero-body {width:100%;padding:12px 4px 17px}
}
@media(max-width:650px){
  .hero.nx-hero {grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "art";min-height:0}
  .hero.nx-hero .hero-body {padding:12px 4px 17px}
  .lab-intro {flex-direction:column;align-items:flex-start;gap:12px}
  .crumb {gap:6px;overflow:hidden}.crumb strong {overflow:hidden;text-overflow:ellipsis}
  .family-parent {font-size:.86rem;flex:none}
}
@media(max-width:370px){.crumb .mobile-brand{display:none}.topbar {gap:4px}}
