/* Readable golden-yellow library, with touch-friendly controls. */
:root{--gold:var(--color-accent, #fbc004);--gold-light:#f2dc91}
html{font-size:18px}
.refined-library{--gold:var(--color-accent, #fbc004);--gold-light:#f2dc91;font-size:1rem;line-height:1.7}
.refined-library p,.refined-library li{font-size:1rem!important;line-height:1.7}
.refined-library :is(label,input,select,textarea,button,summary){font-size:1rem!important}
.refined-library :is(.meta,.eyebrow,small,.breadcrumbs,.cover-type,.cover-foot,.cover-top){font-size:.88rem!important;line-height:1.55;letter-spacing:normal}
.refined-library :is(input:not([type=checkbox]):not([type=radio]),select,button,.button,.btn){min-height:48px}
.refined-library input,.refined-library select,.refined-library textarea{max-width:100%;min-width:0}
.refined-library .button,.refined-library .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:1rem!important;white-space:normal;padding:12px 20px}
.refined-library .button.gold,.tool-shell .btn-primary,.tool-shell .btn.primary{background:var(--gold);color:#173228!important;border-color:var(--gold)}
.refined-library :is(.button,.btn):focus-visible,.grade-tile:focus-visible,.tool-tile:focus-visible{outline:3px solid #0c4129;outline-offset:4px}
.refined-library .utility{font-size:.8rem}
.utility .wrap{flex-wrap:wrap;gap:8px;padding-block:9px}
.refined-library .library-header .brand{font-size:29px;min-width:0}
.refined-library .library-header .brand small{font-size:.66rem!important;letter-spacing:1px;white-space:normal}
.refined-library .library-header nav>a,.refined-library .library-header nav>details>summary,.refined-library .nav-auth>a{font-size:.88rem!important}
.refined-library .library-header nav{gap:17px}
.header-shelf .wrap{min-width:0;gap:15px}
.header-shelf :is(a,.shelf-links){font-size:.85rem!important}
.header-shelf .shelf-links{min-width:0;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.header-shelf .shelf-links a{white-space:nowrap}
.refined-library .hero-description{font-size:1.08rem!important;line-height:1.75}
.refined-library .hero-editorial h1{font-size:clamp(2.5rem,5.5vw,4.9rem);line-height:1.07}
.refined-library .discovery-search input{font-size:1rem!important}
.refined-library .discovery-filters{gap:15px}
.refined-library .discovery-filters label{font-size:.85rem!important}
.refined-library .hero-assurance{font-size:.85rem;flex-wrap:wrap;gap:14px}
.refined-library .page-title h1{font-size:clamp(2rem,4.8vw,3.5rem)!important;line-height:1.15}
.refined-library .section-heading h2{font-size:clamp(1.7rem,3vw,2.6rem)}
.refined-library .card-body h3{font-size:1.15rem!important;line-height:1.45;min-height:0}
.refined-library .card-body h3 a{overflow-wrap:anywhere}
.refined-library .card-bottom{flex-wrap:wrap;gap:14px}
.refined-library .card-bottom :is(a,button,.price){font-size:1rem!important}
.refined-library .card-download{padding:10px 0;text-align:left}
.refined-library .cover>strong{font-size:clamp(1.4rem,2.2vw,2rem)}
.refined-library .offer-grid a{padding:25px;min-width:0}
.refined-library .offer-grid strong{font-size:1.15rem}
.refined-library .offer-grid small{white-space:normal}
.refined-library .stage-groups a{font-size:1rem!important;padding:12px}
.refined-library .footer-top a,.refined-library .footer-top h3,.refined-library .footer-social a{font-size:.95rem!important;line-height:1.6}
.refined-library .footer-top p,.refined-library .footer-bottom{font-size:.88rem!important}
.refined-library .article-body{font-size:1rem;line-height:1.8}
.refined-library .company-hero-grid h1{font-size:clamp(2.2rem,5vw,4.6rem);line-height:1.15}
.refined-library .company-offers :is(h3){font-size:1.6rem}
.refined-library .founder-profile .boen-cv-profile-copy .lead{font-size:1.2rem!important}
.refined-library .founder-profile .founder-name{font-size:clamp(3rem,6vw,5.5rem)}
.refined-library .founder-profile .boen-cv-role{font-size:1.3rem!important}
.refined-library .founder-profile :is(.boen-cv-kicker,.boen-cv-verified,.boen-cv-contact>a,.boen-cv-contact>span){font-size:.85rem!important}
.refined-library .founder-profile .boen-photo-credentials{flex-wrap:wrap;gap:12px}
.free-library-banner{background:#f2dc91;border-bottom:1px solid var(--color-accent, #fbc004);color:#173228;padding:13px 0}
.free-library-banner>.wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;font-size:.95rem}
.free-library-banner a{font-weight:700;text-decoration:underline;margin-left:auto}
.lesson-grade-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}
.grade-tile{display:flex;flex-direction:column;padding:20px 16px;background:#faf8f1;border:1px solid #dce7e1;border-radius:15px;gap:5px;min-width:0}
.grade-tile strong{font-size:1.15rem}.grade-tile span{font-size:.85rem}
.grade-tile:hover,.grade-tile.selected{background:#f2dc91;border-color:#b4932d;text-decoration:none}
.lesson-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:end;gap:18px;padding:25px;background:#faf8f1;border:1px solid #dce7e1;border-radius:18px}
.lesson-filters label{margin:0}.lesson-filters input,.lesson-filters select{margin-top:9px;width:100%}
.lesson-filters>a{padding:12px 0}
.lesson-results-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:35px 0 20px;flex-wrap:wrap}
.lesson-results-heading h2{font-size:1.6rem;margin:0}.lesson-results-heading p{margin:8px 0}
.lesson-list{display:grid;gap:15px}
.lesson-row{display:grid;grid-template-columns:115px minmax(0,1fr) 215px;gap:25px;align-items:center;padding:24px;border:1px solid #dce7e1;border-radius:17px;background:#fff}
.lesson-number{font-weight:700;color:#0c4129;background:#e8f5ee;padding:16px 12px;border-radius:12px;text-align:center}
.lesson-number small{display:block;margin-top:6px}.lesson-info{min-width:0}.lesson-info h3{font-size:1.12rem;margin:0;line-height:1.5;overflow-wrap:anywhere}
.lesson-info p{margin:8px 0}.lesson-info small{color:#52665b}.lesson-action form{margin:0}.lesson-action .button{width:100%}
.lesson-action>span{display:block;text-align:center;color:#38523c;font-size:.85rem;margin-top:9px}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px}
.tool-tile{background:#faf8f1;border:1px solid #dce7e1;border-radius:20px;padding:30px;min-width:0}
.tool-tile:hover{border-color:#b4932d;background:#fff8de;text-decoration:none}.tool-tile h2{font-size:1.5rem}.tool-tile svg{width:35px;height:35px;color:#0c4129}
.tool-intro{padding-block:24px}.tool-shell{min-width:0;padding-bottom:50px}
.tool-shell .container{max-width:100%;width:100%;margin:0}.tool-shell .page-hero{padding:25px 0 35px}.tool-shell .page-hero h1{font-size:clamp(2rem,4vw,3.2rem)}
.tool-shell .card{padding:24px;border:1px solid #dce7e1;border-radius:16px;background:#faf8f1}
.tool-shell .section{padding-block:25px}.tool-shell label{display:block}.tool-shell .field{min-width:0}
.tool-shell :is(.curriculum-controls,.scheme-form-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:20px}
.tool-shell .curriculum-search-field{grid-column:auto}.tool-shell .curriculum-overview{display:flex;flex-wrap:wrap;gap:25px;justify-content:space-between;padding:30px 0}
.tool-shell .curriculum-totals{display:flex;gap:30px}.tool-shell .curriculum-totals strong{display:block;font-size:2rem}
.tool-shell .curriculum-list{display:grid;gap:18px}.tool-shell .curriculum-strand{border:1px solid #dce7e1;border-radius:16px;overflow:hidden}
.tool-shell .curriculum-strand summary{display:flex;align-items:center;gap:16px;padding:20px;background:#f5efd8;cursor:pointer;flex-wrap:wrap}
.tool-shell .curriculum-strand summary strong{display:block;font-size:1.2rem}.tool-shell .curriculum-number{background:#0c4129;color:white;padding:9px 14px;border-radius:10px}
.tool-shell .curriculum-count{margin-left:auto}.tool-shell .curriculum-strand ol{padding:15px 25px 25px 48px}.tool-shell .curriculum-substrand{padding:12px 0}
.tool-shell .curriculum-objectives{margin:12px 0}.tool-shell .curriculum-objectives>span{font-weight:700}
.tool-shell :is(#curriculum-empty,#book-empty-state){display:none}.tool-shell :is(#curriculum-empty,#book-empty-state).visible{display:block}
.tool-shell .scheme-step{display:none}.tool-shell .scheme-step.active{display:block}.tool-shell .scheme-step-heading{margin:25px 0}
.tool-shell .scheme-step-actions,.tool-shell .scheme-toolbar,.tool-shell .scheme-stepper,.tool-shell .button-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.tool-shell .scheme-stepper{margin:25px 0}.tool-shell .scheme-stepper button.active{background:#0c4129;color:white}
.tool-shell .scheme-step-actions{margin-top:25px}.tool-shell table{font-size:.9rem;min-width:800px}.tool-shell td,.tool-shell th{font-size:.9rem;padding:12px}
.tool-shell :is(.scheme-table-wrap,.table-wrap,.table-responsive){overflow:auto;max-width:100%}
.tool-shell .scheme-check{display:flex;align-items:center;gap:12px}.tool-shell input[type=checkbox]{width:22px;height:22px}
.tool-shell .approved-book-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px;margin:25px 0}
.tool-shell .approved-book-stat{background:#e8f5ee;padding:20px;border-radius:15px}.tool-shell .approved-book-stat strong{font-size:1.7rem;display:block}
.tool-shell .approved-book-stat small{display:block}.tool-shell #book-type-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.tool-shell .approved-book-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:18px}
.tool-shell #approved-book-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:22px;margin:25px 0}
.tool-shell .approved-book-card{border:1px solid #dce7e1;border-radius:16px;overflow:hidden}.tool-shell .approved-book-cover{background:#0c4129;color:white;padding:20px;display:flex;flex-direction:column;gap:10px}
.tool-shell .approved-book-content{padding:23px}.tool-shell .approved-book-content h3{font-size:1.15rem}.tool-shell .approved-book-details{margin:20px 0}.tool-shell .approved-book-details dd{margin:4px 0 16px;overflow-wrap:anywhere}
.tool-shell .approved-book-footer{padding-top:15px;border-top:1px solid #dce7e1}.tool-shell .approved-book-price{display:block;font-size:1.3rem}
.tool-shell .app-shell{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:25px}.tool-shell .sidebar{min-width:0}
.tool-shell .preview-wrap{overflow:auto;max-width:100%;border:1px solid #dce7e1;border-radius:15px;padding:15px}.tool-shell .toolbar{display:flex;flex-wrap:wrap;gap:12px}
.tool-shell .lesson-plan{background:white;min-height:500px;padding:24px}.tool-shell [hidden]{display:none!important}
@media(max-width:1100px){
 .library-header .nav{position:relative;flex-wrap:wrap;justify-content:space-between;padding-block:12px}
 .refined-library .library-header .brand{flex:1;max-width:calc(100% - 85px)}
 .refined-library .menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;font-size:1rem;min-height:48px}
 .refined-library .library-header nav#main-nav{display:none;position:static;flex:0 0 100%;min-width:0;background:#fff;border-top:1px solid #dce7e1;padding:10px 0 0}
 .refined-library .library-header nav#main-nav.open{display:flex;flex-direction:column;align-items:stretch;gap:4px}
 .refined-library .library-header #main-nav>a:not(.nav-search),.refined-library .library-header #main-nav summary{padding:10px 8px;min-height:44px;white-space:normal}.refined-library .nav-auth{flex-wrap:wrap;border-left:0;margin:0;padding:8px 0 0}.library-header .dropdown>div{position:static;width:100%;box-shadow:none}
 .refined-library .hero-grid,.refined-library .hero-editorial-grid{grid-template-columns:1fr}
 .tool-shell .app-shell{grid-template-columns:1fr}.tool-shell .sidebar{position:static;max-height:none;overflow:visible}
}
@media(max-width:760px){
 html{font-size:17px}.refined-library .wrap{width:calc(100% - 32px)}
 .utility .wrap{justify-content:center;text-align:center}.utility .wrap>a{display:none}
 .refined-library .library-header .brand{font-size:24px}.refined-library .library-header .brand small{font-size:12px!important;line-height:1.35}
 .refined-library .hero-assurance{font-size:.9rem;line-height:1.6}.refined-library .discovery-search{padding:16px}
 .refined-library .discovery-search .discovery-filters{grid-template-columns:1fr;gap:16px}
 .refined-library .hero-editorial h1{font-size:clamp(2.2rem,9vw,3.3rem)}
 .refined-library .resource-grid,.refined-library .catalogue-results .resource-grid{grid-template-columns:1fr}
 .refined-library .cover{min-height:190px}.refined-library .cover>strong{font-size:1.8rem!important}
 .refined-library .showcase-book>strong{font-size:1.5rem}.refined-library .resource-showcase{max-width:100%}
 .refined-library .offer-grid{grid-template-columns:1fr}.refined-library .offer-grid a{padding:24px 18px}
 .refined-library .company-offers{grid-template-columns:1fr}.refined-library .company-principles>.wrap{grid-template-columns:1fr}
 .refined-library .footer-top{grid-template-columns:1fr;gap:30px}.refined-library .footer-bottom{flex-wrap:wrap;line-height:1.7}
 .free-library-banner>.wrap{display:block;text-align:center}.free-library-banner span,.free-library-banner a{display:block;margin:5px 0}
 .lesson-grade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grade-tile{padding:17px 13px}
 .lesson-filters{grid-template-columns:1fr;padding:20px}.lesson-filters .button{width:100%}
 .lesson-row{grid-template-columns:1fr;padding:20px;gap:17px}.lesson-number{display:flex;gap:12px;align-items:center;justify-content:flex-start;text-align:left}
 .lesson-number small{margin:0}.lesson-action{width:100%}.lesson-results-heading form,.lesson-results-heading .button{width:100%}
 .refined-library .pagination{flex-wrap:wrap;gap:12px}.tool-shell .curriculum-controls{grid-template-columns:1fr}
 .tool-shell .curriculum-strand summary{padding:17px;gap:10px}.tool-shell .curriculum-count{margin-left:0}
 .tool-shell .scheme-form-grid{grid-template-columns:1fr}.tool-shell .scheme-toolbar>.btn{flex:1 1 140px}
 .tool-shell .approved-book-filters{grid-template-columns:1fr}.tool-shell .approved-book-stats{grid-template-columns:1fr 1fr}
}
@media print{.free-library-banner,.tool-intro{display:none}body:has(.lesson-planner-tool) .library-header,body:has(.lesson-planner-tool) .utility,body:has(.lesson-planner-tool) footer,body:has(.lesson-planner-tool) .sidebar{display:none!important}.tool-shell.lesson-planner-tool .app-shell{display:block}.tool-shell.lesson-planner-tool .preview-wrap{overflow:visible;border:0;padding:0}}

