/* Nexsteps final accessible design */
:root{--nx-ink:#143847;--nx-sea:#087e78;--nx-focus:#a56608}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--nx-focus)!important;outline-offset:3px}
.nx-youth-gateway{padding:65px 0;background:#f6f8fc;color:#153a49}
.nx-youth-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.nx-youth-heading>div{max-width:690px}
.nx-youth-heading h2{font-size:clamp(31px,4vw,52px);letter-spacing:-.045em;line-height:1.1;margin:10px 0 15px;color:#133c50}
.nx-youth-heading p{font-size:18px;color:#3c5861;line-height:1.55;margin:0}
.nx-youth-eyebrow{display:inline-block;background:#d5f3e9;color:#075f57;border-radius:40px;font-weight:850;padding:9px 15px;font-size:13px}
.nx-youth-all{display:inline-flex;padding:12px 18px;background:#103b4b;color:white!important;border-radius:999px;font-weight:850;text-decoration:none}
.nx-youth-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.nx-youth-card{min-width:0;min-height:302px;display:flex;flex-direction:column;align-items:start;gap:10px;border-radius:26px;padding:26px;color:#183b49!important;text-decoration:none!important;box-shadow:0 12px 22px #14384813;transition:transform .2s,box-shadow .2s}
.nx-youth-card:hover{transform:translateY(-4px);box-shadow:0 18px 35px #14384822}
.nx-youth-one{background:#dff4e9}.nx-youth-two{background:#ffe4b8}.nx-youth-three{background:#e4e7ff}.nx-youth-four{background:#f8dfec}
.nx-youth-emoji{display:grid;place-items:center;background:#ffffffaa;border-radius:20px;width:73px;height:73px;font-size:37px}
.nx-youth-card-type{font-size:11px;letter-spacing:.1em;font-weight:900;color:#36535d}
.nx-youth-card strong{font-size:clamp(21px,2vw,28px);line-height:1.12}
.nx-youth-card>span:not(.nx-youth-emoji):not(.nx-youth-card-type){font-size:15px;line-height:1.45}
.nx-youth-card b{margin-top:auto;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.nx-hero-photo{border-radius:30px 75px 30px 30px!important;box-shadow:14px 14px 0 #e9b661,0 22px 45px #143c4620!important}
.nx-four-services .nx-service-photo-card{border-radius:24px!important}
.nx-four-services .nx-service-photo-card .service-body h3{font-size:clamp(22px,2vw,28px)}
.nx-resource-links a{border-radius:20px!important;box-shadow:0 8px 22px #14394813}
.nx-resource-links a:nth-child(1){background:#e1f5eb!important}
.nx-resource-links a:nth-child(2){background:#fff0d5!important}
.nx-resource-links a:nth-child(3){background:#e8e9ff!important}
.nx-final-youth .hero h1{font-weight:900;letter-spacing:-.045em}
.nx-final-youth .hero{background:linear-gradient(115deg,#102f4b,#0c736f);color:#fff}
.nx-final-youth .btn,.nx-final-youth .button,.nx-final-youth .primary{border-radius:999px}
.nx-final-youth .panel,.nx-final-youth .tile,.nx-final-youth .tool,.nx-final-youth .workspace,.nx-final-youth .side,.nx-final-youth .card{border-radius:22px}
.nx-final-youth .photo-grid img{border-radius:24px}
.nx-final-youth .choice span,.nx-final-youth .choice,.nx-final-youth .topic{border-radius:16px}
.nx-final-youth .nx-activity-strip{margin:24px 0 0;display:flex;flex-wrap:wrap;gap:10px}
.nx-final-youth .nx-activity-strip a{display:inline-flex;align-items:center;padding:11px 16px;color:#123b49;background:#fff3cc;text-decoration:none;font-weight:800;border-radius:999px}
.nx-final-youth .nx-activity-strip a:nth-child(2){background:#dff5eb}
.nx-final-youth .nx-activity-strip a:nth-child(3){background:#e7e9ff}
.nx-final-youth .nx-activity-strip a:hover{text-decoration:underline}
.nx-final-youth .grid .panel:nth-child(6n+1),.nx-final-youth .steps li:nth-child(6n+1){background:#e7f6ec}
.nx-final-youth .grid .panel:nth-child(6n+2),.nx-final-youth .steps li:nth-child(6n+2){background:#fff0d3}
.nx-final-youth .grid .panel:nth-child(6n+3),.nx-final-youth .steps li:nth-child(6n+3){background:#e8ecff}
.nx-final-youth .grid .panel:nth-child(6n+4),.nx-final-youth .steps li:nth-child(6n+4){background:#f9e6ee}
.nx-final-youth .grid .panel:nth-child(6n+5),.nx-final-youth .steps li:nth-child(6n+5){background:#e3f5f7}
.nx-final-youth .grid .panel:nth-child(6n+6),.nx-final-youth .steps li:nth-child(6n+6){background:#f1edde}
.nx-final-youth .grid .panel p{color:#345662}
.nx-final-youth .tool-head .emoji{background:#ffedc8}
.nx-final-youth .topic:hover,.nx-final-youth .choice:hover{border-color:#087e78}
.nx-final-youth .hero h1,.nx-final-youth .hero p{max-width:900px}
.nx-final-youth .mission-head{background:#143e53}
.nx-final-youth .mission{border-radius:23px}
.nx-final-youth .topic-list button:nth-child(5n+1){background:#eaf7ee}
.nx-final-youth .topic-list button:nth-child(5n+2){background:#fff2db}
.nx-final-youth .topic-list button:nth-child(5n+3){background:#edf0ff}
.nx-final-youth .topic-list button:nth-child(5n+4){background:#fbe9f0}
.nx-final-youth .topic-list button:nth-child(5n+5){background:#e7f5f7}
.nx-final-youth .topic[aria-pressed="true"]{border-color:#087e78!important;box-shadow:inset 0 0 0 1px #087e78}
.nx-final-youth .steps li,.nx-final-youth .grid .panel{border-color:#d0e4dd!important}
.nx-learning-pages .hero{background:linear-gradient(115deg,#123b58,#0c746e)!important}
.nx-learning-pages .nx-chapter-card:nth-child(4n+1){background:#f1faf5}
.nx-learning-pages .nx-chapter-card:nth-child(4n+2){background:#fff7e9}
.nx-learning-pages .nx-chapter-card:nth-child(4n+3){background:#f1f1ff}
.nx-learning-pages .nx-chapter-card:nth-child(4n+4){background:#fff0f6}
.nx-learning-pages .nx-chapter-details{background:transparent}
.nx-transition-return{background:#eaf5f1;padding:32px 0;border-block:1px solid #d2e7df}
.nx-transition-return-inner{display:flex;gap:25px;align-items:center;justify-content:space-between}
.nx-transition-return-inner>div{max-width:770px}
.nx-transition-return-eyebrow{font-weight:850;color:#086c65;font-size:13px;letter-spacing:.055em;text-transform:uppercase}
.nx-transition-return h2{font-size:clamp(25px,2.7vw,36px);line-height:1.15;color:#123e4c;margin:8px 0 10px}
.nx-transition-return p{color:#385c63;font-size:16px;line-height:1.55;margin:0}
.nx-transition-return-action{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:48px;padding:12px 20px;border-radius:999px;background:#103e4e;color:#fff!important;text-decoration:none;font-weight:800;text-align:center}
.nx-transition-return-action:hover{text-decoration:underline}
@media(max-width:750px){.nx-transition-return-inner{display:block}.nx-transition-return-action{margin-top:18px}.nx-transition-return{padding:27px 0}}
/* Five service gateways: three cards then a balanced second row of two. */
.nx-four-services{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:20px!important}
.nx-four-services>.service{grid-column:span 2;min-width:0}
.nx-four-services>.service:nth-child(4),.nx-four-services>.service:nth-child(5){grid-column:span 3}
.nx-four-services .service-body h3{overflow-wrap:anywhere}
.nx-four-services>.nx-service-ld-skills{background:#f1faf7;border-color:#9dd7c8}
@media(max-width:950px){.nx-four-services{grid-template-columns:repeat(2,minmax(0,1fr))!important}.nx-four-services>.service,.nx-four-services>.service:nth-child(4),.nx-four-services>.service:nth-child(5){grid-column:span 1}}
@media(max-width:590px){.nx-four-services{grid-template-columns:1fr!important}}
/* More expressive Nexsteps homepage design. No movement required to understand it. */
.hero:has(.nx-hero-photo){position:relative;isolation:isolate;background:linear-gradient(115deg,#123a54 0%,#0b625f 58%,#0a817a 100%)!important;color:#fff;padding-block:36px 49px;overflow:hidden}
.hero:has(.nx-hero-photo)::before{content:"";pointer-events:none;position:absolute;z-index:-1;width:min(63vw,800px);height:min(63vw,800px);border:2px solid #ffffff24;border-radius:50%;right:-200px;top:-275px;box-shadow:0 0 0 42px #ffffff08,0 0 0 92px #ffffff06}
.hero:has(.nx-hero-photo) .eyebrow{display:inline-flex;align-items:center;background:#f8d47f;color:#133d4d;font-size:13px;font-weight:900;letter-spacing:.04em;border-radius:999px;padding:8px 16px}
.hero:has(.nx-hero-photo) h1{color:#fff;max-width:690px;font-weight:950;font-size:clamp(39px,5.3vw,72px);letter-spacing:-.055em;line-height:1.08}
.hero:has(.nx-hero-photo) h1 span{color:#ffdb86!important}
.hero:has(.nx-hero-photo) .lead{color:#f1faf7;font-size:clamp(17px,1.7vw,21px);line-height:1.52;max-width:640px}
.hero:has(.nx-hero-photo) .subnote{color:#dbf2eb}
.hero:has(.nx-hero-photo) .hero-actions a:first-child{background:#ffcf71!important;color:#153a47!important;border-color:#ffcf71!important;border-radius:999px!important;font-weight:900}
.hero:has(.nx-hero-photo) .hero-actions a:nth-child(2){border-radius:999px!important;background:#fff!important;color:#123c4d!important;font-weight:850}
.hero:has(.nx-hero-photo) .nx-hero-photo{transform:rotate(1.5deg);border-radius:40px 110px 38px 38px!important;box-shadow:16px 18px 0 #ffcf71!important;position:relative}
.hero:has(.nx-hero-photo) .nx-hero-caption{border-radius:17px!important;box-shadow:0 10px 30px #123e4d30}
.nx-transition-return{background:#ffdf95!important;border-top:0!important;border-bottom:0!important;padding-block:35px!important;position:relative}
.nx-transition-return-eyebrow{color:#164151!important}
.nx-transition-return h2{font-size:clamp(28px,3vw,43px)!important;letter-spacing:-.045em}
.nx-transition-return-action{background:#103e52!important;min-height:55px;box-shadow:5px 6px 0 #e7b85f}
.nx-four-services{gap:22px!important}
.nx-four-services>.service{border:2px solid #d6e9df!important;box-shadow:0 12px 32px #17404d18!important;overflow:hidden;border-radius:27px!important;transition:transform .18s,box-shadow .18s}
.nx-four-services>.service:hover{transform:translateY(-4px);box-shadow:0 20px 36px #17404d28!important}
.nx-four-services>.service .service-art{position:relative;min-height:170px}
.nx-four-services>.service .service-art img{transition:transform .25s}
.nx-four-services>.service:hover .service-art img{transform:scale(1.045)}
.nx-four-services>.service .service-body{padding:24px 25px 27px}
.nx-four-services>.service .service-body h3{font-size:clamp(23px,2.2vw,30px)!important;line-height:1.18;letter-spacing:-.035em}
.nx-four-services>.service .service-body p{line-height:1.54}
.nx-four-services>.service:nth-child(1) .service-body{background:#e3f6ed}
.nx-four-services>.service:nth-child(2) .service-body{background:#fff2d9}
.nx-four-services>.service:nth-child(3) .service-body{background:#f6e8f1}
.nx-four-services>.service:nth-child(4) .service-body{background:#e6eeff}
.nx-four-services>.service:nth-child(5) .service-body{background:#dcf5ef}
.nx-four-services>.service .arrow{display:inline-flex;background:#124053;color:#fff!important;padding:9px 15px;border-radius:999px;font-size:14px;font-weight:850;max-width:100%;margin-top:12px}
.nx-youth-gateway{background:#eaf3fb!important;padding:66px 0 82px!important}
.nx-youth-heading h2{font-size:clamp(35px,4.6vw,60px);letter-spacing:-.05em}
.nx-youth-photo-card{border-radius:28px!important;border:2px solid #e4eaf0!important;overflow:hidden}
.nx-youth-photo-card:nth-child(odd){transform:rotate(-.7deg)}
.nx-youth-photo-card:nth-child(even){transform:rotate(.7deg)}
.nx-youth-photo-card:hover{transform:translateY(-4px) rotate(0deg)}
.nx-youth-photo-body{min-height:206px}
@media(max-width:850px){.hero:has(.nx-hero-photo){padding-block:20px 35px}.hero:has(.nx-hero-photo) .nx-hero-photo{transform:none}.nx-youth-photo-card:nth-child(n){transform:none}}
@media(max-width:600px){.hero:has(.nx-hero-photo)::before{display:none}.nx-four-services>.service .service-body{padding:22px}.nx-transition-return{padding-block:28px!important}.nx-youth-gateway{padding:41px 0 48px!important}}
@media(prefers-reduced-motion:reduce){.nx-four-services>.service,.nx-four-services>.service .service-art img{transition:none!important}.nx-four-services>.service:hover,.nx-four-services>.service:hover .service-art img{transform:none!important}}
/* Photo-first visual language, real editorial images and readable opaque card panels */
.nx-youth-gateway{background:#f5f8f6;padding:70px 0}
.nx-youth-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.nx-youth-photo-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:24px;background:#fff;color:#173a49!important;text-decoration:none!important;box-shadow:0 12px 35px #122e3b19;border:1px solid #d7e9e2;transition:transform .2s,box-shadow .2s}
.nx-youth-photo-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px #122e3b27}
.nx-youth-photo{height:235px;position:relative;overflow:hidden;background:#e2efe9}
.nx-youth-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.nx-youth-photo-card:hover img{transform:scale(1.04)}
.nx-youth-photo-body{padding:23px;display:flex;flex-direction:column;align-items:start;flex:1;min-height:202px;gap:8px}
.nx-youth-photo-card:nth-child(2) .nx-youth-photo-body{background:#fff6e5}
.nx-youth-photo-card:nth-child(3) .nx-youth-photo-body{background:#f0f2ff}
.nx-youth-photo-card:nth-child(4) .nx-youth-photo-body{background:#eaf7f3}
.nx-youth-photo-body strong{font-size:clamp(22px,2vw,28px);line-height:1.15}
.nx-youth-photo-body p{font-size:15px;line-height:1.5;color:#395863;margin:0 0 8px}
.nx-youth-photo-body b{margin-top:auto;text-decoration:underline;text-underline-offset:4px;color:#075f5c}
.nx-hero-photo{height:480px!important}
.nx-hero-photo img{object-fit:cover}
.nx-photo-hub #explore .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.nx-photo-hub #explore .card{padding:0!important;min-height:0!important;overflow:hidden}
.nx-hub-card-image{display:block;width:100%;height:205px;object-fit:cover;background:#d9ebe7}
.nx-photo-hub #explore .card h3{padding:18px 22px 0;margin:0!important;font-size:clamp(22px,2vw,27px)}
.nx-photo-hub #explore .card p{padding:0 22px!important;margin:0!important}
.nx-photo-hub #explore .card>span:last-child{padding:12px 22px 20px;margin:0!important}
.nx-photo-hub #explore .card .nx-card-art{display:none}
.nx-photo-hub .hero img{height:440px!important;object-fit:cover}
.nx-photo-transition #outcomes .card{padding:0!important;overflow:hidden}
.nx-photo-transition #outcomes .nx-outcome-image{width:100%;height:160px;object-fit:cover;display:block}
.nx-photo-transition #outcomes .card-icon{display:none}
.nx-photo-transition #outcomes .card h3{padding:20px 20px 0}
.nx-photo-transition #outcomes .card p{padding:0 20px 24px}
.nx-photo-transition .hero-photo{height:445px}
@media(max-width:1050px){.nx-youth-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-hero-photo{height:370px!important}}
@media(max-width:650px){.nx-youth-photo-grid,.nx-photo-hub #explore .grid{grid-template-columns:1fr}.nx-youth-photo{height:220px}.nx-photo-hub .hero img{height:265px!important}.nx-hero-photo{height:290px!important}.nx-photo-transition #outcomes .nx-outcome-image{height:210px}}
@media(prefers-reduced-motion:reduce){.nx-youth-photo-card,.nx-youth-photo img{transition:none}.nx-youth-photo-card:hover{transform:none}}
@media(max-width:1090px){.nx-youth-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.nx-youth-gateway{padding:38px 0}.nx-youth-heading p{font-size:16px}.nx-youth-cards{grid-template-columns:1fr}.nx-youth-card{min-height:225px;padding:22px}.nx-hero-photo{border-radius:24px 55px 24px 24px!important;box-shadow:8px 8px 0 #e9b661!important}.nx-final-youth .nx-activity-strip{flex-direction:column}.nx-final-youth .nx-activity-strip a{justify-content:center}}
@media(prefers-reduced-motion:reduce){.nx-youth-card{transition:none!important}.nx-youth-card:hover{transform:none!important}}
