/* IamPharmacist SOP Plugin v1.3.0 */
.sop-wrap{max-width:1180px;margin:0 auto;padding:32px 20px;font-family:inherit;color:#142b49}
.sop-label{font-size:12px;letter-spacing:.14em;font-weight:800;opacity:.7}
.sop-archive-hero,.sop-hero{padding:48px 0 28px}
.sop-archive-hero h1,.sop-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.05;margin:10px 0 14px;letter-spacing:-1.5px}
.sop-archive-hero p,.sop-lead{font-size:18px;line-height:1.7;max-width:760px;opacity:.8}
.sop-breadcrumb{font-size:13px;opacity:.7;margin-bottom:4px}.sop-breadcrumb a{color:#1769e0}
.sop-content-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:38px;align-items:start}
.sop-sidebar{position:sticky;top:24px}.sop-body{min-width:0}
.sop-box{border:1px solid #e3e9f1;border-radius:14px;padding:18px;background:#fff;box-shadow:0 8px 28px rgba(20,43,73,.05);margin-bottom:12px}
.sop-box h3{margin:0 0 12px;font-size:15px}.sop-meta-row{padding:10px 0;border-top:1px solid #e7eaee}.sop-meta-row span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;opacity:.6}.sop-meta-row strong{display:block;margin-top:3px;font-size:13px}
.sop-toc-box{max-height:58vh;overflow:auto}.sop-toc-list{margin:0;padding-left:18px}.sop-toc-list li{margin:0;padding:3px 0;font-size:12px;line-height:1.45}.sop-toc-list a{color:#52657d;text-decoration:none}.sop-toc-list a:hover{color:#1769e0}.sop-toc-sub{margin:4px 0 0;padding-left:17px}
.sop-download,.sop-print{display:block;width:100%;box-sizing:border-box;margin-top:12px;padding:12px 15px;border-radius:10px;text-align:center;font-weight:800;cursor:pointer;text-decoration:none}.sop-download{background:#1769e0;color:#fff}.sop-download:hover{background:#0d4fa8;color:#fff}.sop-print{border:1px solid #dbe3ea;background:#142b49;color:#fff}.sop-print:hover{opacity:.92}
.sop-post-content{font-size:16px;line-height:1.8}.sop-post-content h2{margin:2em 0 .65em;font-size:28px;line-height:1.2}.sop-post-content h3{margin:1.6em 0 .55em;font-size:21px}.sop-post-content h2:first-child{margin-top:0}.sop-post-content table{width:100%;border-collapse:collapse;margin:20px 0}.sop-post-content th,.sop-post-content td{border:1px solid #dfe6ee;padding:9px;text-align:left}.sop-post-content img{max-width:100%;height:auto}.sop-notice{padding:14px 16px;border-left:4px solid #2563eb;background:#eff6ff;border-radius:8px;margin-bottom:25px}
/* SOP home /sops — visual language based on supplied preview */
.sopdb{--blue:#1769e0;--blue2:#0d4fa8;--teal:#0d9488;--navy:#142b49;--text:#52657d;--muted:#8492a5;--bg:#f5f8fc;--card:#fff;--border:#e3e9f1;--shadow:0 10px 35px rgba(20,43,73,.07);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--navy);line-height:1.5;width:100%;margin:0}.sopdb *{box-sizing:border-box}.sopdb a{text-decoration:none;color:inherit}.sopdb button{font-family:inherit}.sopdb-container{width:min(1180px,calc(100% - 30px));margin:auto}
.sopdb-hero{padding:65px 0 85px;background:radial-gradient(circle at 90% 10%,rgba(13,148,136,.15),transparent 28%),radial-gradient(circle at 5% 90%,rgba(23,105,224,.13),transparent 30%),linear-gradient(135deg,#f8fbff,#edf6ff 55%,#f7fffe)}.sopdb-hero-content{max-width:850px;margin:auto;text-align:center}.sopdb-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 15px;border-radius:50px;background:#e7f1ff;border:1px solid #d5e5fb;color:var(--blue2);font-size:12px;font-weight:800;margin-bottom:18px}.sopdb-hero h1{margin:0;font-size:clamp(38px,5vw,62px);line-height:1.05;letter-spacing:-2px}.sopdb-hero h1 span{color:var(--blue)}.sopdb-hero p{max-width:730px;margin:18px auto 30px;color:var(--text);font-size:17px}.sopdb-search{position:relative;max-width:760px;margin:auto;display:flex;align-items:center}.sopdb-search input{width:100%;height:62px;border:1px solid #d9e3ef;border-radius:16px;background:#fff;padding:0 125px 0 155px;outline:none;font-size:15px;box-shadow:0 12px 30px rgba(20,43,73,.08)}.sopdb-search input:focus{border-color:var(--blue);box-shadow:0 12px 35px rgba(23,105,224,.13)}.sopdb-search-icon{position:absolute;left:18px;top:50%;transform:translateY(-50%);font-size:20px}.sopdb-search-select-wrap{position:absolute;left:46px;top:50%;transform:translateY(-50%);z-index:3}.sopdb-search-select-wrap select{height:38px;min-width:95px;border:1px solid #d9e3ef;border-radius:9px;background:#f7faff;color:#1d4f91;padding:0 28px 0 10px;font-size:12px;font-weight:800;outline:none;cursor:pointer}.sopdb-search-select-wrap select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,105,224,.08)}.sopdb-search button{position:absolute;right:7px;top:7px;height:48px;padding:0 20px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:800;cursor:pointer}
.sopdb-stats{margin-top:-38px;position:relative;z-index:2}.sopdb-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.sopdb-stat{background:#fff;border:1px solid var(--border);border-radius:17px;padding:22px;box-shadow:var(--shadow)}.sopdb-stat strong{display:block;font-size:28px}.sopdb-stat span{color:var(--muted);font-size:12px}
.sopdb-main{padding:65px 0}.sopdb-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}.sopdb-section-head h2{margin:0 0 5px;font-size:30px;letter-spacing:-.7px}.sopdb-section-head p{margin:0;color:var(--muted);font-size:14px}.sopdb-controls{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.sopdb-control-buttons{display:flex;gap:8px}.sopdb-control-buttons button{border:1px solid var(--border);background:white;padding:9px 13px;border-radius:8px;color:var(--text);font-size:11px;font-weight:800;cursor:pointer}.sopdb-control-buttons button:hover{color:var(--blue);border-color:#bfd3ee}.sopdb-result-count{color:var(--muted);font-size:12px}
.sopdb-departments{display:flex;flex-direction:column;gap:12px}.sopdb-department{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:0 3px 15px rgba(20,43,73,.025);transition:.2s}.sopdb-department:hover{border-color:#cbdaf0}.sopdb-department.open{box-shadow:var(--shadow)}.sopdb-dept-head{min-height:78px;display:flex;align-items:center;gap:14px;padding:12px 15px}.sopdb-dept-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:#edf5ff;font-size:23px;flex-shrink:0}.sopdb-dept-title{flex:1}.sopdb-dept-title h3{margin:0;font-size:17px}.sopdb-dept-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.sopdb-dept-count{padding:6px 10px;border-radius:7px;background:#f4f7fa;color:var(--muted);font-size:10px;font-weight:800}.sopdb-more{border:1px solid var(--border);background:#fff;color:var(--blue);padding:8px 13px;border-radius:8px;cursor:pointer;font-size:11px;font-weight:800;white-space:nowrap}.sopdb-more:hover{background:var(--blue);border-color:var(--blue);color:#fff}.sopdb-more .arrow{display:inline-block;margin-left:5px;transition:.2s}.sopdb-department.open .sopdb-more .arrow{transform:rotate(180deg)}
.sopdb-categories{display:none;border-top:1px solid var(--border);background:#fafcff;padding:16px}.sopdb-department.open .sopdb-categories{display:block}.sopdb-category{border:1px solid var(--border);border-radius:11px;background:#fff;margin-bottom:8px;overflow:hidden}.sopdb-category:last-child{margin-bottom:0}.sopdb-category-head{min-height:52px;display:flex;align-items:center;gap:10px;padding:8px 11px}.sopdb-cat-number{width:31px;height:31px;display:grid;place-items:center;border-radius:7px;background:#eef5ff;color:var(--blue);font-size:10px;font-weight:900}.sopdb-cat-title{flex:1}.sopdb-cat-title strong{display:block;font-size:13px}.sopdb-cat-title small{color:var(--muted);font-size:10px}.sopdb-topic-count{font-size:10px;color:var(--muted);background:#f5f7fa;padding:5px 7px;border-radius:6px}.sopdb-cat-more{border:0;background:#edf5ff;color:var(--blue);border-radius:7px;padding:7px 9px;cursor:pointer;font-size:10px;font-weight:800}.sopdb-category.open .sopdb-cat-more{background:var(--blue);color:#fff}.sopdb-topics{display:none;border-top:1px solid #edf0f4;background:#fbfcfe;padding:5px 15px 8px 53px}.sopdb-category.open .sopdb-topics{display:block}.sopdb-topic{display:flex;align-items:center;gap:10px;min-height:39px;border-bottom:1px solid #eef1f5;color:var(--text);font-size:12px}.sopdb-topic:last-child{border-bottom:0}.sopdb-topic:hover{color:var(--blue);padding-left:4px}.sopdb-topic-dot{width:6px;height:6px;border:2px solid #a8b8ca;border-radius:50%;flex-shrink:0}.sopdb-topic:hover .sopdb-topic-dot{border-color:var(--blue)}.sopdb-topic-arrow{margin-left:auto;color:#a8b5c4}.sopdb-hidden{display:none!important}.sopdb-no-topics,.sopdb-empty{padding:14px;color:var(--muted);font-size:12px}.sopdb-highlight{background:#fff0a3;border-radius:3px}
.sopdb-quick{padding:55px 0;background:#fff;border-top:1px solid var(--border)}.sopdb-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.sopdb-quick-card{border:1px solid var(--border);border-radius:14px;padding:22px;transition:.2s}.sopdb-quick-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.sopdb-quick-card .icon{font-size:25px;margin-bottom:14px}.sopdb-quick-card strong{display:block;font-size:14px}.sopdb-quick-card span{display:block;margin-top:4px;color:var(--muted);font-size:11px}
@media(max-width:850px){.sopdb-stat-grid{grid-template-columns:repeat(2,1fr)}.sopdb-quick-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sop-content-layout{grid-template-columns:1fr}.sop-sidebar{position:static;order:2}}
@media(max-width:600px){.sop-wrap{padding:20px 15px}.sop-toc-box{max-height:none}.sopdb-container{width:calc(100% - 18px)}.sopdb-hero{padding:45px 0 70px}.sopdb-hero h1{font-size:39px}.sopdb-hero p{font-size:15px}.sopdb-search input{height:55px;padding-right:105px}.sopdb-search button{height:41px;top:7px;padding:0 13px}.sopdb-stat-grid{grid-template-columns:1fr 1fr}.sopdb-stat{padding:16px}.sopdb-stat strong{font-size:22px}.sopdb-section-head{align-items:flex-start;flex-direction:column}.sopdb-dept-head{min-height:70px;padding:10px}.sopdb-dept-icon{width:40px;height:40px;font-size:19px}.sopdb-dept-title h3{font-size:14px}.sopdb-dept-count{display:none}.sopdb-more{padding:7px 9px}.sopdb-categories{padding:10px}.sopdb-topic-count{display:none}.sopdb-topics{padding-left:35px}.sopdb-quick-grid{grid-template-columns:1fr}}

/* v1.3.0: department/category/subcategory identity */
.sopdb-dept-icon,.sopdb-cat-icon,.sopdb-sub-icon{display:grid;place-items:center;overflow:hidden;flex-shrink:0}
.sopdb-dept-icon img,.sopdb-cat-icon img,.sopdb-sub-icon img{width:100%;height:100%;object-fit:contain}
.sopdb-dept-link,.sopdb-cat-link,.sopdb-sub-link{font-size:10px;font-weight:800;color:var(--blue);white-space:nowrap}
.sopdb-dept-link:hover,.sopdb-cat-link:hover,.sopdb-sub-link:hover{text-decoration:underline}
.sopdb-cat-icon{width:30px;height:30px;border-radius:8px;background:#f3f7fd;font-size:16px}
.sopdb-subcategories{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.sopdb-subcategory{border:1px solid #e8edf4;background:#fff;border-radius:10px;overflow:hidden}
.sopdb-sub-head{display:flex;align-items:center;gap:9px;min-height:52px;padding:8px 10px}
.sopdb-sub-icon{width:30px;height:30px;border-radius:8px;background:#f4f7fb;font-size:15px}
.sopdb-sub-title{flex:1;min-width:0}.sopdb-sub-title strong{display:block;font-size:12px}.sopdb-sub-title small{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.sopdb-sub-count{font-size:9px;color:var(--muted);background:#f5f7fa;padding:5px 7px;border-radius:6px;white-space:nowrap}
.sopdb-sub-link{padding:5px 7px;border-radius:6px;background:#edf5ff;text-decoration:none}.sopdb-sub-link:hover{background:var(--blue);color:#fff;text-decoration:none}
.sopdb-sub-posts{padding:2px 13px 6px 49px;border-top:1px solid #edf0f4;background:#fbfcfe}
.sopdb-direct-heading{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#8492a5;margin:10px 0 3px}
@media(max-width:600px){.sopdb-cat-link,.sopdb-dept-link{display:none}.sopdb-sub-head{padding:7px 8px}.sopdb-sub-count{display:none}.sopdb-sub-posts{padding-left:35px}.sopdb-cat-icon{width:27px;height:27px;font-size:14px}.sopdb-sub-icon{width:27px;height:27px;font-size:13px}}

@media print{header,footer,.sop-sidebar,.sop-breadcrumb{display:none!important}.sop-wrap{max-width:none;padding:0}.sop-hero{padding:0}.sop-content-layout{display:block}.sop-post-content{font-size:12pt}}

/* v1.4.0: seeded SOP topics shown directly under each category */
.sopdb-seeded-topics{margin:0 0 10px;border-bottom:1px solid #edf0f4;padding-bottom:2px}
.sopdb-seeded-topic{padding-left:0}
.sopdb-topic-disabled{display:flex;align-items:center;gap:10px;min-height:39px;border-bottom:1px solid #eef1f5;color:#52657d;font-size:12px;cursor:default}
.sopdb-topic-disabled .sopdb-topic-arrow{opacity:.35}
.sopdb-topic-disabled:last-child{border-bottom:0}

/* v1.5.0: search scope dropdown */
.sopdb-search-select-wrap select option{background:#fff;color:#142b49}

/* ==========================================================
   v1.6.0 — Advanced Iam Pharmacist SOP Header & Footer
   ========================================================== */
body.sop-plugin-page{background:#f5f8fc}
body.sop-plugin-page > header:not(.sop-advanced-header),
body.sop-plugin-page > footer:not(.sop-advanced-footer),
body.sop-plugin-page #masthead,body.sop-plugin-page #colophon,
body.sop-plugin-page .site-header,body.sop-plugin-page .site-footer,
body.sop-plugin-page .main-header,body.sop-plugin-page .main-footer{display:none!important}
.sop-advanced-header{position:relative;z-index:1000;background:#fff;border-bottom:1px solid #e4ebf3;box-shadow:0 5px 24px rgba(20,43,73,.05)}
.sop-header-container{width:min(1220px,calc(100% - 34px));margin:auto;display:flex;align-items:center}
.sop-header-top{background:rgba(255,255,255,.98)}
.sop-header-top .sop-header-container{min-height:76px;gap:26px}
.sop-brand{display:flex;align-items:center;gap:11px;text-decoration:none!important;color:#102a46!important;min-width:260px}
.sop-brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#e8f3ff,#effcfb);border:1px solid #d8e7f5;color:#1769e0;font-size:23px;box-shadow:0 7px 18px rgba(23,105,224,.10)}
.sop-brand strong{display:block;font-size:18px;line-height:1.1;letter-spacing:-.3px}
.sop-brand small{display:block;margin-top:4px;color:#8090a3;font-size:10px;font-weight:600;letter-spacing:.02em}
.sop-header-nav{display:flex;align-items:center;gap:4px;flex:1}
.sop-header-nav a{position:relative;padding:10px 12px;border-radius:9px;color:#52657d!important;font-size:12px;font-weight:800;text-decoration:none!important;transition:.2s}
.sop-header-nav a:hover{background:#eef5ff;color:#1769e0!important}
.sop-header-nav a.active{color:#1769e0!important;background:#edf5ff}
.sop-header-nav a.active:after{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:2px;border-radius:3px;background:#1769e0}
.sop-header-cta{display:inline-flex;align-items:center;gap:9px;padding:11px 15px;border-radius:10px;background:#1769e0;color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:900;box-shadow:0 8px 18px rgba(23,105,224,.18);white-space:nowrap}
.sop-header-cta:hover{background:#0d4fa8;color:#fff!important;transform:translateY(-1px)}
.sop-header-cta span{font-size:15px;line-height:1}
.sop-header-subbar{background:linear-gradient(90deg,#0d4fa8,#1769e0 55%,#0d9488);color:#fff}
.sop-header-subbar .sop-header-container{min-height:34px;justify-content:space-between}
.sop-header-kicker{font-size:9px;font-weight:900;letter-spacing:.12em;display:flex;align-items:center;gap:8px}
.sop-header-kicker .pulse{width:6px;height:6px;background:#fff;border-radius:50%;box-shadow:0 0 0 4px rgba(255,255,255,.16)}
.sop-header-tools{display:flex;gap:18px;font-size:9px;font-weight:700;opacity:.9}
.sop-header-tools span{position:relative}.sop-header-tools span+span:before{content:"•";position:absolute;left:-11px;opacity:.55}

.sop-advanced-footer{margin-top:70px;color:#d9e6f5;background:#102a46}
.sop-footer-main{padding:50px 0 42px;background:radial-gradient(circle at 85% 10%,rgba(13,148,136,.16),transparent 30%),linear-gradient(135deg,#102a46,#0d3558)}
.sop-footer-container{width:min(1220px,calc(100% - 34px));margin:auto;display:grid;grid-template-columns:1.7fr .85fr .95fr 1.2fr;gap:42px}
.sop-footer-brand{max-width:390px}.sop-footer-logo{display:inline-flex;align-items:center;gap:9px;color:#fff!important;text-decoration:none!important;font-size:19px;font-weight:900}.sop-footer-logo span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.1);font-size:18px}.sop-footer-brand p{margin:15px 0 18px;color:#aebfd1;font-size:12px;line-height:1.75}
.sop-footer-badges{display:flex;gap:7px}.sop-footer-badges span{padding:5px 8px;border:1px solid rgba(255,255,255,.13);border-radius:6px;background:rgba(255,255,255,.05);font-size:9px;font-weight:900;color:#cbd9e8}
.sop-footer-col h3{margin:0 0 14px;color:#fff;font-size:12px;letter-spacing:.04em}.sop-footer-col a{display:block;margin:9px 0;color:#aebfd1!important;text-decoration:none!important;font-size:11px}.sop-footer-col a:hover{color:#fff!important}.sop-footer-col p{margin:0;color:#aebfd1;font-size:11px;line-height:1.7}
.sop-footer-highlight{padding:18px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.045)}
.sop-footer-highlight h3{margin-top:0}.sop-footer-button{display:inline-block!important;margin-top:15px!important;padding:9px 11px;border-radius:8px;background:#1769e0;color:#fff!important;font-weight:900;font-size:10px!important}.sop-footer-button:hover{background:#0d9488;color:#fff!important}
.sop-footer-bottom{border-top:1px solid rgba(255,255,255,.09);background:#0b2239}.sop-footer-bottom .sop-footer-container{min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:#8298ae;font-size:9px}
@media(max-width:900px){.sop-header-nav{display:none}.sop-header-top .sop-header-container{justify-content:space-between}.sop-footer-container{grid-template-columns:1fr 1fr;gap:30px}}
@media(max-width:600px){.sop-header-container,.sop-footer-container{width:calc(100% - 22px)}.sop-brand{min-width:0}.sop-brand small{display:none}.sop-brand strong{font-size:16px}.sop-header-cta{padding:9px 11px}.sop-header-subbar .sop-header-container{min-height:30px}.sop-header-tools{display:none}.sop-footer-container{grid-template-columns:1fr}.sop-footer-bottom .sop-footer-container{display:block;padding:12px 0}.sop-footer-bottom span{display:block;margin:4px 0}.sop-advanced-footer{margin-top:45px}}
