:root{--blue:#2563eb;--navy:#172544;--muted:#68768c;--line:#e7ecf2;--mint:#e4f3ed;--sky:#e6f1fc}*{box-sizing:border-box}body{margin:0;font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--navy);background:#fff}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6b99ff;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2;letter-spacing:-.035em}h1{font-size:48px}h2{font-size:32px;margin-bottom:13px}h3{font-size:18px}p{color:var(--muted)}.wrap{width:min(1280px,calc(100% - 96px));margin:auto}.blue,.text-link{color:var(--blue)}header{background:#fff;border-bottom:1px solid var(--line)}.nav{height:90px;display:flex;align-items:center;justify-content:space-between;gap:30px}.logo{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:780;letter-spacing:-1px}.logo:first-letter{color:var(--blue)}nav{display:flex;gap:28px;font-size:14px;font-weight:600}nav a:hover{color:var(--blue)}.button,button[type=submit],.searchbox button{background:var(--blue);border:1px solid var(--blue);color:white;padding:14px 22px;border-radius:9px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:24px;line-height:1.4}.button:hover,.searchbox button:hover{background:#194fcb}.button.small{font-size:13px;padding:12px 17px}.secondary{background:white;color:var(--navy);border-color:#dbe3ee}.secondary:hover{background:#eef4ff}.menu{display:none}.home-hero{background:#f0f6ff;overflow:hidden}.hero-layout{display:grid;grid-template-columns:1.18fr 1fr;gap:55px;align-items:center;min-height:615px;padding-top:55px;padding-bottom:60px}.pill{background:#e0ebff;color:#3260b6;font-size:10px;font-weight:750;letter-spacing:1.4px;display:inline-block;padding:7px 13px;border-radius:30px;margin-bottom:22px}.hero-copy h1{font-size:55px;line-height:1.12;font-weight:790;letter-spacing:-2.3px;margin-bottom:24px}.hero-copy h1>span{color:var(--blue);position:relative;display:inline-block}.underline{position:absolute;left:0;bottom:-9px;width:100%;height:7px;border-top:3px solid #a5c1fc;border-radius:50%}.hero-copy>p{font-size:16px;line-height:1.8;margin-bottom:26px}.searchbox{display:flex;align-items:center;gap:10px;background:white;padding:7px 7px 7px 17px;border:1px solid #dbe4f0;box-shadow:0 5px 15px #233e6810;border-radius:11px}.searchbox>span{font-size:25px;color:#77869e}.searchbox input{border:0;min-width:0;flex:1;width:100%;padding:8px 0;font-size:13px;color:var(--navy);background:transparent}.searchbox button{font-size:12px;padding:14px 15px;white-space:nowrap}.popular{font-size:11px;color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:13px;margin-top:14px}.popular a{border-bottom:1px solid #bdcbe1}.hero-checks{display:flex;gap:22px;font-size:11px;color:#596b87;margin-top:29px}.hero-checks span:first-letter{color:#38a07d}.hero-art{position:relative;min-height:450px;display:flex;align-items:center;justify-content:center}.hero-sheet{background:white;width:345px;padding:27px;border-radius:10px;box-shadow:0 20px 55px #29457818;border:1px solid #dde6f1;transform:rotate(6deg);z-index:2}.sheet-top{font-size:8px;letter-spacing:1.5px;color:#8092ac;display:flex;justify-content:space-between;border-bottom:1px solid #edf0f5;padding-bottom:17px}.sheet-top span{color:var(--blue)}.sheet-heading{display:flex;gap:12px;align-items:center;margin-top:21px}.mini-icon{background:#e4f3ed;color:#42a384;border-radius:9px;padding:1px 10px;font-size:29px}.sheet-heading small{font-size:7px;font-weight:700;color:#8192aa;letter-spacing:1px}.sheet-heading h2{font-size:22px;margin:4px 0}.sheet-instruction{font-size:8px;margin:17px 0}.sum{display:flex;justify-content:space-between;align-items:center;border:1px solid #e5eaf2;border-radius:8px;margin-top:12px;padding:12px 20px;font-size:25px;font-weight:600;letter-spacing:2px}.sum b{background:#eef9f2;border:1px solid #c8e7d4;color:#32916d;border-radius:6px;width:57px;height:42px;text-align:center;position:relative}.sum i{font-style:normal;position:absolute;font-size:10px;right:-7px;top:-8px;color:white;background:#58ae83;border-radius:50%;width:17px;height:17px;letter-spacing:0}.sum b.unfilled{background:#f1f6ff;border:1px dashed #9bb9ef;color:#9bb9ef}.sheet-bottom{font-size:9px;color:#8b99ac;display:flex;justify-content:space-between;align-items:center;margin-top:24px}.sheet-bottom span{color:#ecc259;font-size:17px;letter-spacing:2px}.floating{position:absolute;z-index:3;background:white;box-shadow:0 10px 30px #2c47651c}.abc{top:20px;left:6px;background:#fff0d7;border:6px solid white;border-radius:15px;padding:8px 19px;font-size:34px;color:#c5923e;font-weight:700;transform:rotate(-12deg)}.abc span{display:block;font-size:7px;letter-spacing:1px}.achievement{bottom:15px;left:3px;display:flex;gap:13px;padding:16px 22px;border-radius:12px;transform:rotate(-5deg)}.achievement>span{background:#e4f3ed;color:#419772;border-radius:50%;padding:3px 12px;font-size:25px}.achievement b{font-size:13px}.achievement small{display:block;color:var(--muted);font-size:11px}.art-star{position:absolute;right:5px;top:6px;color:#edc45f;font-size:55px;transform:rotate(12deg)}.art-doodle{position:absolute;right:-4px;bottom:15px;font-size:65px;color:#6791d4}.dot-grid{position:absolute;left:-18px;bottom:110px;color:#aac5f2;line-height:14px;letter-spacing:7px;transform:rotate(-10deg)}.trust-strip{display:flex;align-items:center;justify-content:space-between;padding-top:24px;padding-bottom:24px;border-bottom:1px solid var(--line);font-size:12px;color:#62728b}.trust-strip>span:first-child{font-size:8px;font-weight:700;letter-spacing:1px}.trust-strip>span:last-child{font-size:11px}.section{padding-top:65px;padding-bottom:65px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.section-head p{margin:0;font-size:14px}.eyebrow{font-size:9px;font-weight:750;letter-spacing:1.7px;color:#6682a7;display:block;margin-bottom:12px}.text-link{font-size:12px;font-weight:650;white-space:nowrap}.grade-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:13px}.grade-card{border:1px solid var(--line);border-radius:12px;padding:20px 13px 15px;transition:transform .15s}.grade-card:hover,.card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #1635600d}.grade-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;font-size:22px;font-weight:700;margin-bottom:18px}.c0{background:#fff1dc;color:#b88b39}.c1{background:#eee9fc;color:#8a71bd}.c2{background:#e6f2ff;color:#668fc4}.c3{background:#e2f2e9;color:#549e7c}.grade-card b{display:block;font-size:12px;margin-bottom:8px}.grade-card small{font-size:8px;color:#8090a5;display:flex;justify-content:space-between}.tinted{background:#f8fafc}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.subject-card{display:flex;align-items:center;gap:17px;border-radius:12px;padding:25px 23px;min-height:104px}.subject-card>span{font-size:29px;width:43px;text-align:center}.subject-card h3{margin-bottom:5px;font-size:17px}.subject-card p{margin:0;font-size:11px;color:#63758a}.subject-card>b{margin-left:auto;color:#708293;font-size:16px}.mint{background:#e4f3ed}.peach{background:#fff0e4}.sky{background:#e6f1fc}.yellow{background:#fbf4df}.lavender{background:#eeeafa}.pink{background:#f9eaf0}.worksheet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.card{border:1px solid #e3e9ef;border-radius:13px;overflow:hidden;background:white;transition:transform .15s;min-width:0}.preview{height:210px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;position:relative;padding:20px 25px 0}.paper{width:100%;height:186px;padding:17px 17px 10px;background:white;border-radius:5px 5px 0 0;box-shadow:0 2px 13px #1f3b4510;transform:rotate(-3deg);color:#475670}.paper-brand{font-size:5px;letter-spacing:.9px;color:#7f91ac;display:flex;justify-content:space-between;margin-bottom:13px}.paper strong{font-size:10px;display:block}.paper-rule{border-top:1px solid #edf0f5;margin:8px 0 12px}.preview-line{font-size:9px;display:flex;align-items:center;gap:5px;margin:8px 0;line-height:1.5;max-height:27px;overflow:hidden}.blank{width:19px;min-width:19px;height:15px;border:1px solid #d2ddec;border-radius:3px;display:inline-block}.paper-stars{font-size:13px;color:#b3c6de;text-align:center;margin:9px}.preview-tag{position:absolute;top:14px;right:12px;font-size:6px;letter-spacing:.7px;font-weight:750;background:#ffffffd9;border-radius:20px;padding:4px 8px;color:#55736b}.card-body{padding:19px}.badges{display:flex;flex-wrap:wrap;gap:7px;font-size:9px;margin-bottom:13px}.badges>span,.badges>a{background:#f2f5f9;padding:3px 8px;border-radius:4px;color:#62718a}.badges .subject{background:#edf4ff;color:#5c80ba}.card h3{font-size:15px;line-height:1.4;margin-bottom:8px;letter-spacing:-.3px}.card-body p{font-size:10px;margin-bottom:18px}.card-body p span{padding:0 7px}.card-link{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding-top:13px;color:var(--blue);font-weight:650;font-size:11px}.chips{display:flex;flex-wrap:wrap;gap:11px}.chips a{border:1px solid #e1e8f1;background:white;padding:10px 17px;border-radius:8px;font-size:12px;color:#536985}.chips a:hover{border-color:var(--blue);color:var(--blue)}.topic-section{border-top:1px solid var(--line);display:flex;align-items:center;gap:60px}.topic-section h2{font-size:26px;min-width:300px}.center{text-align:center}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:75px;margin-top:42px;text-align:center}.steps>div>span{display:inline-block;background:#edf3ff;padding:8px 15px;color:var(--blue);border-radius:11px;font-size:18px;font-weight:700;margin-bottom:20px}.steps h3{font-size:18px}.steps p{font-size:13px}.faq{max-width:900px}.faq details{border-bottom:1px solid var(--line);padding:20px 0}.faq summary{font-size:15px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:24px}.faq summary:after{content:'+';color:#7a8ba3}.faq details[open] summary:after{content:'−'}.faq details p{font-size:14px;padding-top:15px;margin-bottom:0}.footer{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-top:55px;padding-bottom:40px}footer{background:#f7f9fc;border-top:1px solid var(--line)}.footer .logo{font-size:22px;margin-bottom:15px}.footer p{font-size:12px;margin-bottom:5px}.footer b{display:block;margin-bottom:16px;font-size:12px}.footer>div>a:not(.logo){display:block;font-size:12px;color:#708099;margin-bottom:10px}.copyright{font-size:10px;color:#8b98ac;border-top:1px solid var(--line);padding-top:20px;padding-bottom:20px}.inner-hero{background:#f0f6ff;padding:30px 0 45px}.breadcrumb{font-size:11px;color:#7889a2;margin-bottom:30px}.breadcrumb a{text-decoration:underline}.inner-hero h1{max-width:850px;font-size:43px}.inner-hero p{max-width:850px;margin-bottom:0}.library{display:grid;grid-template-columns:215px 1fr;gap:30px}.library .worksheet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filters{border:1px solid var(--line);border-radius:12px;padding:20px;height:fit-content}.filters summary{font-weight:700;font-size:14px;cursor:pointer;margin-bottom:20px;list-style:none}.filters label{display:block;font-size:11px;font-weight:600;margin:17px 0}.filters select,.sort select{display:block;width:100%;padding:10px 8px;border:1px solid #dce4ed;border-radius:6px;background:white;color:#63728b;margin-top:7px;font-size:12px}.reset-filters{border:0;background:transparent;padding:0;color:var(--blue);font-size:12px}.sort{font-size:11px;min-width:150px}.sort select{margin:0}.prose{max-width:900px;padding-top:35px;padding-bottom:35px}.prose p{line-height:1.9;font-size:15px}.prose h3{margin-top:28px}.search-page{margin-top:30px;max-width:850px}.practice-layout{display:grid;grid-template-columns:1fr 280px;gap:35px}.practice-layout form{border:1px solid var(--line);border-radius:14px;padding:30px}.practice-head h2{font-size:26px}.practice-head p{font-size:12px}progress{width:100%;height:8px;accent-color:var(--blue)}.questions{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}.question{margin:0;min-width:0;border:1px solid var(--line);border-radius:9px;padding:20px}.question legend{padding:0 7px;font-size:15px;font-weight:600;max-width:100%}.question legend span{font-size:10px;color:#8999ae;margin-right:8px}.answer{border:1px solid #bccde4;border-radius:6px;width:100%;padding:12px;background:#f8fbff}.choice{display:flex;align-items:center;gap:10px;margin:8px 0;border:1px solid #e2e9f2;border-radius:6px;padding:9px 10px;font-size:13px}.choice:has(input:checked){border-color:#709bef;background:#eef4ff}.controls{display:flex;flex-wrap:wrap;gap:10px}.controls .button{font-size:12px;padding:12px 16px}.practice-info{padding:26px;background:#f5f8fc;border-radius:12px;height:fit-content}.practice-info p{font-size:13px}.practice-info hr{border:0;border-top:1px solid #dfe7f0;margin:25px 0}.score-box{background:#eff6ff;border-radius:15px;padding:35px;text-align:center;margin-bottom:30px}.score-number{font-size:70px;font-weight:750;color:var(--blue)}.score-stats{display:flex;justify-content:center;gap:30px}.review{padding:20px;margin:12px 0;border:1px solid var(--line);border-left:4px solid #df9c63;border-radius:8px}.review.correct{border-left-color:#4e9c7c}.review p{margin:5px 0;font-size:13px}.review b{font-size:14px}.skip{position:absolute;top:-100px;left:10px;background:white;padding:10px;z-index:10}.skip:focus{top:5px}[hidden]{display:none!important}#load-more{margin-top:25px} @media(min-width:1500px){.hero-copy h1{font-size:62px}.hero-layout{min-height:660px}.hero-art{transform:scale(1.08)}}@media(max-width:1100px){.wrap{width:calc(100% - 56px)}.nav{gap:20px}nav{gap:18px}.nav>.button{display:none}.hero-layout{gap:20px}.hero-copy h1{font-size:45px}.hero-art{transform:scale(.88)}.hero-checks{gap:12px;font-size:9px}.searchbox button{font-size:10px}.grade-grid{grid-template-columns:repeat(4,1fr)}.trust-strip>span:last-child{display:none}.worksheet-grid{gap:15px}.card-body{padding:15px}.preview{padding:20px 16px 0}.library{grid-template-columns:190px 1fr;gap:20px}.library .worksheet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-section{display:block}.topic-section .chips{margin-top:20px}}@media(max-width:767px){.wrap{width:calc(100% - 36px)}.nav{height:74px;position:relative}.logo{font-size:22px}.menu{display:block;border:1px solid #dbe4ef;border-radius:7px;background:#fff;font-size:19px;padding:5px 11px}nav{display:none;position:absolute;top:73px;left:-18px;right:-18px;z-index:9;background:#fff;padding:22px;box-shadow:0 10px 20px #17254414}nav.open{display:flex;flex-direction:column;gap:0}nav a{padding:12px}.hero-layout{grid-template-columns:1fr;padding-top:35px;padding-bottom:25px;gap:10px}.hero-copy h1{font-size:43px;letter-spacing:-1.7px}.hero-copy>p{font-size:14px}.hero-checks{font-size:10px;gap:15px;flex-wrap:wrap}.hero-art{width:100%;min-height:420px;transform:scale(.85);margin:-5px 0 -30px}.searchbox{gap:7px;padding-left:10px}.searchbox input{font-size:11px}.searchbox button{padding:13px 11px;font-size:10px}.popular{font-size:10px;gap:10px}.trust-strip{flex-wrap:wrap;justify-content:center;gap:15px;padding:20px 0;font-size:10px}.trust-strip>span:first-child{flex-basis:100%;text-align:center}.section{padding-top:42px;padding-bottom:42px}.section-head{align-items:flex-start;gap:15px;flex-wrap:wrap}h2{font-size:26px}.section-head p{font-size:12px}.eyebrow{font-size:8px}.grade-grid{grid-template-columns:repeat(2,1fr);gap:12px}.grade-card{padding:16px}.grade-card b{font-size:14px}.grade-card small{font-size:10px}.grade-icon{margin-bottom:12px}.subject-grid{grid-template-columns:1fr}.subject-card{padding:20px;min-height:90px}.worksheet-grid{grid-template-columns:1fr}.preview{height:240px;padding:25px 45px 0}.paper{height:218px;padding:23px}.paper strong{font-size:13px}.paper-brand{font-size:7px}.preview-line{font-size:12px;margin:12px 0}.card h3{font-size:18px}.card-body{padding:21px}.card-body p,.card-link{font-size:12px}.badges{font-size:10px}.preview-tag{font-size:8px}.steps{grid-template-columns:1fr;gap:30px}.steps>div{max-width:350px;margin:auto}.steps>div>span{margin-bottom:15px}.topic-section h2{min-width:0}.chips{gap:8px}.chips a{font-size:11px;padding:9px 12px}.footer{grid-template-columns:1fr 1fr;gap:30px}.footer>div:first-child{grid-column:1/-1}.footer .logo{font-size:24px}.inner-hero{padding:20px 0 30px}.inner-hero h1{font-size:34px}.inner-hero p{font-size:14px}.breadcrumb{margin-bottom:24px}.library{display:block}.filters{margin-bottom:25px}.filters label{display:inline-block;width:calc(50% - 10px);margin-right:8px}.library .worksheet-grid{grid-template-columns:1fr}.sort{min-width:130px}.practice-layout{grid-template-columns:1fr}.practice-layout form{padding:18px}.questions{grid-template-columns:1fr;gap:24px}.question{padding:17px}.controls{flex-direction:column}.controls .button{width:100%}.prose p{font-size:14px}.score-stats{gap:15px;font-size:12px}.desktop{display:none}}@media(min-width:600px) and (max-width:767px){.worksheet-grid,.library .worksheet-grid{grid-template-columns:1fr 1fr}.preview{padding:25px 20px 0}.subject-grid{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media print{header,footer,.skip,.inner-hero .eyebrow,.breadcrumb,.badges,.practice-info,.controls,.prose,.faq,.practice-layout~section{display:none!important}.wrap{width:100%}.inner-hero{padding:0;background:white}.inner-hero h1{font-size:25px}.inner-hero p{font-size:12px}.practice-layout{display:block}.practice-layout form{border:0;padding:0}.section{padding:15px 0}.practice-head{display:none}.questions{grid-template-columns:1fr 1fr;gap:15px}.question{break-inside:avoid}.answer{background:white}.choice{padding:4px}.section:has(>.worksheet-grid){display:none}.question input[type=radio]{appearance:none;width:12px;height:12px;border:1px solid black;border-radius:50%}}
/* Expanded curriculum navigation and static hierarchy directories. */
.nav-menu{position:relative}.nav-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px}.nav-menu>summary::-webkit-details-marker{display:none}.nav-menu>summary span{font-size:11px;color:#7e8ca2}.nav-menu[open]>summary{color:var(--blue)}.nav-dropdown{position:absolute;top:calc(100% + 9px);left:-20px;width:260px;padding:14px;background:white;border:1px solid var(--line);box-shadow:0 14px 35px #17254418;border-radius:11px;z-index:20}.nav-dropdown a{display:block;font-size:13px;font-weight:500;padding:9px 11px;border-radius:5px}.nav-dropdown a:hover{background:#f1f6ff}.grade-menu .nav-dropdown{width:350px;display:grid;grid-template-columns:1fr 1fr;gap:3px}.topic-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:25px}.topic-tile{padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff}.topic-tile:hover{border-color:#a8c3f3;background:#fafcff}.topic-tile h3{font-size:16px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}.topic-tile h3 span{color:#7094d0}.topic-tile p{font-size:12px;margin:0;line-height:1.8}.availability-note{border-left:3px solid #9eb9e8;border-radius:7px;background:#f5f8fd;padding:22px;margin-top:24px}.availability-note p{font-size:14px}.breadcrumb{display:flex;flex-wrap:wrap;gap:7px;line-height:1.8}.subject-directory+.subject-directory{border-top:1px solid var(--line)}.subject-card h3{font-size:16px}.grade-grid{grid-template-columns:repeat(7,minmax(0,1fr))}@media(max-width:1100px){.grade-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.topic-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.nav{gap:16px}}@media(max-width:767px){.nav-menu>summary{padding:12px;min-height:44px}.nav-dropdown,.grade-menu .nav-dropdown{position:static;box-shadow:none;border:0;background:#f6f9ff;margin-bottom:8px;width:100%;padding:10px;border-radius:7px}.nav-menu:not([open]) .nav-dropdown{display:none}.grade-menu .nav-dropdown{grid-template-columns:1fr 1fr}.nav-dropdown a{padding:9px 12px;font-size:12px}.topic-directory{grid-template-columns:1fr}.grade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}nav{max-height:calc(100vh - 85px);overflow:auto}.nav-menu .nav-dropdown{left:auto}.subject-card h3{font-size:17px}}@media print{.availability-note,.topic-directory{display:none}}
/* Keep dropdown panels out of the header's flex layout in every browser. */
header{position:relative;z-index:30}.nav{min-height:90px}.nav>.logo,.nav>.button{flex-shrink:0}.nav>nav{align-items:center;flex-shrink:0}.nav>nav>a{white-space:nowrap}.nav-menu{flex:0 0 auto;min-width:0}.nav-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;white-space:nowrap;list-style:none;user-select:none}.nav-menu>summary::marker{content:''}.nav-menu>summary::-webkit-details-marker{display:none}.nav-menu>.nav-dropdown{display:none;position:absolute;left:-18px;right:auto;top:calc(100% + 8px);width:260px;max-height:min(540px,calc(100vh - 120px));overflow-y:auto;overscroll-behavior:contain;padding:12px;background:#fff;border:1px solid #e1e8f2;border-radius:12px;box-shadow:0 15px 35px #17254420;z-index:40}.nav-menu[open]>.nav-dropdown{display:flex;flex-direction:column;gap:2px}.nav-menu.grade-menu[open]>.nav-dropdown{display:grid;grid-template-columns:1fr 1fr;width:350px;column-gap:10px}.nav-menu .nav-dropdown>a{display:block;white-space:normal;line-height:1.5;padding:10px 12px;border-radius:6px;font-size:13px;font-weight:550}.nav-menu .nav-dropdown>a:hover,.nav-menu .nav-dropdown>a:focus-visible{background:#edf4ff;color:var(--blue)}.nav-menu>summary span{transition:transform .15s}.nav-menu[open]>summary span{transform:rotate(180deg)}@media(max-width:767px){.nav{min-height:74px;height:74px}.nav>nav{align-items:stretch;flex-shrink:1}.nav-menu{width:100%}.nav-menu>summary{justify-content:space-between;min-height:46px;width:100%;padding:12px}.nav-menu>.nav-dropdown,.nav-menu.grade-menu[open]>.nav-dropdown{position:static;width:100%;max-height:none;border:0;box-shadow:none;background:#f4f8ff;margin:0 0 10px;padding:8px;overflow:visible}.nav-menu .nav-dropdown>a{font-size:13px;padding:11px 12px}.nav-menu.grade-menu[open]>.nav-dropdown{column-gap:5px}.nav>nav.open{display:flex}}
@media(min-width:768px){.nav-menu>.nav-dropdown{left:auto;right:0}}
.home-learning{padding-top:40px;padding-bottom:25px}.home-learning a{color:#235bd2;text-decoration:underline;text-decoration-color:#adc4ef;text-underline-offset:3px}.home-learning a:hover{text-decoration-color:currentColor}.home-learning h2{max-width:760px}.home-learning h3{font-size:21px;margin-top:28px}@media(max-width:767px){.home-learning{padding-top:24px;padding-bottom:12px}.home-learning h3{font-size:19px}}
/* Compact pastel topic navigation shared by subject and grade directories. */
.topic-directory{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}.topic-tile{padding:15px 17px;border-radius:10px;border:1px solid transparent;box-shadow:none;transition:border-color .15s,transform .15s}.topic-tile:nth-child(6n+1){background:#eaf5ef}.topic-tile:nth-child(6n+2){background:#edf3ff}.topic-tile:nth-child(6n+3){background:#f3edfb}.topic-tile:nth-child(6n+4){background:#fff2e7}.topic-tile:nth-child(6n+5){background:#fbf4df}.topic-tile:nth-child(6n){background:#fbeef3}.topic-tile h3{font-size:14px;line-height:1.4;letter-spacing:-.2px;margin-bottom:6px;gap:9px}.topic-tile h3 span{flex-shrink:0}.topic-tile p{font-size:11px;line-height:1.65;color:#53657e}.topic-tile:hover{border-color:#8eacd9;transform:translateY(-2px)}@media(max-width:1100px){.topic-directory{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:767px){.topic-directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.topic-tile{padding:13px}.topic-tile h3{font-size:13px}.topic-tile p{font-size:11px}}@media(prefers-reduced-motion:reduce){.topic-tile:hover{transform:none}}
.topic-skill-guide{scroll-margin-top:28px;border-left:3px solid #b8cdee;background:#f7faff;border-radius:7px;padding:1px 22px 10px;margin:24px 0}.topic-skill-guide h3{margin-top:20px}
.reading-passage{margin-top:26px;padding:24px;background:#f4f8ff;border:1px solid #dce7f7;border-radius:10px}.reading-passage h2{font-size:23px}.reading-passage p{font-size:16px;line-height:1.95;color:#394b67;margin-bottom:0}@media(max-width:767px){.reading-passage{padding:18px}.reading-passage h2{font-size:21px}.reading-passage p{font-size:15px}}@media print{.reading-passage{background:#fff;border:1px solid #999;break-inside:avoid;padding:14px}.reading-passage .eyebrow{display:none}.reading-passage h2{font-size:17px}.reading-passage p{font-size:12px;line-height:1.6}}
/* More-section topic links retain the shared chip sizing and layout. */
.more-section .chips>a:nth-child(6n+1){background:#eaf5ef;border-color:#d9eae0}.more-section .chips>a:nth-child(6n+2){background:#edf3ff;border-color:#dce6f7}.more-section .chips>a:nth-child(6n+3){background:#f3edfb;border-color:#e5dcf2}.more-section .chips>a:nth-child(6n+4){background:#fff2e7;border-color:#f3e2d2}.more-section .chips>a:nth-child(6n+5){background:#fbf4df;border-color:#ece3c8}.more-section .chips>a:nth-child(6n){background:#fbeef3;border-color:#efdce5}.more-section .chips>a:hover{border-color:var(--blue)}
.availability-note .text-link{white-space:normal;overflow-wrap:anywhere}

/* Shared worksheet filters: clear controls and a compact, sticky desktop panel. */
.library > .filters{background:#f0f6ff;border:1px solid #cfddf5;border-top:4px solid var(--blue);border-radius:14px;padding:20px 18px;box-shadow:0 6px 20px #17254408;align-self:start}
.filters summary{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--navy);font-size:15px;line-height:1.4;margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid #d8e4f6}
.filters summary::after{content:'−';display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:7px;background:#dfeaff;color:var(--blue);font-size:19px;font-weight:500}
.filters details:not([open]) summary{margin-bottom:0;padding-bottom:0;border-bottom:0}
.filters details:not([open]) summary::after{content:'+'}
.filters label{color:#34496b;font-size:12px;font-weight:650;margin:14px 0}
.filters select{appearance:none;min-height:43px;padding:10px 30px 10px 11px;border:1px solid #c4d4eb;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23557096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;color:#253c61;font-size:12px;font-weight:500;line-height:1.4;margin-top:6px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.filters select:hover{border-color:#739ce0}
.filters select:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-color:var(--blue)}
.filters .reset-filters{display:block;width:100%;padding:10px 12px;margin-top:18px;border:1px solid #c7d9f7;border-radius:8px;background:#e1ecff;color:#2455ae;font-size:12px;font-weight:650;text-align:center}
.filters .reset-filters:hover{background:#d5e5ff;border-color:#9dbcec}
@media(min-width:768px){.library > .filters{position:sticky;top:22px;max-height:calc(100dvh - 44px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#afc6eb transparent}}
@media(max-width:767px){.library > .filters{position:static;padding:16px;margin-bottom:24px}.filters label{vertical-align:top}.filters summary{font-size:15px}.filters .reset-filters{margin-top:10px}}
@media(max-width:420px){.filters label{display:block;width:100%;margin-right:0}}

/* Homepage popular topics: colors only; shared chip dimensions stay unchanged. */
.topic-section .chips>a:nth-child(6n+1){background:#eaf5ef;border-color:#d9eae0}
.topic-section .chips>a:nth-child(6n+2){background:#edf3ff;border-color:#dce6f7}
.topic-section .chips>a:nth-child(6n+3){background:#f3edfb;border-color:#e5dcf2}
.topic-section .chips>a:nth-child(6n+4){background:#fff2e7;border-color:#f3e2d2}
.topic-section .chips>a:nth-child(6n+5){background:#fbf4df;border-color:#ece3c8}
.topic-section .chips>a:nth-child(6n){background:#fbeef3;border-color:#efdce5}

/* Touch layouts: existing grade and topic cards in a single horizontal row. */
@media screen and (max-width:1024px){
  .grade-grid,.topic-directory{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:clamp(155px,42vw,225px);
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    scroll-padding-inline:2px;
    padding-bottom:12px;
    scrollbar-width:thin;
    scrollbar-color:#bdcde5 transparent;
  }
  .topic-directory{grid-auto-columns:clamp(175px,44vw,260px)}
  .grade-grid>.grade-card,.topic-directory>.topic-tile{scroll-snap-align:start;min-width:0}
}

/* Homepage intro call to action. */
.hero-copy>.explore-worksheets{background:#c74735;border-color:#c74735;margin-bottom:22px}
.hero-copy>.explore-worksheets:hover{background:#ad3929;border-color:#ad3929}

/* Supplied WorksheetKoala wordmark, preserving header and footer layout. */
.logo .site-brand-logo{display:block;width:270px;height:44px;object-fit:cover;object-position:center;max-width:100%}
.footer .logo .site-brand-logo{width:240px;height:42px}
@media(max-width:767px){.logo .site-brand-logo{width:235px;height:42px}}

/* Results: encouraging koala and pastel next-step links. */
#results .results-koala{display:block;width:104px;height:104px;object-fit:contain;margin:0 auto 10px}
#results>.controls>a.button{color:var(--navy)}
#results>.controls>a.button:nth-child(1){background:#e4f3ed;border-color:#cce4d8}
#results>.controls>a.button:nth-child(2){background:#eeeafa;border-color:#dfd7ef}
#results>.controls>a.button:nth-child(3){background:#fff0e4;border-color:#efdccc}
#results>.controls>a.button:nth-child(1):hover{background:#d4eade}
#results>.controls>a.button:nth-child(2):hover{background:#e1daf3}
#results>.controls>a.button:nth-child(3):hover{background:#f7e2d1}
@media(max-width:767px){
#results>.chips>a:nth-child(6n+1){background:#eaf5ef;border-color:#d9eae0}
#results>.chips>a:nth-child(6n+2){background:#edf3ff;border-color:#dce6f7}
#results>.chips>a:nth-child(6n+3){background:#f3edfb;border-color:#e5dcf2}
#results>.chips>a:nth-child(6n+4){background:#fff2e7;border-color:#f3e2d2}
#results>.chips>a:nth-child(6n+5){background:#fbf4df;border-color:#ece3c8}
#results>.chips>a:nth-child(6n){background:#fbeef3;border-color:#efdce5}
}

/* Skill choices: the existing chip layout with shared pastel colors at every size. */
.skill-chips>a:nth-child(6n+1){background:#eaf5ef;border-color:#d9eae0}
.skill-chips>a:nth-child(6n+2){background:#edf3ff;border-color:#dce6f7}
.skill-chips>a:nth-child(6n+3){background:#f3edfb;border-color:#e5dcf2}
.skill-chips>a:nth-child(6n+4){background:#fff2e7;border-color:#f3e2d2}
.skill-chips>a:nth-child(6n+5){background:#fbf4df;border-color:#ece3c8}
.skill-chips>a:nth-child(6n){background:#fbeef3;border-color:#efdce5}

/* Sorting shares the existing sidebar filter styling. */
.filters .sort{min-width:0}

/* Worksheet-only print footer, centered in the reserved bottom margin. */
@page worksheet{margin:15mm 15mm 24mm}
@media print{
  body:has(#practice){page:worksheet}
  body:has(#practice)::after{
    content:'WorksheetKoala · worksheetkoala.com';
    position:fixed;
    left:0;
    right:0;
    bottom:-15mm;
    text-align:center;
    font:600 10pt/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing:.2pt;
    color:#172544;
  }
}

/* Grade choices retain their size and use the shared pastel palette. */
.grade-chips>a:nth-child(6n+1){background:#eaf5ef;border-color:#d9eae0}
.grade-chips>a:nth-child(6n+2){background:#edf3ff;border-color:#dce6f7}
.grade-chips>a:nth-child(6n+3){background:#f3edfb;border-color:#e5dcf2}
.grade-chips>a:nth-child(6n+4){background:#fff2e7;border-color:#f3e2d2}
.grade-chips>a:nth-child(6n+5){background:#fbf4df;border-color:#ece3c8}
.grade-chips>a:nth-child(6n){background:#fbeef3;border-color:#efdce5}
