.rf-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px;border-radius:20px;background:#00665c;color:white;margin-bottom:22px}.rf-hero h1,.rf-hero h2{margin:6px 0;font-size:clamp(24px,4vw,36px);font-weight:800}.rf-hero a{color:white}.rf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.rf-card{padding:24px;border:1px solid #00665c;border-radius:18px;background:white;display:flex;flex-direction:column;gap:12px}.rf-card h2,.rf-card h3{font-size:21px;font-weight:800;margin:0}.rf-card p{line-height:1.65;margin:0;color:#435c56}.rf-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.rf-card button,.rf-actions button,.rf-dialog button{background:#00665c;color:white;border:1px solid #00665c;border-radius:10px;padding:12px 16px;font:inherit;cursor:pointer}.rf-card button:hover,.rf-actions button:hover,.rf-dialog button:hover{background:#004c43}.rf-book{background:#00665c;color:white;border-radius:12px;padding:26px;font-weight:900;font-size:36px}.rf-book small{font-size:13px;letter-spacing:3px}.rf-dialog{width:min(650px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid #00665c;border-radius:20px;padding:24px;color:#173c33}.rf-dialog::backdrop{background:#102f2bcc}.rf-dialog label{display:block;margin:14px 0;font-weight:650}.rf-dialog input:not([type=checkbox]),.rf-dialog textarea,.rf-dialog select{display:block;width:100%;box-sizing:border-box;padding:12px;margin-top:6px;border:1px solid #698c82;border-radius:9px;font:inherit;background:white;color:#173c33}.rf-dialog .rf-check{display:flex;gap:8px;align-items:flex-start}.rf-dialog button:disabled{opacity:.5;cursor:wait}.rf-dialog hr{margin:24px 0}.rf-dialog p[role],#rank-notice{white-space:pre-wrap;color:#8a300f;line-height:1.6}.rf-dialog .rf-hero{padding:14px}.rf-dialog .rf-hero h2{font-size:23px}

.ed-main-nav{background:white;border-bottom:1px solid #00665c;max-width:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px max(20px,calc((100% - 1100px)/2))}.ed-brand img{display:block;object-fit:contain}.ed-main-nav>div{display:flex;flex-wrap:wrap;gap:12px 20px}.ed-main-nav a{text-decoration:none;font-weight:650;color:#004d40}.ed-main-nav a:hover{text-decoration:underline}.ed-purchases{max-width:1100px;margin:18px auto 0;padding:0 24px;text-align:right}.rf-hero{background:linear-gradient(120deg,#004d40,#00665c);box-shadow:0 8px 24px #004d4015}.rf-card{border:1.5px solid #00665c;box-shadow:0 4px 14px #004d4009}.study-paper-card{padding:16px!important}.study-paper-card h2{font-size:17px!important}.study-paper-card p{font-size:14px}.study-exam h2{font-size:20px;line-height:1.8}.study-exam .rf-actions{gap:10px;flex-wrap:wrap}@media(max-width:600px){.ed-main-nav{display:block;padding:12px 16px}.ed-main-nav>div{margin-top:12px;gap:9px 16px;font-size:14px}main{padding:16px!important}.rf-hero{padding:22px 18px}.rf-hero h1{font-size:27px}}

body.study-library-page #main-nav-header nav{padding:0;margin:0;max-width:none}body.study-library-page #main-nav-header a{text-decoration:none}body.study-library-page #main-nav-header .examdrona-header-inner{height:auto;min-height:72px;max-width:1536px}body.study-library-page #main-nav-header nav a{font-size:11px;padding:7px 5px}body.study-library-page #main-nav-header nav a:hover{background:#f1f5f9;color:#00665c;border-radius:8px}body.study-library-page main{max-width:1280px!important}.rf-hero{background:#fff;color:#173c33;border:2px solid #00665c;border-radius:24px;box-shadow:none;padding:28px 30px;margin:12px 0 24px}.rf-hero small{color:#00665c;letter-spacing:.13em;font-weight:800}.rf-hero h1{font-size:32px;font-weight:850;margin:8px 0}.rf-hero p{color:#475569;margin:0}.rf-card{border:2px solid #cbd5e1;border-radius:20px;box-shadow:none}.rf-card:hover{border-color:#00665c}.study-subject-card{min-height:88px!important;padding:12px!important;border:2px solid #00665c!important;border-radius:16px!important;gap:4px!important}.study-subject-card strong{font-size:14px!important}.study-subject-card small{font-size:12px!important}#study-root:has(.study-subject-card){grid-template-columns:repeat(auto-fill,minmax(135px,180px))!important}.study-paper-card{max-width:320px}.study-paper-card h2{font-size:16px!important}#study-root{gap:14px}.rf-hero h1{line-height:1.2}@media(max-width:600px){.rf-hero{padding:20px}.rf-hero h1{font-size:26px}#study-root:has(.study-subject-card){grid-template-columns:repeat(2,minmax(0,1fr))!important}body.study-library-page #main-nav-header .examdrona-header-inner{min-height:62px}body.study-library-page #main-nav-header img{width:145px}}
/* ExamDrona library catalogue, bookshop and editorial workspace */
body.study-library-page{background:#f7f9f8;color:#183d34}body.study-library-page main{padding:24px 28px 48px!important;max-width:1240px!important;margin:auto}.study-library-page .rf-hero{border:0;border-radius:18px;padding:38px;background:linear-gradient(120deg,#004d43,#00665c);color:white;position:relative;overflow:hidden}.study-library-page .rf-hero:after{content:'ED';position:absolute;right:28px;bottom:-35px;font-size:150px;font-weight:900;opacity:.06;pointer-events:none}.study-library-page .rf-hero small{color:#d7e8de}.study-library-page .rf-hero h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.035em;max-width:680px}.study-library-page .rf-hero p{color:#e0ede7;max-width:650px;font-size:16px;line-height:1.7}.study-section-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 20px}.study-section-bar h2{font-size:23px;font-weight:800;letter-spacing:-.025em;margin:0}.study-section-bar p{font-size:14px;color:#64756f;margin:5px 0}.study-section-bar label{font-size:13px;font-weight:600}.study-section-bar select{padding:9px 12px;border:1px solid #275f51;border-radius:8px;background:white}.rf-badge{display:inline-block;border-radius:6px;background:#eaf2ee;color:#075b50;padding:5px 9px;font-size:12px;font-weight:750;white-space:nowrap}
#study-root:has(.study-subject-card){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px}.study-subject-card{background:white!important;border:1px solid #375e51!important;border-radius:14px!important;min-height:140px!important;display:flex;flex-direction:column;text-align:left;gap:9px!important;padding:18px!important;box-shadow:0 3px 8px #183d3407;transition:transform .16s,box-shadow .16s}.study-subject-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #075b5018;border-color:#00665c!important}.study-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.study-class-icon,.study-subject-icon{width:38px;height:38px;background:#edf3ef;color:#00665c;border-radius:10px;display:grid;place-items:center;font-size:18px;font-weight:850}.study-arrow{font-size:12px;font-weight:700;color:#00665c}.study-subject-card strong{font-size:17px!important;line-height:1.3}.study-subject-card small,.study-card-meta{font-size:12px!important;color:#5a7067}.study-subject-card small{margin-top:auto}.study-back{grid-column:1/-1;justify-self:start;padding:4px 0 10px;color:#00665c;font-weight:700;font-size:14px}.study-paper-card{max-width:none;padding:22px!important;border:1px solid #375e51}.study-paper-card h2{font-size:18px!important;line-height:1.45}.study-paper-card button{margin-top:auto}.study-paper-card p{font-size:13px}
#rank-shop{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.rf-product{border:1px solid #c6d4ce;padding:0;overflow:hidden;border-radius:14px;gap:0;transition:box-shadow .2s}.rf-product:hover{box-shadow:0 10px 32px #163d3418}.rf-product .rf-book{background:#e9eeeb;border-radius:0;height:300px;display:flex;align-items:center;justify-content:center;padding:22px}.rf-book canvas{height:100%;max-width:100%;width:auto;object-fit:contain;box-shadow:5px 6px 12px #20382c25;background:white}.rf-cover-fallback{color:#00665c;text-align:center;font-size:26px;line-height:1.4}.rf-product h2{font-size:18px;line-height:1.4;padding:20px 20px 8px}.rf-product>p{padding:0 20px;font-size:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.rf-product>strong{padding:14px 20px 0;font-size:16px;color:#00665c}.rf-product .rf-actions{padding:0 20px;margin-top:auto;padding-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.rf-product button{font-size:13px;padding:11px 8px}.rf-product button:first-child{background:white;color:#00665c}.ed-purchases button{background:white;border:1px solid #00665c;color:#00665c;padding:9px 16px;border-radius:8px;font-weight:700}
.library-admin{padding:6px}.library-admin .rf-hero{background:white;border:0;border-bottom:1px solid #d5e1db;border-radius:0;padding:8px 0 20px}.library-admin .rf-hero a{color:#00665c;font-weight:700}.library-admin .rf-hero h2{font-size:28px;letter-spacing:-.025em}.library-admin .rf-hero p{font-size:14px}.library-admin .rf-card{border:1px solid #b9cdc2;border-radius:12px;padding:20px}.library-admin .rf-card h3{font-size:18px}.library-admin .rf-card small{color:#00665c;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.library-admin .rf-card button{margin-top:auto}.library-admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.library-admin-stats>div{background:#f5f8f6;border:1px solid #d3e0d9;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:4px}.library-admin-stats strong{font-size:27px;color:#00665c}.library-admin-stats span{font-size:13px;color:#536b60}.rf-editor{width:min(840px,calc(100% - 28px));padding:30px}.rf-editor h2{font-size:24px;font-weight:800}.rf-editor textarea{min-height:100px}.rf-upload-zone{background:#f0f6f2;border:2px dashed #6b9583;border-radius:14px;padding:22px;margin:18px 0}.rf-upload-zone p{font-size:14px;margin:7px 0;color:#50665b}.rf-upload-zone input{background:white}.rf-upload-zone small{font-size:12px;color:#526b5f}.rf-upload-summary{border:1px solid #99b7a7;border-radius:12px;padding:18px;margin-top:20px}.rf-page-picker{width:min(940px,calc(100% - 24px))}.rf-editor-heading{display:flex;justify-content:space-between;align-items:center}.rf-editor-heading h2{font-size:25px;font-weight:800}.rf-page-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.rf-page-grid label{margin:0;border:1px solid #a4bdb0;border-radius:10px;padding:10px;font-size:13px}.rf-page-grid label:has(input:checked){border:2px solid #00665c;background:#ecf5ef}.rf-page-grid canvas{display:block;width:100%;height:auto;margin-bottom:10px;background:white}.rf-page-grid input{accent-color:#00665c}.rf-dialog .rf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-dialog details.rf-card{margin:12px 0;padding:18px}.rf-dialog summary{font-size:16px;font-weight:750;color:#00665c;cursor:pointer}
@media(max-width:850px){#study-root:has(.study-subject-card){grid-template-columns:repeat(3,minmax(0,1fr))!important}#rank-shop{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body.study-library-page main{padding:16px!important}.study-library-page .rf-hero{padding:25px 20px}.study-section-bar{align-items:flex-start;gap:12px;margin:24px 0 16px}.study-section-bar h2{font-size:20px}#study-root:has(.study-subject-card){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.study-subject-card{padding:14px!important;min-height:130px!important}.study-subject-card strong{font-size:15px!important}.study-arrow{font-size:11px}#rank-shop{gap:14px}.rf-product .rf-book{height:215px;padding:14px}.rf-product h2{font-size:15px;padding:14px 12px 8px}.rf-product>p{padding:0 12px;font-size:12px}.rf-product>strong{padding:12px;font-size:14px}.rf-product .rf-actions{padding:0 12px;grid-template-columns:1fr}.rf-product button{font-size:12px}.rf-editor{padding:18px}.rf-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-admin-stats{gap:8px}.library-admin-stats>div{padding:12px}.library-admin .rf-hero{align-items:flex-start;flex-direction:column}.rf-dialog .rf-grid{grid-template-columns:1fr}.study-section-bar label{min-width:100px}.rf-hero h2{font-size:23px}}

.rf-sample-viewer{width:min(94vw,860px)}.rf-sample-viewer header{display:flex;justify-content:space-between;align-items:center}.rf-sample-viewer canvas{display:block;max-width:100%;height:auto;margin:auto}.rf-dialog.rank-payment-dialog{width:min(96vw,820px);max-width:820px;padding:0;border:0;background:transparent}.rank-payment-dialog .payment-shell{margin:0}.rank-payment-dialog .payment-header{background:#00665c}.rank-payment-dialog .payment-layout textarea{width:100%;padding:10px 12px;border:1px solid #c2d8ce;border-radius:10px;min-height:80px}.rank-payment-dialog .rank-pay-submit{width:100%;background:#00665c;color:white;padding:14px;border-radius:12px;margin-top:20px;font-weight:800}.rank-payment-dialog::backdrop{background:#073d35ad}

#exam-rank-files .rf-grid,#pyq-rank-files .rf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.rf-product .rf-book{height:320px;padding:16px;overflow:visible}.rf-product .rf-book canvas{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain}.rf-product .rf-actions{padding-bottom:18px}.rf-product{min-width:0}@media(max-width:900px){#exam-rank-files .rf-grid,#pyq-rank-files .rf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#rank-shop,#exam-rank-files .rf-grid,#pyq-rank-files .rf-grid{grid-template-columns:minmax(0,1fr)!important}.rf-product .rf-book{height:320px}.rf-product .rf-actions{grid-template-columns:1fr 1fr}.rf-product h2{font-size:18px}.rf-product>p,.rf-product button{font-size:14px}.rf-hero{flex-wrap:wrap}}
@media(max-width:767px){#rank-shop,#exam-rank-files .rf-grid,#pyq-rank-files .rf-grid{grid-template-columns:minmax(0,1fr)!important}}
/* Compact A4 covers; one centred product per row on phones. */
#rank-shop,#exam-rank-files .rf-grid,#pyq-rank-files .rf-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),280px));justify-content:start;gap:20px}
.rf-product{width:100%;max-width:280px;justify-self:start}
.rf-product .rf-book{height:auto;aspect-ratio:210/297;padding:12px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.rf-product .rf-book canvas{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain}
.rf-product h2{font-size:17px;padding:14px 14px 7px}.rf-product>p{font-size:13px;padding:0 14px}.rf-product>strong{font-size:16px;padding:12px 14px}.rf-product .rf-actions{padding:0 14px 14px;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.rf-product button{font-size:13px;padding:10px 7px}
@media(max-width:767px){#rank-shop,#exam-rank-files .rf-grid,#pyq-rank-files .rf-grid{grid-template-columns:minmax(0,280px)!important;justify-content:center}.rf-product{justify-self:center}.rf-product .rf-book{height:auto;aspect-ratio:210/297}}
