/* Isolated approved library prototype */
#fl31-library,#fl31-library *{box-sizing:border-box}#fl31-library{width:100%;max-width:none;min-width:0;isolation:isolate} [data-fl31-original][hidden]{display:none!important}
#fl31-library{margin:0;background:#faf5ea;font-family:Poppins,Inter,Arial,sans-serif;color:#0d3459}
#fl31-library a{color:inherit}
#fl31-library button{font:inherit}
#fl31-library .lib-wrap{width:min(100% - 64px,1280px);margin:auto}
#fl31-library .lib-hero{position:relative;isolation:isolate;background:#e5eff8;overflow:hidden;padding:23px 0 47px}
#fl31-library .lib-hero .shape{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
#fl31-library .crumb{display:flex;align-items:center;gap:9px;font-size:13px;color:#385974;margin:0 0 19px}
#fl31-library .crumb a{text-decoration:none}
#fl31-library .crumb a:hover{text-decoration:underline}
#fl31-library .hero-layout{display:grid;grid-template-columns:1fr 330px;gap:44px;align-items:center;min-height:175px}
#fl31-library .hero-layout h1{font-weight:700;font-size:clamp(37px,4.6vw,62px);letter-spacing:-1.6px;line-height:1.05;margin:0 0 13px}
#fl31-library .hero-layout h1 span{color:#176a9b}
#fl31-library .hero-layout p{font-size:16px;line-height:1.65;max-width:650px;margin:0}
#fl31-library .hero-layout img{width:100%;height:180px;object-fit:contain}
#fl31-library .wave{position:absolute;bottom:-1px;left:0;width:100%;height:32px;display:block}
#fl31-library .library{padding:29px 0 42px}
#fl31-library .library-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:27px}
#fl31-library .library-intro h2{font-size:29px;line-height:1.2;letter-spacing:-.45px;margin:0 0 6px}
#fl31-library .library-intro p{font-size:14px;line-height:1.55;margin:0;max-width:670px;color:#385974}
#fl31-library .jump{display:flex;gap:7px;flex-wrap:wrap;flex-shrink:0}
#fl31-library .jump a{border:1px solid #d8dfe1;background:#fffaf3;padding:9px 13px;border-radius:30px;text-decoration:none;font-weight:600;font-size:13px}
#fl31-library .jump a:hover{background:#ffdf89;border-color:#ffdf89}
#fl31-library .grade{margin:0 0 25px;scroll-margin-top:24px}
#fl31-library .grade-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
#fl31-library .grade-no{width:37px;height:37px;border-radius:12px 12px 15px 8px;display:grid;place-items:center;background:var(--pastel);color:var(--accent);font-weight:700;font-size:20px}
#fl31-library .grade-title{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap}
#fl31-library .grade-title h3{margin:0;font-size:23px;letter-spacing:-.3px}
#fl31-library .grade-title span{font-size:13px;color:#537087}
#fl31-library .grade-line{height:1px;background:#d9dfe1;flex:1;margin-left:10px}
#fl31-library .resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#fl31-library .book-card{position:relative;display:flex;align-items:center;gap:16px;padding:15px 16px;min-height:102px;background:#fffdf8;border-radius:16px;text-decoration:none;box-shadow:0 3px 0 #173b6509,0 5px 15px #173b6509;transition:transform .18s,background-color .18s,box-shadow .18s;min-width:0}
#fl31-library .book-card:hover{transform:translateY(-3px);background:white;box-shadow:0 8px 24px #12395f19}
#fl31-library .book-card:focus-visible{outline:3px solid #176a9b;outline-offset:3px}
#fl31-library .book-art{display:grid;place-items:center;background:var(--pastel);border-radius:40% 34% 43% 27% / 32% 44% 30% 45%;width:71px;height:71px;flex:none;color:var(--accent)}
#fl31-library .book-art svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#fl31-library .book-info{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
#fl31-library .book-info strong{font-size:17px;line-height:1.25;font-weight:650}
#fl31-library .book-info small{font-size:13px;color:#537087}
#fl31-library .arrow{width:28px;height:28px;display:grid;place-items:center;background:var(--pastel);color:var(--accent);border-radius:50%;flex:none;font-size:20px;transition:transform .18s}
#fl31-library .book-card:hover .arrow{transform:translateX(3px)}
#fl31-library .related{background:#dcecf5;padding:24px 0 30px;position:relative}
#fl31-library .related>.lib-wrap{display:flex;align-items:center;justify-content:space-between;gap:25px}
#fl31-library .related-text{display:flex;gap:15px;align-items:center}
#fl31-library .related img{width:76px;height:76px;object-fit:contain}
#fl31-library .related h2{margin:0 0 5px;font-size:24px}
#fl31-library .related p{margin:0;max-width:690px;font-size:14px;line-height:1.5}
#fl31-library .cta{display:inline-flex;gap:12px;align-items:center;background:#ffbf32;border-radius:30px;padding:13px 19px;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
#fl31-library .cta:hover{background:#ffcf65}
#fl31-library .teacher .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#fl31-library .teacher .grade-head{margin-bottom:17px}
#fl31-library .teacher .book-card{min-height:122px}
#fl31-library .teacher .book-art{width:86px;height:86px}
#fl31-library .teacher .book-art img{width:80px;height:80px;object-fit:contain}
#fl31-library .teacher .book-info strong{font-size:18px}
#fl31-library .teacher .library{padding-bottom:60px}
@media(max-width:1000px){#fl31-library .resource-grid,#fl31-library .teacher .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#fl31-library .hero-layout{grid-template-columns:1fr 240px;gap:20px}
#fl31-library .library-intro{align-items:start;flex-direction:column;gap:12px}}
@media(max-width:650px){#fl31-library .lib-wrap{width:calc(100% - 36px)}
#fl31-library .hero-layout{grid-template-columns:1fr 110px;gap:10px;min-height:0}
#fl31-library .hero-layout h1{font-size:33px;letter-spacing:-.7px}
#fl31-library .hero-layout p{font-size:14px}
#fl31-library .hero-layout img{height:110px}
#fl31-library .lib-hero{padding-top:14px;padding-bottom:35px}
#fl31-library .crumb{margin-bottom:16px}
#fl31-library .resource-grid,#fl31-library .teacher .resource-grid{grid-template-columns:1fr;gap:10px}
#fl31-library .book-card{min-height:90px;padding:12px}
#fl31-library .book-art{width:62px;height:62px}
#fl31-library .grade-head{gap:9px}
#fl31-library .grade-title{gap:4px;display:block}
#fl31-library .grade-title h3{font-size:20px}
#fl31-library .grade-title span{font-size:12px}
#fl31-library .library-intro h2{font-size:25px}
#fl31-library .related>.lib-wrap{align-items:stretch;flex-direction:column;gap:16px}
#fl31-library .related-text{align-items:start}
#fl31-library .related img{width:54px;height:54px}
#fl31-library .related h2{font-size:21px}
#fl31-library .cta{align-self:flex-start}
#fl31-library .grade{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){#fl31-library *{scroll-behavior:auto!important;transition:none!important}}
#fl31-library :is(h1,h2,h3){color:#0d3459;font-family:inherit}#fl31-library a{color:inherit;text-decoration:none}#fl31-library .lib-hero .shape,#fl31-library .wave{max-width:none}#fl31-library .book-card:hover,#fl31-library .cta:hover{color:#0d3459}#fl31-library .book-info strong{color:#0d3459}#fl31-library .crumb a:hover{color:#176a9b;text-decoration:none}#fl31-library .jump a:focus-visible,#fl31-library .cta:focus-visible{outline:2px solid #176a9b;outline-offset:3px}#fl31-library .lib-wrap{max-width:1280px}
