<script src="/nexl_app.js"></script>
.home-header-section .home-header-bg-img{height:261px;min-height:261px;width:480px}.home-header-section .ixl-content{height:381px;padding-top:15px;position:relative}.home-header-bg-kids{display:none;pointer-events:none;position:absolute}.header-hdr-container{display:block;margin-bottom:15px;text-align:center}.header-hdr-lk{color:#00a1de;font:300 22px/1em Roboto Slab,sans-serif;text-decoration:none}.header-hdr-lk:hover{color:#00a1de}.font-weight-normal{font-weight:400}.clouds-tong{flex-direction:row;height:143px;margin:0 auto}.clouds-tong,.header-cloud{align-items:center;display:flex;justify-content:center}.header-cloud{flex-direction:column;position:relative}.bg-cloud{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:-1}.bg-light-blue-cloud{display:none}.bg-purple-cloud{height:143px;width:287px}.bg-teal-cloud{display:none}.header-cloud-hdr{display:block;font:300 18px/1.1em Roboto Slab,sans-serif;text-align:center;text-decoration:none}.header-cloud-body{padding-top:8px;text-align:center}.cloud-body-lk,.cloud-body-paragraph,.dot-spacer{color:#545454;font-family:Delius,sans-serif;font-size:14px;line-height:20px;vertical-align:middle}.cloud-body-paragraph{display:block;text-decoration:none}.dot-spacer{opacity:.5}.cloud-arrow-lk{display:none}.cloud-arrow-img{height:13px;width:20px}.cloud-curriculum{z-index:1}.cloud-curriculum .header-cloud-hdr{color:#00aeef}.cloud-trusted{z-index:2}.cloud-trusted .header-cloud-hdr{color:#8d33aa}.cloud-learning{z-index:1}.cloud-learning .header-cloud-hdr{color:#0bc1b6}.cloud-trusted{padding-top:10px}.cloud-curriculum{bottom:0;height:120px;left:50%;position:absolute;transform:translateX(-50%);width:100%}.cloud-curriculum .curriculum-header-text-part{font-size:20px}.cloud-curriculum .cloud-body-lk,.cloud-curriculum .dot-spacer{color:#489405;height:26px;line-height:26px}.cloud-curriculum .dot-spacer{padding-left:12px;padding-right:12px}.cloud-curriculum .visible-661-800{display:none}.cloud-curriculum .cloud-body-lk{font-size:16px}.cloud-curriculum .cloud-arrow-lk,.cloud-learning{display:none}.become-a-member-container{bottom:15px;position:relative;text-align:center;z-index:3}.become-a-member-lk{color:#1f9ac7;font:normal 15px Verdana,sans-serif;left:50%;position:absolute;text-decoration:none;top:22px;transform:translateX(-50%);white-space:nowrap}.become-a-member-lk:hover{color:#1f9ac7;text-decoration:underline}.become-a-member-lk.arrow-link:after{font-size:12px}.essa-banner-section{background-color:#e3f8ff;border-bottom:1px solid #bce0ed;border-top:1px solid #bce0ed}.essa-banner-section .ixl-content{padding-bottom:20px;padding-top:20px}.no-mobile-bottom-border{border-bottom:none}.essa-banner-description{font:normal 15px/1.4 Verdana,sans-serif;text-align:center}.essa-banner-link-container{display:flex;flex-direction:row;justify-content:center;margin-top:10px}.essa-banner-link{color:#00aeef;display:flex;flex-direction:row;font:normal 15px/1.33 Verdana,sans-serif;text-decoration:none}.essa-banner-link:hover{color:#0070d6;text-decoration:underline}.essa-banner-link:hover .after-arrow-stroke{stroke:#0070d6}.essa-banner-link .after-arrow{background-color:#b6e9fc;border-radius:50%;height:20px;width:20px}.essa-banner-link .after-arrow-stroke{stroke:#00aeef}.essa-banner-link-text{margin-right:5px}.home-grades-list-section{background-color:#fff;position:relative}.home-grades-list-section .ixl-content{padding-bottom:20px;padding-top:7px;position:relative;z-index:1}.grades-list{-moz-column-count:2;column-count:2;-moz-column-gap:13px;column-gap:13px}.grade-list-item{padding-bottom:10px;-moz-column-break-inside:avoid;break-inside:avoid}.grade-list-item.empty-grade-list-item{height:0;line-height:0;margin:0;padding:0;visibility:hidden}.grade-module{background-color:#fff;border:1px solid grey;border-radius:5px;padding:0;position:relative;text-align:left}.grade-box-link{cursor:pointer;display:block;padding:4px 7px 4px 0;position:relative;text-decoration:none}.grades-list-arrow{height:17px;position:absolute;right:8px;top:50%;transform:translateY(-50%);width:9px}.grade-box-tab{background-color:grey;border-radius:0 19px 19px 0;box-sizing:border-box;color:#fff;font:700 18px/38px Trebuchet MS,sans-serif;height:38px;left:-4px;margin-right:2px;position:relative;text-align:center;width:33px}.grade-box-hdr,.grade-box-tab{display:inline-block;vertical-align:middle}.grade-box-hdr{text-align:left}.grade-box-name{font:300 18px/1.2 Roboto Slab,sans-serif;left:auto;position:static;white-space:nowrap}.grade-body,.grade-body .video-lk,.grade-box-long-name,.grade-list-item-spanish{display:none}.home-discover-section .discover-bg-img{min-height:101%}.home-discover-section .ixl-content{padding-bottom:25px;padding-top:25px}.home-discover-section .discover-section-header,.home-discover-section .discover-section-subheader{color:#fff}.home-discover-section .discover-section-header{font:300 22px/1.1em Roboto Slab,sans-serif;margin:0 auto 15px;max-width:480px;text-align:center}.home-discover-section .discover-section-subheader{display:none;font:300 14px/1.2em Roboto Slab,sans-serif;text-align:center}.discover-bg-img{height:793px;min-height:101%;width:480px}.feature-grid{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:0 auto}.feature-grid-item{background-color:#fff;border-radius:5px;box-sizing:border-box;display:flex;flex:0 0 auto;flex-direction:column;margin:0 0 15px;max-width:275px;padding:20px 20px 51px;position:relative;text-align:center;text-decoration:none}.feature-grid-item:last-child{margin-bottom:0}.discover-img-container{display:none}.discover-hdr{font:normal 20px/1.2em Roboto Slab,sans-serif}.discover-description{color:#545454;font:normal 14px/1.5em Verdana,sans-serif;margin:15px 0 0}.discover-lk{bottom:20px;font:normal 16px/1em Trebuchet MS,sans-serif;left:50%;padding-right:17px;position:absolute;transform:translateX(-50%);white-space:nowrap}.discover-lk .after-arrow{height:17px;position:absolute;right:0;top:50%;transform:translateY(-50%);width:17px}.feature-grid-item:hover .discover-lk{text-decoration:underline}.feature-grid-item-curriculum .discover-hdr,.feature-grid-item-curriculum .discover-lk{color:#00aeef}.feature-grid-item-curriculum .after-arrow-stroke{stroke:#00aeef}.feature-grid-item-diagnostic .discover-hdr,.feature-grid-item-diagnostic .discover-lk{color:#54a229}.feature-grid-item-diagnostic .after-arrow-stroke{stroke:#54a229}.feature-grid-item-personalized .discover-hdr,.feature-grid-item-personalized .discover-lk{color:#7a67d7}.feature-grid-item-personalized .after-arrow-stroke{stroke:#7a67d7}.feature-grid-item-analytics .discover-hdr,.feature-grid-item-analytics .discover-lk{color:#f5a623}.feature-grid-item-analytics .after-arrow-stroke{stroke:#f5a623}.feature-grid-item-learning .discover-hdr,.feature-grid-item-learning .discover-lk{color:#7a67d7}.feature-grid-item-learning .after-arrow-stroke{stroke:#7a67d7}.feature-grid-item-access .discover-hdr,.feature-grid-item-access .discover-lk{color:#5ea300}.feature-grid-item-access .after-arrow-stroke{stroke:#5ea300}.feature-grid-item-awards .discover-hdr,.feature-grid-item-awards .discover-lk{color:#7a67d7}.feature-grid-item-awards .after-arrow-stroke{stroke:#7a67d7}.impact-on-learning-container{display:none}.discover-cta-container{display:none;text-align:center}.three-elem-only .discover-section-header{font-size:26px}.three-elem-only .discover-section-subheader{display:block;font:14px;padding-bottom:20px;width:200px}.three-elem-only .feature-grid{align-items:center;display:flex;flex-direction:column;justify-content:center}.three-elem-only .discover-img-container{display:block}.three-elem-only .feature-grid-item{margin-bottom:20px;max-width:300px}.three-elem-only .discover-hdr{padding-top:5px}.three-elem-only .discover-description{margin:15px 10px 0}.three-elem-only .join-now-description{font:300 15px Verdana,sans-serif;width:270px}.three-elem-only .discover-cta-container{display:block;padding-bottom:15px}.home-testimonials-section .testimonials-bg-img{min-height:101%}.home-testimonials-section .ixl-content{padding-bottom:30px;padding-top:30px}.testimonials-bg-img{height:480px;width:480px}.testimonials-white-background{background-color:hsla(0,0%,100%,.93);box-sizing:border-box;overflow:hidden;padding:30px 20px;text-align:center}.testimonials-hdr{color:#00aeef;font:300 20px/1.2em Roboto Slab,sans-serif;margin-bottom:20px}.quote-text{color:#545454;font:italic 12px/1.5em Verdana,sans-serif;margin:0 auto 10px}.quote-location,.quote-source{color:#777;font:normal 11px/1.5em Verdana,sans-serif;margin:0 auto}.testimonials-read-more-container{margin-top:10px}.testimonials-read-more-lk{color:#1f9ac7;font:normal 12px/1em Verdana,sans-serif;padding-right:16px;position:relative;text-decoration:none;white-space:nowrap}.testimonials-read-more-lk .after-arrow{height:17px;position:absolute;right:0;top:56%;transform:translateY(-50%);width:17px}.testimonials-read-more-lk .after-arrow-stroke{stroke:#1f9ac7}.testimonials-read-more-lk:hover .lk-txt{color:#1f9ac7;text-decoration:underline}.home-footer-section .ixl-content{max-width:1240px;padding-bottom:25px;padding-top:20px}.footer-blurb-container{margin-bottom:25px;text-align:center}.footer-ixl-logo{height:31px;width:81px}.footer-blurb-text{color:#545454;font:normal 12px/1.6em Verdana,sans-serif;margin-bottom:25px;margin-top:10px}.footer-blurb-button{width:135px}.footer-questions-answered{color:#545454;font:normal 13px/1.6em Verdana,sans-serif;margin-bottom:10px}.questions-answered-number{font-weight:700}.footer-submenu-item{border-top:1px solid #ccc}.footer-submenu-item:last-child{border-bottom:1px solid #ccc}.footer-submenu-header{color:#00aeef;cursor:pointer;display:block;font:700 18px/52px Trebuchet MS,sans-serif;height:52px;position:relative;text-align:left}.footer-submenu-header:after{border:2px solid #00aeef;border-radius:50%;box-sizing:border-box;content:"+";font-size:16px;height:20px;line-height:16px;position:absolute;right:0;text-align:center;top:26px;transform:translateY(-50%);width:20px}.footer-dropdown{display:none}.footer-dropdown-state:checked~label .footer-submenu-header:after{content:"-";line-height:14px}.footer-dropdown-state:checked~.footer-dropdown{display:block;padding-bottom:15px}.footer-social-icon{height:22px;width:22px}.footer-submenu-lk{color:#545454;display:block;font:normal 15px/1.4em Verdana,sans-serif;margin-bottom:6px;text-decoration:none}.footer-submenu-lk:hover{color:#545454;text-decoration:underline}.footer-copyright{color:#bababa;font:700 10px/1.7em Verdana,sans-serif;margin-top:15px;text-align:center}.footer-copyright a{color:#bababa;text-decoration:none}.social-lks{display:none}.footer-copyright .social-lks{display:block;margin-bottom:5px}.social-lk{text-decoration:none}.home-page-footer__family-brands{display:none}.family-brands__item{text-align:center}.family-brands__brand{min-width:165px}.family-brands__link{display:flex;flex-direction:column;text-decoration:none}.family-brands__link:hover{text-decoration:underline}.family-brands__logo-container{align-items:flex-end;display:flex;height:30px;justify-content:center;margin-bottom:10px}.family-brands__description{color:#767676;font:normal 12px/1.4em Verdana,sans-serif;margin:0;text-align:center}.family-brands__logo.wyzant{height:20px;width:82px}.family-brands__logo.rosetta{height:22px;width:118px}.family-brands__logo.abcya{height:18px;width:50px}.family-brands__logo.education{height:26px;width:123px}.family-brands__logo.vocab{height:19px;width:109px}.family-brands__logo.spanish{height:14px;width:160px}.family-brands__logo.emmersion{height:21px;width:111px}.family-brands__logo-container.tpt{margin:4px 0 6px}.family-brands__logo.tpt{height:22px;width:83px}.family-brands__logo.ingles{height:18px;width:92px}.family-brands__logo.my-tutor{height:18px;width:68px}.skill-plans-content.ixl-content{padding-top:30px;position:relative}.ixl-section.skill-plans-section{padding-bottom:35px}.ixl-section.skill-plans-section .btn-container{padding-top:30px;position:relative;text-align:center}.ixl-section.skill-plans-section .info-cta-btn:focus{outline:revert}.skill-plans-title{color:#00aeef;font:300 20px/1em Roboto Slab,sans-serif;margin:0 auto .5em;text-align:center}.skill-plans-description{color:#545454;font:normal 14px/1.5em Verdana,sans-serif;margin:0 auto 15px;text-align:center}.skill-plans-description br{content:" ";display:inline-block}.skill-plans-icon-container{align-items:center;background-color:#fff;border:1px solid;border-radius:50%;display:flex;height:70px;justify-content:center;margin:0 auto;width:70px}.skill-plans-standard-grid-item .skill-plans-item-title{color:#fc9000}.skill-plans-standard-grid-item .skill-plans-icon-container{border-color:#ffc578}.skill-plans-standard-grid-item .skill-plans-icon{height:46px;transform:translate(-5%);width:43px}.skill-plans-textbook-grid-item .skill-plans-item-title{color:#52c300}.skill-plans-textbook-grid-item .skill-plans-icon-container{border-color:#a8e979}.skill-plans-textbook-grid-item .skill-plans-icon{height:40px;transform:translate(-2%,9%);width:51px}.skill-plans-test-prep-grid-item .skill-plans-item-title{color:#9c6edc}.skill-plans-test-prep-grid-item .skill-plans-icon-container{border-color:#c3b0f3}.skill-plans-test-prep-grid-item .skill-plans-icon{height:38px;transform:translate(-8%,-2%);width:40px}.skill-plans-item-title{font:normal 20px/1em Roboto Slab,sans-serif;margin:.5em auto;text-align:center}.skill-plans-item-description{color:#545454;font:normal 14px/1.5em Verdana,sans-serif;margin:0 auto;text-align:center}.home-skill-plans-bg-img{bottom:-1px;height:717px;left:50%;min-width:100%;position:absolute;transform:translateX(-50%);width:480px;z-index:0}.info-cta-btn.info-cta-33-15{padding-left:25px;padding-right:25px}@media screen and (min-width:481px){.home-header-section .home-header-bg-img{height:340px;min-height:340px;width:550px}.home-header-section .ixl-content{height:460px;padding-top:22px}.header-hdr-container{margin-bottom:22px}.header-hdr-lk{font-size:34px}.clouds-tong{height:156px}.bg-purple-cloud{height:156px;width:313px}.header-cloud-hdr{font-size:23px}.header-cloud-body{padding-top:5px}.cloud-curriculum{height:120px}.cloud-curriculum .curriculum-header-text-part{font-size:26px}.cloud-curriculum .cloud-body-lk{font-size:19px}.cloud-arrow-visible-551{padding-top:20px}.cloud-arrow-visible-551 .header-cloud-body{padding-bottom:5px;padding-top:5px}.cloud-arrow-visible-551 .cloud-arrow-lk{display:block}.become-a-member-container{bottom:unset;margin-top:20px}.become-a-member-lk{top:unset}.grades-list-arrow{height:17px;right:10px;width:9px}.grade-box-name{font-size:24px;left:auto;position:static}.home-discover-section .discover-section-header{font-size:30px}.discover-bg-img{height:676px;width:660px}.feature-grid{align-items:stretch;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.feature-grid-item{margin-bottom:12px;max-width:none;width:calc(50% - 6px)}.feature-grid-item:nth-child(3){margin-bottom:0}.discover-hdr{font-size:26px}.three-elem-only .feature-grid{align-items:center;flex-direction:column;justify-content:center}.three-elem-only .feature-grid-item{margin-left:30px;margin-right:30px;max-width:600px;width:auto}.three-elem-only .discover-cta-container{padding:25px 0}.testimonials-bg-img{height:398px;width:660px}.testimonials-hdr{font-size:26px}.quote-text{font-size:14px}.quote-location,.quote-source{font-size:13px}.testimonials-read-more-lk{font-size:14px}.footer-blurb-container{margin-bottom:30px}.footer-blurb-text{font-size:13px}.skill-plans-content.ixl-content{padding-top:0}.ixl-section.skill-plans-section{padding-bottom:40px}.ixl-section.skill-plans-section .btn-container{padding-top:40px}.skill-plans-title{font-size:30px}.skill-plans-description{font-size:15px;margin-bottom:30px}.skill-plans-description br{content:"";display:block}.skill-plans-grid-item{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:35px}.skill-plans-grid-item:first-child{margin-top:0}.skill-plans-icon-container{height:70px;width:70px}.skill-plans-standard-grid-item .skill-plans-icon{height:53px;width:50px}.skill-plans-textbook-grid-item .skill-plans-icon{height:43px;width:55px}.skill-plans-test-prep-grid-item .skill-plans-icon{height:41px;width:43px}.skill-plans-text-container{width:calc(96% - 70px)}.skill-plans-item-title{font-size:26px;margin-top:0;text-align:left}.skill-plans-item-description{font-size:15px;text-align:left;width:100%}.home-skill-plans-bg-img{height:550px;width:660px}}@media screen and (min-width:551px){.home-header-section .home-header-bg-img{height:340px;min-height:340px;width:660px}.clouds-tong{justify-content:space-between;max-width:505px}.bg-purple-cloud{width:323px}.bg-teal-cloud{display:block;height:155px;width:296px}.cloud-trusted{padding-right:23px}.cloud-learning{display:flex}.cloud-learning .dot-spacer{color:#0bc1b6;font-size:10px;padding-left:2px;padding-right:2px}.cloud-learning .cloud-body-lk{text-decoration:none}}@media screen and (min-width:661px){.home-header-section .home-header-bg-img{height:340px;min-height:340px;width:800px}.home-header-section .ixl-content{height:430px;padding-bottom:22px;padding-top:22px}.header-hdr-container{margin-bottom:5px}.header-hdr-lk{font-size:38px}.clouds-tong{height:186px}.cloud-curriculum{height:90px}.cloud-curriculum .visible-661-800{display:inline;height:inherit;visibility:visible}.cloud-curriculum .header-cloud-body br{display:none}.become-a-member-container{margin-top:0}.grade-box-tab{padding-right:15px;text-align:right;width:43px}.grade-box-short-name{display:none}.grade-box-long-name{display:inline}.home-discover-section .ixl-content{padding-bottom:30px;padding-top:30px}.home-discover-section .discover-section-header{font-size:32px;margin-bottom:25px}.discover-bg-img{height:1215px;width:800px}.feature-grid{max-width:615px}.feature-grid-item{margin-bottom:20px;width:calc(50% - 10px)}.three-elem-only .discover-section-subheader,.three-elem-only .join-now-description{width:auto}.three-elem-only .feature-grid-item{margin-left:45px;margin-right:45px}.testimonials-bg-img{height:399px;width:800px}.testimonials-white-background{padding-left:50px;padding-right:50px}.testimonials-read-more-container{margin-top:25px}.footer-blurb-container{margin-bottom:45px}.footer-submenu-item{border-top:none}.footer-submenu-item:last-child{border-bottom:none}.footer-submenu{border-bottom:1px solid #eee;-moz-column-count:3;column-count:3;-moz-column-gap:10%;column-gap:10%}.footer-submenu-item{-moz-column-break-inside:avoid;break-inside:avoid;padding-bottom:25px;padding-top:0}.footer-submenu-header{cursor:default;height:1.2em;line-height:1.2em;margin-bottom:13px}.footer-submenu-header:after{display:none}.footer-dropdown-state:checked~label .footer-submenu-header{margin-bottom:13px}.footer-dropdown{display:block}.footer-submenu-lk{font-size:14px}.home-skill-plans-bg-img{height:563px;width:800px}}@media screen and (min-width:801px){.home-header-section .home-header-bg-img{height:398px;min-height:398px;min-width:100%;width:1920px}.home-header-section .ixl-content{height:397px;padding-bottom:15px;padding-top:15px}.home-header-bg-kids{bottom:7px;display:block;left:calc(50% + 425px);transform:translate(-50%);z-index:3}.header-hdr-container{margin-bottom:2px}.clouds-tong{height:173px;margin:0 auto;max-width:780px}.bg-light-blue-cloud{display:block;height:175px;width:303px}.bg-purple-cloud{height:157px;width:353px}.bg-teal-cloud{height:157px;width:299px}.header-cloud{margin:0;padding-left:0;padding-right:0;padding-top:20px;width:unset}.header-cloud .curriculum-header-text-part,.header-cloud .header-cloud-hdr{font-size:22px}.header-cloud .header-cloud-body{padding-bottom:6px;padding-top:8px}.header-cloud .header-cloud-body .cloud-body-lk,.header-cloud .header-cloud-body .cloud-body-paragraph{color:#545454;font-size:15px;height:21px;line-height:21px;text-decoration:none}.header-cloud .dot-spacer{font-size:10px;height:21px;line-height:21px;padding-left:2px;padding-right:2px}.header-cloud .cloud-arrow-lk{display:block}.cloud-curriculum{height:auto;left:auto;padding-top:35px;position:relative;top:auto;transform:none;width:240px}.cloud-curriculum .dot-spacer.visible-661-800{display:none}.cloud-curriculum .curriculum-header-text-part{display:block}.cloud-curriculum .header-cloud-body{padding-bottom:8px;padding-top:6px}.cloud-curriculum .header-cloud-body br{display:block}.cloud-curriculum .dot-spacer{color:#00aeef}.cloud-trusted{top:20px}.cloud-learning{top:12px;width:240px}.become-a-member-container{margin-top:40px}.become-a-member-lk{font-size:15px}.no-mobile-bottom-border{border-bottom:1px solid #bce0ed}.grades-list{align-items:stretch;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.grade-list-item{flex:0 0 auto;padding-bottom:30px;text-align:center;width:calc(33.3333333333% - 16.6666666667px)}.grade-module{height:100%}.home-grades-list-section{background-color:#f5f5f5}.home-grades-list-section .ixl-content{padding-top:30px}.grade-list-item-spanish{display:block}.grade-box-link{padding-top:10px}.grades-list-arrow{display:none}.grade-box-name{font-size:24px}.grade-body{display:block;padding:5px 20px 15px}.grade-description{color:#545454;font:normal 14px/1.5em Verdana,sans-serif;padding-bottom:10px;text-align:left}.list-subject-links{border-top:1px solid #e1e1e1;padding-top:15px}.subject-link-item{padding-bottom:10px}.subject-link-item:last-of-type{padding-bottom:0}.subject-skill-container{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.subject-hdr{color:#545454;font:normal 14px/1.1em Verdana,sans-serif;margin-left:0;text-align:left}.skill-lk{color:#1f9ac7;cursor:pointer;margin-right:0;text-decoration:none;white-space:nowrap}.skill-lk .lk-txt{display:inline-block;font:normal 13px Verdana,sans-serif}.skill-lk:hover{color:#1f9ac7}.skill-lk:hover .lk-txt{text-decoration:underline}.skill-lk:hover:after{text-decoration:none}.grade-module .spanish-banner-img{height:75px;right:0;top:0;width:71px}.home-discover-section .discover-section-header{font-size:32px;margin-bottom:15px}.home-discover-section .discover-section-subheader{display:block;font-size:22px;line-height:1.2em;margin-bottom:5px}.discover-bg-img{height:950px;width:1920px}.feature-grid-container{padding-top:20px}.feature-grid{max-width:670px;padding-bottom:30px}.feature-grid-item{margin-bottom:30px;width:calc(50% - 15px)}.discover-cta-container{display:block;padding-bottom:30px}.three-elem-only .feature-grid{align-items:stretch;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;max-width:none}.three-elem-only .feature-grid-item{flex:1 1;margin-bottom:0;margin-left:0;margin-right:0;max-width:320px;width:auto}.three-elem-only .feature-grid-item:nth-child(2){margin-left:22px;margin-right:22px}.three-elem-only .discover-cta-container{padding:0 0 30px}.three-elem-only .discover-img-container{margin-bottom:0}.three-elem-only .discover-section-subheader{font-size:14px;padding-bottom:10px}.impact-on-learning-container{display:block;padding-bottom:30px;padding-top:30px;position:relative}.impact-on-learning-container:before{border-top:1px solid #fff;content:"";display:block;left:50%;position:absolute;top:0;transform:translateX(-50%);width:90%}.impact-on-learning-container .discover-section-subheader{font-size:28px;margin-bottom:30px}.impact-on-learning-grid{display:flex;flex-direction:row;justify-content:space-between}.impact-on-learning-item{box-sizing:border-box;display:block;flex:0 0 auto;padding-bottom:52px;position:relative}.impact-on-learning-item img{border:2px solid #88e3ff;border-radius:50%;display:block;height:100px;margin:0 auto 10px;width:100px}.impact-on-learning-item h4{color:#fff;font:300 24px/1em Roboto Slab,sans-serif;margin:0 auto 20px;text-align:center}.impact-on-learning-item p{color:#fff;font:normal 15px/1.4em Verdana,sans-serif;margin:0 auto;text-align:center}.impact-on-learning-item .cta-btn{border-width:1px;bottom:0;color:#fff;display:block;font-size:15px;height:32px;left:50%;line-height:30px;position:absolute;transform:translateX(-50%);width:200px}.research-proves-effective{width:30%}.research-proves-effective p{max-width:195px}.valueable-for-instructions{width:34%}.valueable-for-instructions p{max-width:212px}.newsworthy-learning,.teachers-tell-why{width:30%}.newsworthy-learning p,.teachers-tell-why p{max-width:200px}.testimonials-bg-img{height:450px;width:1920px}.testimonials-hdr{font-size:28px}.testimonials-white-background{padding-left:0;padding-right:0}.quote-text{width:75%}.footer-submenu{-moz-column-count:auto;column-count:auto;-moz-column-gap:normal;column-gap:normal;display:flex;flex-direction:row;justify-content:space-between}.footer-submenu-item{flex:0 0 auto;width:24%}.footer-submenu-international{width:144px}.footer-submenu-lk{font-size:13px}.skill-plans-section-mobile{display:none}}@media screen and (min-width:1014px){.clouds-tong{height:191px;max-width:857px}.bg-light-blue-cloud{height:190px;width:333px}.bg-purple-cloud{height:175px;width:401px}.bg-teal-cloud{height:174px;width:327px}.header-cloud .curriculum-header-text-part,.header-cloud .header-cloud-hdr{font-size:24px;line-height:28px}.header-cloud .header-cloud-body{padding-bottom:10px;padding-top:10px}.header-cloud .header-cloud-body .cloud-body-lk,.header-cloud .header-cloud-body .cloud-body-paragraph{line-height:1.5em}.cloud-curriculum{padding-top:33px}.cloud-learning,.cloud-trusted{padding-top:20px}.cloud-learning{top:12px}.essa-banner-container{align-items:center;display:flex;justify-content:center}.essa-banner-link-container{margin-left:20px;margin-top:0}.grade-body{padding:5px 20px 15px}.grade-box-link{padding-top:13px}.grade-box-name{font-size:28px}.subject-hdr{font-size:14px;margin-right:3px;min-width:100px}.grade-module .spanish-banner-img{height:94px;width:89px}.skill-links-wrapper{align-items:center;display:flex;justify-content:flex-end;min-width:170px}.grade-body .video-lk{color:#1f9ac7;cursor:pointer;display:block;margin-left:10px;margin-right:0;text-decoration:none;white-space:nowrap}.grade-body .video-lk .lk-txt{display:inline-block;font:normal 13px Verdana,sans-serif;text-align:end;width:73px}.grade-body .video-lk:hover{color:#1f9ac7}.grade-body .video-lk:hover .lk-txt{text-decoration:underline}.grade-body .video-lk:hover:after{text-decoration:none}.arrow-icon{display:inline-block}.home-discover-section .ixl-content{padding-top:40px}.home-discover-section .discover-section-header{font-size:36px;max-width:none}.feature-grid{max-width:none}.feature-grid-item{margin-bottom:0;width:calc(25% - 7.5px)}.discover-img-container{display:block;margin-bottom:15px;text-align:center}.discover-grid-img{height:63px;width:63px}.discover-description{margin-top:10px}.impact-on-learning-item h4{white-space:nowrap}.impact-on-learning-item h4 br{content:" ";display:inline}.impact-on-learning-item h4 br:after{content:" "}.impact-on-learning-item p{max-width:none}.testimonials-white-background{padding-left:60px;padding-right:60px}.home-footer-section .ixl-content{padding-bottom:35px;padding-top:50px}.footer-blurb-submenu-container{display:flex;flex-direction:row;justify-content:space-between}.footer-blurb-container{display:flex;flex-direction:column;text-align:left;width:29%}.footer-blurb-text{line-height:normal;margin:17px 0;text-align:left}.footer-questions-answered{border-top:1px solid #d6d6d6;margin-top:24px;order:4;padding-top:16px}.footer-submenu{border-bottom:none;justify-content:space-evenly;width:67%}.footer-submenu-item{width:auto}.footer-copyright .social-lks{display:none}.footer-submenu-offer,.footer-submenu-resources{margin-right:49px}.footer-submenu-resources .social-lks{display:block;margin-top:5px}.footer-submenu-about{margin-right:33px}.home-page-footer__family-brands{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;margin-bottom:20px;width:100%}.family-brands__spacer{align-items:center;display:flex;justify-content:center;margin:0 5px}.family-brands__spacer:after{background:linear-gradient(180deg,#f5f5f5,#e6e6e6,#f5f5f5);content:"";display:block;height:80%;margin:0 auto;width:1px}.family-brands__line-break{flex-basis:100%;margin-bottom:20px}}@media screen and (min-width:1239px){.grade-body .video-lk{margin-left:30px;position:relative}.grade-body .video-lk:before{color:#ccc;content:"|";cursor:default;font-size:14px;margin-right:10px;pointer-events:none;position:absolute;right:100%;top:0}}/* YUI CSS Detection Stamp */
#yui3-css-stamp.home-page-css-home-2019-min { display: none; }
.coming-soon h3{background:transparent none 100% 50% no-repeat;display:inline-block;font:normal 24px/28px Trebuchet MS,sans-serif;min-height:28px;min-width:72px;padding:12px 82px 6px 0}.coming-soon .hdr-new-arrival{color:#11b3f3}.coming-soon .hdr-coming-soon,.coming-soon .hdr-new-arrival{background-position:100% 50%;background-repeat:no-repeat;display:inline-block;font:400 28px/60px Trebuchet MS,sans-serif;margin-top:5px;padding:0 100px 0 0;text-decoration:none}.coming-soon .hdr-coming-soon{background-size:93px 60px;color:#85c702}.coming-soon h3{color:#7ebb00;display:block;font:400 18px/1em Trebuchet MS,sans-serif;margin:0 0 3px;min-height:0;min-width:0;padding:0}.coming-soon h3:first-of-type{margin-top:-2px}.coming-soon p{color:#666;font-size:14px;line-height:20px;margin:0}.coming-soon p:first-of-type{margin-bottom:12px}.coming-soon .lk-hdr{color:inherit;text-decoration:none}.coming-soon .lk-gif-arrow{color:#1f9ac7;display:inline-block;font-size:13px;margin-right:5px;padding:0 8px 0 0;text-decoration:none}.coming-soon .lk-gif-arrow:hover .lk-txt{text-decoration:underline}.coming-soon .lk-gif-arrow:after{content:">>";display:inline-block;font-size:75%;padding-left:3px}.coming-soon .lk-gif-arrow:hover{color:#1f9ac7;text-decoration:none}.coming-soon .lk-gif-arrow:last-of-type{margin-right:0;padding-right:0}.coming-soon.us .hdr-coming-soon,.coming-soon.us .hdr-new-arrival{height:60px}body:not(.edition-ca):not(.edition-us) .coming-soon .hdr-new-arrival{background-position:100% 100%;height:65px;margin-top:-8px}body:not(.edition-ca):not(.edition-us) .coming-soon h3{margin-bottom:2px}body:not(.edition-ca):not(.edition-us) .coming-soon h3:first-of-type{margin-top:-13px}body:not(.edition-ca):not(.edition-us) .coming-soon p{line-height:19px}body:not(.edition-ca):not(.edition-us) .coming-soon p:first-of-type{margin-bottom:6px}.bd-grade.spanish{height:234px}.spanish-banner-img{height:94px;position:absolute;right:1px;top:1px;width:89px}.spanish-tab-img{height:28px;position:relative;right:-5px;top:-1px;vertical-align:middle;width:28px}.orange5-bdr{border-color:#f90}.orange5-bg{background-color:#f90}.orange5-txt{color:#f90}/* YUI CSS Detection Stamp */
#yui3-css-stamp.home-page-css-coming-soon-min { display: none; }
.offerings-banner-group.ixl-section{padding-bottom:20px}.offerings-banner-group__group-container{display:flex;justify-content:center}.offerings-banner-group__banner{border:1px solid #a1e8a8;border-radius:5px;box-sizing:border-box;flex:1 1 0;height:60px;padding:10px}.offerings-banner-group__banner--high-school{background:linear-gradient(89.9deg,#c9fae3 -137.66%,#e6fdc0 95.65%);border-bottom-left-radius:66px;border-top-left-radius:66px}.offerings-banner-group__banner--independent-learner{background:linear-gradient(89.9deg,#c9fae3 26.66%,#e6fdc0 259.96%);border-bottom-right-radius:66px;border-top-right-radius:66px;margin-left:15px}.offerings-banner-group__banner--mobile{text-decoration:none}.offerings-banner-group__banner--mobile:focus,.offerings-banner-group__banner--mobile:hover{color:#0b863c;text-decoration:underline}.offerings-banner-group__banner--desktop,.offerings-banner-group__description,.offerings-banner-group__text-and-arrow-cta,.offerings-banner-group__title-desktop,.offerings-banner-group__title-mobile{display:none}.offerings-banner-group__text-container{align-items:center;display:flex;height:100%;justify-content:center}.offerings-banner-group__text-container--high-school{margin-left:15px}.offerings-banner-group__title-desktop,.offerings-banner-group__title-mobile,.offerings-banner-group__title-small-mobile{color:#0b863c;font:normal 16px/1.3 Roboto Slab,sans-serif;text-align:center}.offerings-banner-group__arrow-only-cta{height:20px;width:20px}.offerings-banner-group__cta-arrow-icon{margin-left:10px}@media screen and (min-width:481px){.offerings-banner-group__title-small-mobile{display:none}.offerings-banner-group__title-mobile{display:block}}@media screen and (min-width:801px){.offerings-banner-group{background-color:#f5f5f5}.offerings-banner-group__banner--mobile{display:none}.offerings-banner-group__banner--desktop{display:flex}.offerings-banner-group.ixl-section{padding-bottom:0;padding-top:30px}.offerings-banner-group__banner{height:68px;padding-left:100px;padding-right:50px;position:relative}.offerings-banner-group__icon{display:block;position:absolute}.offerings-banner-group__icon--high-school{bottom:2px;height:85px;left:37px;width:86px}.offerings-banner-group__icon--independent-learner{bottom:3px;height:64px;left:-2px;width:98px}.offerings-banner-group__text-container{margin:auto}}@media screen and (min-width:1014px){.offerings-banner-group__banner{height:120px;padding-left:150px;padding-right:20px}.offerings-banner-group__icon--high-school{bottom:18px;height:106px;left:23px;width:107px}.offerings-banner-group__icon--independent-learner{bottom:20px;height:82px;left:8px;width:126px}.offerings-banner-group__title-desktop{color:#0b863c;display:block;font-size:19px;margin-bottom:5px}.offerings-banner-group__description,.offerings-banner-group__text-and-arrow-cta{display:flex;font:normal 13px/1.3 Verdana,sans-serif}.offerings-banner-group__arrow-only-cta,.offerings-banner-group__title-mobile{display:none}.offerings-banner-group__text-container{align-items:start;flex-direction:column;margin:0}.offerings-banner-group__description{color:#545454;margin-bottom:10px}.offerings-banner-group__text-and-arrow-cta{align-items:center;color:#0b863c;text-decoration:none}.offerings-banner-group__text-and-arrow-cta:focus,.offerings-banner-group__text-and-arrow-cta:hover{color:#0b863c;text-decoration:underline}}@media screen and (min-width:1200px){.offerings-banner-group__banner{height:132px;padding-left:180px;padding-right:10px}.offerings-banner-group__icon--high-school{bottom:6px;height:151px;left:7px;width:152px}.offerings-banner-group__icon--independent-learner{bottom:16px;height:108px;left:15px;width:167px}.offerings-banner-group__text-container--independent-learner{margin-left:20px}.offerings-banner-group__title-desktop{font-size:23px}}/* YUI CSS Detection Stamp */
#yui3-css-stamp.home-page-css-offerings-banner-group-min { display: none; }








<!-- NEXL GLOBAL FIXES V4 -->
<script>
// NEXL STUDY - MASTER APP CONTROLLER
// This script overrides IXL functionality for offline use.

(function initNexlApp() {
    // 1. ANNIHILATE ALL POP-UPS AND MODALS
    const killModals = () => {
        const modals = document.querySelectorAll('.membership-banner, .ixl-modal, .yui3-panel, .ixl-dialog, [role="dialog"], .membership-prompt, .trial-banner, .modal-backdrop, .toast-message');
        modals.forEach(m => m.remove());
        
        // Unblock scrolling if blocked
        document.body.style.overflow = 'auto';
        document.body.classList.remove('modal-open');
    };
    
    // Run modal killer immediately and every 1s (to catch delayed pop-ups)
    killModals();
    setInterval(killModals, 1000);

    // X. GLOBAL CLEANUP FOR CARD-ONLY MODE
    const killExtraUI = () => {
        const clutter = document.querySelectorAll(`
            #hd, .global-header, #header, header, 
            #bd-footer, .page-footer, .global-footer, footer, 
            .practice-stats-container, #stats-ribbon, #practice-stats, 
            .teacher-tools, .scratchpad-tool, #bd-head,
            nav.breadcrumb-nav, nav.sub-navigation, .box-site-nav-content, 
            .share-label, .social-share-bar
        `);
        clutter.forEach(el => el.remove());
        
        // Re-center the practice area if needed
        const practiceRoot = document.querySelector('.practice-views-root');
        if (practiceRoot) {
            practiceRoot.style.margin = '0 auto';
            practiceRoot.style.float = 'none';
            practiceRoot.style.width = '100%';
            practiceRoot.style.maxWidth = '900px';
        }
    };
    killExtraUI();
    setInterval(killExtraUI, 1000);

    // 2. INJECT BEAUTIFUL NEXL LOGO
    const logoContainers = document.querySelectorAll('.ixl-logo, #hd-logo, .global-header-logo, header a[href="/"]');
    logoContainers.forEach(container => {
        container.innerHTML = `
            <div style="display: flex; align-items: center; font-family: 'Inter', sans-serif; font-weight: 900; font-size: 32px; letter-spacing: -1px; text-decoration: none;">
                <span style="color: #0066FF;">N</span>
                <span style="color: #3399FF;">E</span>
                <span style="color: #FF3366;">X</span>
                <span style="color: #9933FF;">L</span>
                <span style="color: #66B2FF; font-style: italic; font-weight: 500; margin-left: 8px; font-size: 24px;">learning</span>
            </div>
        `;
        container.style.textDecoration = 'none';
        container.style.border = 'none';
    });

    // 3. ANNIHILATE ORIGINAL FOOTER AND REPLACE WITH NEXL FOOTER
    const oldFooters = document.querySelectorAll('#bd-footer, .page-footer, .global-footer, footer');
    oldFooters.forEach(f => f.remove());
    
    const customFooter = document.createElement('footer');
    customFooter.innerHTML = `
        <div style="background: linear-gradient(135deg, #1e1e2f, #2a2a40); padding: 40px; text-align: center; color: white; font-family: 'Inter', sans-serif; margin-top: 50px; border-top: 4px solid #3399FF;">
            <div style="font-size: 28px; font-weight: 900; margin-bottom: 10px;">
                <span style="color: #0066FF;">N</span><span style="color: #3399FF;">E</span><span style="color: #FF3366;">X</span><span style="color: #9933FF;">L</span>
                <span style="color: #66B2FF; font-style: italic; font-weight: 500;">learning</span>
            </div>
            <p style="color: #8892b0; font-size: 14px;">The Ultimate Offline Learning Library &bull; Education Without Limits</p>
        </div>
    `;
    document.body.appendChild(customFooter);

    // 4. FIX BROKEN/LIVE LINKS (Skill Plans, Analytics, Videos, Games)
    const allLinks = document.querySelectorAll('a, button, [role="button"]');
    allLinks.forEach(link => {
        const href = link.getAttribute('href') || '';
        const text = link.textContent.toLowerCase();
        
        // Hide broken tabs
        if (
            href.includes('skill-plans') || 
            href.includes('recommendations') || 
            href.includes('analytics') || 
            href.includes('core-curriculum') || 
            href.includes('search?') ||
            text.includes('skill plans') ||
            text.includes('analytics') ||
            text.includes('recommendations')
        ) {
            link.style.display = 'none';
        }

        // Hide videos and games that lead to live site
        if (
            href.includes('showVideoDirectly') || 
            href.includes('videos.html') || 
            href.includes('www.ixl.com') ||
            href.includes('/games/') ||
            text.includes('watch video') ||
            link.classList.contains('video-link') ||
            link.classList.contains('game-link')
        ) {
            link.style.display = 'none';
        }
    });

    // 5. RESTORE CLICK AND SELECT INTERACTIVITY (FOR ALL ELEMENTS)
    
    // Inject massive global styles for selection
    const nexlStyles = document.createElement('style');
    nexlStyles.innerHTML = `
        .nexl-selected {
            border: 3px solid #10b981 !important;
            box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.5), 0 4px 6px rgba(0,0,0,0.1) !important;
            background-color: rgba(16, 185, 129, 0.08) !important;
            border-radius: 8px !important;
            z-index: 9999 !important;
            transition: all 0.2s ease-in-out !important;
        }
        .nexl-pending-drag {
            outline: 4px dashed #ff9800 !important;
            outline-offset: 4px !important;
            box-shadow: 0 0 15px rgba(255, 152, 0, 0.8) !important;
            transform: scale(1.05) !important;
            transition: all 0.2s ease !important;
            z-index: 10000 !important;
            cursor: grabbing !important;
        }
        /* Specific overrides for tables/texts so they don't look weird */
        td.nexl-selected {
            background-color: rgba(16, 185, 129, 0.15) !important;
            color: #065f46 !important;
            font-weight: bold !important;
        }
        /* SVG Group selections */
        g.nexl-selected rect, g.nexl-selected circle, g.nexl-selected path {
            stroke: #10b981 !important;
            stroke-width: 4px !important;
            fill: rgba(16, 185, 129, 0.2) !important;
        }
        g.nexl-selected text, g.nexl-selected tspan {
            fill: #065f46 !important;
            font-weight: bold !important;
        }
        /* Isolated SVG selections */
        text.nexl-selected, tspan.nexl-selected, rect.nexl-selected, circle.nexl-selected, path.nexl-selected, svg.nexl-selected {
            stroke: #10b981 !important;
            stroke-width: 4px !important;
            fill: rgba(16, 185, 129, 0.2) !important;
        }
        /* SCALING & CARD ISOLATION (50% BIGGER, 30% WIDER) */
        /* Nuclear destruction of IXL global green headers */
        #hd, .global-header, #global-nav, .header-container, #bd-header, .site-header {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            height: 0 !important;
        }

        /* Scale the practice card */
        .practice-area, #practice-area, .question-container {
            margin: 60px auto !important;
            max-width: 85% !important; /* Increased width significantly */
            background: white !important;
            border-radius: 12px !important;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
            padding: 20px !important;
            display: block !important;
        }
        body {
            overflow-x: hidden !important;
            background-color: #f4f6f8 !important;
            padding-bottom: 300px !important;
        }
    `;
    document.head.appendChild(nexlStyles);

    window.nexlPendingDragElement = null;

    const practiceArea = document.querySelector('.practice-area, #practice-area, .question-container, #practice-crate, .focused-practice-area, #practice-page-container, main');
    const isPracticePage = document.querySelector('.submit-button, button[type="submit"], .submit, button.submit, #submit-button, .crisp-button') !== null;
    
    if (practiceArea && practiceArea !== document.body && isPracticePage) {
        // NUCLEAR METHOD: Hide all siblings of practiceArea and its ancestors
        let curr = practiceArea;
        while (curr && curr !== document.body && curr !== document.documentElement) {
            const siblings = curr.parentElement.children;
            for (let i = 0; i < siblings.length; i++) {
                const s = siblings[i];
                const c = s.getAttribute('class') || '';
                if (s !== curr && s.tagName !== 'SCRIPT' && s.tagName !== 'STYLE' && s.tagName !== 'LINK' && s.id !== 'yui3-css-stamp' && !c.includes('yui3')) {
                    s.style.display = 'none';
                }
            }
            // Strip backgrounds from wrappers so they don't block the screen
            if (curr !== practiceArea) {
                curr.style.background = 'transparent';
                curr.style.boxShadow = 'none';
                curr.style.border = 'none';
                curr.style.padding = '0';
                curr.style.margin = '0';
            }
            curr = curr.parentElement;
        }
    }
    if (practiceArea && isPracticePage) {
        practiceArea.addEventListener('click', (e) => {
            // 1. BYPASS LOGIC: Ignore Submit buttons completely
            if (e.target.closest('button[type="submit"], .submit-button, .submit-btn, .submit, .button-submit, #submit-button')) {
                return;
            }
            // 2. CLICK-TO-MOVE ACCESSIBILITY HANDLER (DRAG-AND-DROP FALLBACK)
            const draggableItem = e.target.closest('.yui3-dd-draggable, .draggable, .drag-item, .draggableElement, .sticker, [draggable="true"]');
            if (draggableItem) {
                // If clicking the same item, deselect it
                if (window.nexlPendingDragElement === draggableItem) {
                    draggableItem.classList.remove('nexl-pending-drag');
                    window.nexlPendingDragElement = null;
                    return;
                }
                
                // If there was another pending item, deselect it
                if (window.nexlPendingDragElement) {
                    window.nexlPendingDragElement.classList.remove('nexl-pending-drag');
                }
                
                window.nexlPendingDragElement = draggableItem;
                draggableItem.classList.add('nexl-pending-drag');
                return; // Stop further selection logic for this element
            }
            
            const dropContainer = e.target.closest('.draggableContainer, .draggableArea, .dropslot, .interactiveArea, .drop-target, .binContentRow, .dragTile, .dropzone, [class*="drop"]');
            if (dropContainer && window.nexlPendingDragElement) {
                // Move the pending element into this drop container physically in the DOM
                dropContainer.appendChild(window.nexlPendingDragElement);
                
                // Reset styling to ensure it sits nicely in the container where they clicked
                const rect = dropContainer.getBoundingClientRect();
                const relativeX = e.clientX - rect.left - (window.nexlPendingDragElement.offsetWidth / 2 || 25);
                const relativeY = e.clientY - rect.top - (window.nexlPendingDragElement.offsetHeight / 2 || 25);

                window.nexlPendingDragElement.style.position = 'absolute';
                window.nexlPendingDragElement.style.left = relativeX + 'px';
                window.nexlPendingDragElement.style.top = relativeY + 'px';
                window.nexlPendingDragElement.style.margin = '0';
                
                // Try simulating a YUI3 drag and drop to trigger internal game state logic
                const dataTransfer = window.DataTransfer ? new DataTransfer() : null;
                const events = ['dragstart', 'dragenter', 'dragover', 'drop', 'dragend'];
                events.forEach(evt => {
                    const targetNode = (evt === 'dragstart' || evt === 'dragend') ? window.nexlPendingDragElement : dropContainer;
                    try {
                        targetNode.dispatchEvent(new DragEvent(evt, { bubbles: true, dataTransfer }));
                    } catch(err) {}
                });
                
                window.nexlPendingDragElement.classList.remove('nexl-pending-drag');
                window.nexlPendingDragElement = null;
                return;
            }

            let target = null;

            // 3. MULTIPLE-CHOICE HANDLER: Prioritize selecting the entire row/line instead of inner spans
            const choiceTarget = e.target.closest('.practice-choice, .q-choice, .answer-choice, li, [role="radio"], .SelectableTile, .selectable-tile');
            if (choiceTarget) {
                target = choiceTarget;
            }

            // 4. UNIVERSAL MANIPULATIVE/TEXT HANDLER: Fallback to substring matching for manipulatives, phrases, tokens
            if (!target) {
                target = e.target.closest(`
                    [class*="choice"], [class*="option"], [class*="answer"], [class*="interactive"], 
                    [class*="button"], [class*="phrase"], 
                    [class*="word"], [class*="sentence"], [class*="cube"], [class*="shape"], 
                    [class*="node"], [class*="click"], [class*="hotspot"], [class*="selectable"], 
                    [class*="item"], [class*="sticker"], [class*="token"], [class*="marker"], [class*="coin"],
                    [role="button"], [role="option"], [role="checkbox"], [role="radio"],
                    td, img
                `);
            }
            
            // 5. SVG GROUPS LOGIC: If it's inside an SVG, try to find a parent group <g> to select the whole button
            if (!target && e.target.closest) {
                let gNode = e.target.closest('g');
                if (gNode && gNode.parentElement) {
                    target = gNode;
                }
            }

            // Fallback for isolated SVG text/shapes if no group
            if (!target && ['text', 'tspan', 'rect', 'circle', 'path', 'svg'].includes(e.target.tagName?.toLowerCase())) {
                target = e.target;
            }

            // Fallback for Hundred Chart <td> cells
            if (!target && e.target.tagName === 'TD') {
                target = e.target;
            }

            if (target) {
                // If it's already selected, just unselect it and stop
                if (target.classList.contains('nexl-selected')) {
                    target.classList.remove('nexl-selected');
                    return; // Stop here!
                }

                // Unselect siblings ONLY if in a known single-select list, otherwise allow multiple selections
                const container = target.closest('.practice-choices, .q-choices, ul, .options, .answers, [role="radiogroup"], .radiogroup');
                if (container && !container.classList.contains('multi-select') && !container.closest('.multi-select')) {
                    const siblings = container.querySelectorAll('.nexl-selected');
                    siblings.forEach(s => {
                        if (s !== target) s.classList.remove('nexl-selected');
                    });
                }

                // Apply massive green selection effect simply by adding the class
                target.classList.add('nexl-selected');
            }
        }, true);
    }

    // 6. ORACLE APEX LOGIN REDIRECT
    const loginButtons = document.querySelectorAll('.sign-in-btn, a[href*="signin"], button.login');
    loginButtons.forEach(btn => {
        btn.addEventListener('click', (e) => {
            e.preventDefault();
            // Redirect to future Oracle APEX domain
            window.location.href = "https://your-oracle-domain.com/ords/nexl_schema/login";
        });
    });
})();

</script>
