/* Extend the existing PharmaDevils dosage-form layout without changing its source pages. */
.pd-df-course .pd-course-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-top:20px}
.pd-df-course .pd-course-link{--m-accent:#5b50d6;--m-soft:#f3f2ff;--m-dark:#38328a;position:relative;display:flex;flex-direction:column;min-height:278px;padding:22px 23px;border:1px solid #e0e5ed;border-top:5px solid var(--m-accent);border-radius:18px;background:linear-gradient(145deg,var(--m-soft),#fff 78%);text-decoration:none!important;box-shadow:0 9px 26px rgba(21,36,72,.055);transition:transform .18s ease,box-shadow .18s ease;box-sizing:border-box}
.pd-df-course .pd-course-link:hover,.pd-df-course .pd-course-link:focus-visible{transform:translateY(-4px);box-shadow:0 17px 34px rgba(21,36,72,.13);outline:2px solid var(--m-accent);outline-offset:2px}
.pd-df-course .pd-course-link .pd-course-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;font-size:27px;box-shadow:0 5px 15px rgba(26,46,79,.07);margin-bottom:16px}
.pd-df-course .pd-course-link small{color:var(--m-dark);font-size:11px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}
.pd-df-course .pd-course-link h4{font-size:20px;line-height:1.3;color:#1d2d46;margin:9px 0}
.pd-df-course .pd-course-link p{font-size:13px;line-height:1.58;color:#52627a;margin:0 0 18px}
.pd-df-course .pd-course-cta{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:auto;padding:10px 15px;border-radius:10px;background:var(--m-accent);color:#fff!important;font-size:13px;font-weight:800;letter-spacing:.1px}
.pd-df-course .pd-course-intro{font-size:14px;margin:0;color:#586781}
.pd-df-course .pd-course-membernote{font-size:12px;color:#65758e;margin-top:14px}

.pd-library-shell{box-sizing:border-box;max-width:1100px;margin:30px auto 60px;padding:0 12px;color:#1f2d45;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.pd-library-shell *{box-sizing:border-box}
.pd-library-breadcrumb{font-size:13px;color:#75839c;margin:0 0 16px;display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.pd-library-breadcrumb a{font-weight:700;color:#4c52b4;text-decoration:none}
.pd-library-hero{display:flex;align-items:flex-start;gap:22px;padding:33px;border:1px solid #e1e9f2;border-radius:23px;background:linear-gradient(125deg,var(--m-soft,#f2f4ff),#fff 86%);box-shadow:0 12px 28px rgba(20,40,80,.07)}
.pd-library-icon{flex:0 0 76px;width:76px;height:76px;display:flex;align-items:center;justify-content:center;font-size:36px;border:1px solid #dee6ef;border-radius:20px;background:#fff;box-shadow:0 10px 23px rgba(20,38,72,.07)}
.pd-library-eyebrow{font-size:12px;font-weight:800;letter-spacing:.75px;color:var(--m-accent,#6053ce)}
.pd-library-hero h2{font-size:clamp(26px,3vw,38px);line-height:1.2;color:#18263c;margin:9px 0 14px}
.pd-library-hero p{margin:0;line-height:1.7;font-size:15px;color:#556780;max-width:760px}
.pd-library-uploadbar{display:flex;align-items:center;gap:17px;flex-wrap:wrap;max-width:1100px;padding:19px 21px;margin:19px auto 23px;border:1px solid #b7e5d4;border-left:5px solid #12805d;border-radius:17px;background:linear-gradient(115deg,#e9fff5,#f6fffb 55%,#fff);box-shadow:0 9px 24px rgba(9,95,70,.08);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;box-sizing:border-box}
.pd-library-uploadbar *{box-sizing:border-box}
.pd-library-upload-icon{display:flex;align-items:center;justify-content:center;width:53px;height:53px;flex:0 0 53px;background:#fff;border-radius:15px;border:1px solid #bfebd8;font-size:26px}
.pd-library-upload-copy{min-width:225px;flex:1}
.pd-library-upload-eyebrow{display:block;color:#087453;font-size:10px;font-weight:850;letter-spacing:1.1px;margin:0 0 4px}
.pd-library-upload-copy h3{margin:0 0 5px!important;font-size:19px!important;line-height:1.3;color:#12523e!important;font-weight:800!important}
.pd-library-upload-copy p{margin:0!important;font-size:12px!important;line-height:1.6!important;color:#406f60!important}
.pd-library-upload-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:215px}
.pd-library-upload-button,.pd-library-manage-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 13px;border-radius:10px;font-size:12px;font-weight:800;text-decoration:none!important;text-align:center;line-height:1.3}
.pd-library-upload-button{background:#098b61;color:#fff!important;box-shadow:0 3px 8px rgba(9,139,97,.15)}
.pd-library-upload-button:hover,.pd-library-upload-button:focus-visible{background:#05704e;color:#fff!important;outline:2px solid #087f5a;outline-offset:2px}
.pd-library-manage-button{background:#fff;color:#12634b!important;border:1px solid #b9e4d2}
.pd-library-manage-button:hover,.pd-library-manage-button:focus-visible{border-color:#087f5a;color:#087453!important;outline:2px solid #087f5a;outline-offset:2px}
.pd-library-details{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:19px;margin-top:23px}
.pd-library-panel{padding:26px;border:1px solid #e3e9f2;border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(21,37,77,.055);margin:0 0 20px}
.pd-library-panel h3{font-size:21px;font-weight:800;color:#25344c;margin:0 0 15px}
.pd-library-panel p,.pd-library-panel li{font-size:14px;color:#53647d;line-height:1.7}
.pd-library-panel ul{padding-left:22px;margin:0 0 14px}
.pd-library-panel li{margin-bottom:8px}
.pd-library-fineprint{font-size:12px!important;color:#76839a!important;margin:14px 0 0}
.pd-library-access{border-top:5px solid #6859d9;background:linear-gradient(145deg,#f7f4ff,#fff 70%)}
.pd-library-status{display:inline-block;border-radius:40px;padding:7px 11px;background:#ebe6ff;color:#5043ac;font-size:11px;font-weight:800;letter-spacing:.4px;margin-bottom:18px}
.pd-library-access h3{font-size:20px}
.pd-library-button{display:inline-block;border-radius:11px;background:#5d50d5;color:white!important;padding:12px 17px;font-weight:800;font-size:13px;text-decoration:none!important;margin:9px 10px 4px 0}
.pd-library-button:hover,.pd-library-button:focus-visible{background:#4336af}
.pd-library-secondary,.pd-library-admin-link{font-size:13px;font-weight:750;color:#4d46a5;text-decoration:underline}
.pd-library-member-ready{display:block;font-size:13px;font-weight:700;color:#117447;margin-top:17px}
.pd-library-files{border-top:4px solid #177f61}
.pd-library-files .dlm-downloads{padding-left:0;list-style:none;margin:16px 0}
.pd-library-files .dlm-downloads li{display:block;padding:13px 16px;border-radius:11px;border:1px solid #d9e5f1;margin-bottom:9px;background:#f7fbff}
.pd-library-files .dlm-downloads a{font-size:14px;font-weight:750;color:#2654a9}
.pd-library-read-list{display:grid;grid-template-columns:1fr;gap:10px;margin-top:17px}
.pd-library-read-item{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #dce8ee;border-radius:14px;padding:15px;background:linear-gradient(105deg,#f5fbff,#fff 75%)}
.pd-library-read-title{display:flex;align-items:center;gap:12px;min-width:0}
.pd-library-document-icon{display:flex;align-items:center;justify-content:center;flex:0 0 44px;height:44px;border-radius:12px;background:#e9f0ff;font-size:22px}
.pd-library-read-title strong{display:block;color:#25344c;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.pd-library-read-title small{display:block;font-size:11px;color:#73839a;margin-top:5px}
.pd-library-read-button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;padding:11px 16px;border-radius:10px;background:#146cbb;color:white!important;font-size:13px;font-weight:800;text-decoration:none!important;box-shadow:0 4px 11px rgba(20,108,187,.14)}
.pd-library-read-button:hover,.pd-library-read-button:focus-visible{background:#0d5293;color:white!important;outline:2px solid #2a86da;outline-offset:2px}
.pd-library-empty,.pd-library-locked-note{padding:16px 17px;border:1px dashed #b7c9dc;border-radius:12px;background:#f8fbfe;font-size:13px;color:#50647d}
.pd-library-pagination{display:flex;align-items:center;justify-content:center;gap:20px;padding:16px 0;font-size:13px;color:#5a6981}
.pd-library-pagination a{font-weight:800;text-decoration:none;color:#225a9b}
.pd-library-reader-shell{max-width:960px}
.pd-library-reading-area{padding:0;overflow:hidden}
.pd-library-reader-head{padding:28px 32px;border-bottom:1px solid #e1e7f0;background:linear-gradient(110deg,#edf4ff,#fff)}
.pd-library-reader-head h2{font-size:clamp(23px,3vw,34px);line-height:1.3;color:#213553;margin:12px 0 9px}
.pd-library-reader-head p{margin:0;font-size:13px;color:#677991}
.pd-library-reader-badge{display:inline-block;border-radius:25px;background:#dff4e9;color:#0e6b44;font-size:11px;font-weight:800;letter-spacing:.45px;padding:7px 12px}
.pd-library-document-body{padding:35px 38px;background:#fff;color:#25344c;line-height:1.75;font-size:15px;user-select:text}
.pd-library-document-body p{font-size:15px;line-height:1.75;color:#25344c;margin:0 0 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.pd-library-document-body h1,.pd-library-document-body h2,.pd-library-document-body h3,.pd-library-document-body h4{color:#1d385b;margin:22px 0 12px;font-weight:800;line-height:1.35}
.pd-library-document-body h1{font-size:27px}.pd-library-document-body h2{font-size:23px}.pd-library-document-body h3{font-size:19px}.pd-library-document-body h4{font-size:16px}
.pd-library-table-scroll{max-width:100%;overflow:auto;margin:18px 0 25px}
.pd-library-document-body table{width:100%;min-width:440px;border-collapse:collapse;font-size:13px}
.pd-library-document-body td,.pd-library-document-body th{border:1px solid #d4deeb;padding:10px 12px;vertical-align:top;min-width:90px;overflow-wrap:anywhere}
.pd-library-document-body tr:nth-child(even){background:#f7faff}
.pd-library-document-body td p,.pd-library-document-body th p{font-size:13px;line-height:1.5;margin:0 0 6px}
.pd-library-reader-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 30px;border-top:1px solid #e1e7ef;background:#f8faff;font-size:12px;color:#6c7990}
.pd-library-reader-foot a{color:#26599d;font-size:13px;font-weight:800;text-decoration:none}
.pd-library-admin-link{display:inline-block;margin-top:20px}
.pd-library-locked{border-top:4px solid #e49332;background:#fffbf4}
.pd-library-related{background:#fafbff}
.pd-library-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.pd-library-related-grid a{display:flex;align-items:center;gap:9px;padding:14px;border-radius:11px;background:white;border:1px solid #e2e6f0;color:#334c78;font-weight:700;text-decoration:none!important;font-size:13px}
.pd-library-related-grid a span:last-child{margin-left:auto}
.pd-library-related-grid a:hover,.pd-library-related-grid a:focus-visible{border-color:#6479e0;box-shadow:0 7px 18px rgba(37,61,119,.1)}
@media(max-width:950px){.pd-df-course .pd-course-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.pd-library-hero{padding:22px;display:block}.pd-library-icon{margin-bottom:20px}.pd-library-details{grid-template-columns:1fr}.pd-library-panel{padding:21px}.pd-library-uploadbar{align-items:flex-start}.pd-library-upload-actions{flex:1 0 100%;flex-direction:row;flex-wrap:wrap}.pd-library-upload-actions a{flex:1 1 180px}.pd-library-reading-area{padding:0}.pd-library-reader-head{padding:23px}.pd-library-document-body{padding:23px}.pd-library-read-item{align-items:flex-start;flex-direction:column}.pd-library-read-button{width:100%}}
@media(max-width:620px){.pd-df-course .pd-course-module-grid{grid-template-columns:1fr}.pd-df-course .pd-course-link{min-height:250px}.pd-library-related-grid{grid-template-columns:1fr}}
