.medication-library{--ml-ink:#153548;--ml-border:#cdd9dd;color:var(--ml-ink);max-width:100%;min-width:0;padding-bottom:1rem}
.medication-library a{color:#1e5d7e;text-underline-offset:3px}
.medication-library h1{font-size:clamp(1.65rem,3vw,2.3rem);line-height:1.2;overflow-wrap:anywhere;margin:.4rem 0 1.2rem}
.medication-library h2{font-size:1.12rem;line-height:1.35;margin:0 0 .6rem}
.medication-library h3{font-size:1rem;line-height:1.4;margin:.65rem 0 .35rem}
.medication-library p{margin:0 0 .7rem;line-height:1.65}
.medication-library p:last-child{margin-bottom:0}
.medication-library ul{padding-left:1.25rem;margin:.4rem 0 0}
.medication-library li{line-height:1.65;margin:.35rem 0}
.medication-library .reference-crumb{flex-wrap:wrap;gap:.4rem .6rem;margin:1rem 0 1.5rem;font-size:.88rem}
.ml-card{background:rgba(255,255,255,.8);border:1px solid var(--ml-border);border-radius:12px;padding:1rem;box-shadow:0 4px 18px #17374708}
.medication-library .ml-card h1{font-size:1.75rem}
.ml-card-heading{border-bottom:1px solid var(--ml-border);padding-bottom:.4rem;margin-bottom:1.3rem}
.ml-memory{background:#edf5f3;border-left:4px solid #237a71;padding:.85rem 1rem;border-radius:0 6px 6px 0}
.ml-fields{display:grid;gap:1.15rem}
.ml-field{min-width:0;padding-bottom:1.1rem;border-bottom:1px solid #e0e7e9}
.ml-field:last-child{border-bottom:0;padding-bottom:0}
.ml-field h2{color:#214d64}
.ml-dont-miss{background:#fff6dc;border:1px solid #e4cb80;border-left:4px solid #b27e10;border-radius:0 8px 8px 0;padding:1rem 1.1rem}
.ml-dont-miss h2{color:#62470a}
.ml-subfield+.ml-subfield{margin-top:.9rem}
.ml-sources{border-top:1px solid var(--ml-border);margin-top:1.5rem;padding-top:1rem;font-size:.88rem;overflow-wrap:anywhere}
.ml-sources summary{cursor:pointer;font-weight:700;padding:.3rem 0}
.ml-sources ul{margin-top:.65rem}
.ml-page-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:.5rem;font-size:.83rem}
.ml-page-tools button{padding:.55rem .7rem;background:#fff;border:1px solid #bbced6;border-radius:6px;color:#214d64;cursor:pointer;min-height:44px}
.medication-library .ml-page-tools .reading-toggle{position:static;margin:0;width:auto;min-width:0}
.ml-page-tools [role=status]{grid-column:1/-1;font-size:.8rem}
.ml-library-heading{margin-bottom:1rem}
.ml-library-heading h1{margin-bottom:.7rem}
.ml-library-nav{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin:0 0 1.5rem;border-bottom:1px solid var(--ml-border);padding-bottom:1rem}
.ml-library-nav>a{border:1px solid #bbced6;border-radius:6px;padding:.55rem .7rem;text-decoration:none;font-weight:700;min-height:44px;display:inline-flex;align-items:center;background:#fff}
.ml-library-nav>a[aria-current]{background:#183e50;color:#fff;border-color:#183e50}
.ml-library-nav label{font-size:.83rem}
.ml-library-nav select{min-width:0;max-width:100%;flex:1 1 200px;background:#fff;border:1px solid #bbced6;border-radius:6px;padding:.65rem;font:inherit;color:inherit;min-height:44px}
.ml-category-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-bottom:2rem}
.ml-category-directory button{border:1px solid var(--ml-border);border-radius:7px;text-align:left;padding:.85rem;background:#f6fafb;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:.35rem}
.ml-category-directory span{font-size:.8rem;color:#516c7a}
.ml-category{margin:0 0 1.75rem}
.ml-category>h2{font-size:1.25rem;margin:0 0 .9rem}
.ml-card-list{display:grid;gap:.65rem}
.ml-index-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .8rem;border:1px solid var(--ml-border);border-radius:8px;padding:1rem;text-align:left;background:#fff;color:inherit;cursor:pointer;min-width:0;width:100%}
.ml-index-card strong{font-size:1.04rem;line-height:1.4}
.ml-index-card span{grid-column:1;line-height:1.55;color:#526b7a;font-size:.93rem}
.ml-index-card b{grid-column:2;grid-row:1/3;align-self:center;font-size:1.2rem;color:#38728a}
.ml-index-card:hover,.ml-category-directory button:hover{border-color:#477f94;background:#f4fafb}
.ml-category-box{background:#eef6f5;border:1px solid #b9d2cf;border-left:4px solid #277b73;border-radius:0 8px 8px 0;padding:1rem;margin:0 0 1rem}
.ml-category-box h2{color:#165a54}
.ml-table-scroll{max-width:100%;overflow:auto;margin:.65rem 0;overscroll-behavior:contain}
.ml-table-scroll table{border-collapse:collapse;width:100%;font-size:.9rem;min-width:380px}
.ml-table-scroll th,.ml-table-scroll td{border:1px solid #b9cfce;vertical-align:top;padding:.65rem;line-height:1.5;text-align:left}
.ml-table-scroll thead th{background:#daeae7}
.ml-table-scroll tbody th{font-weight:600}
.ml-rare-jumps{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 1.5rem}
.ml-rare-jumps a{font-size:.85rem;border:1px solid var(--ml-border);padding:.55rem .65rem;border-radius:6px;line-height:1.4}
.ml-rare-entry{border-top:1px solid var(--ml-border);padding:1.4rem 0;scroll-margin-top:1rem}
.ml-rare-entry>h2{font-size:1.2rem;color:#165a54;margin-bottom:.9rem}
.ml-rare-field{margin:.9rem 0}
.ml-rare-field h3{color:#426276}
.ml-rare-related{border-top:1px solid var(--ml-border);padding-top:1rem}
.ml-back{display:block;margin:1rem 0}
.ml-footer{border-top:1px solid var(--ml-border);padding-top:1rem;margin-top:1.6rem;font-size:.86rem}
.ml-footer>a{display:block;font-weight:700;margin-bottom:.8rem}
.ml-footer nav{display:flex;flex-wrap:wrap;gap:.7rem;margin-bottom:.8rem}
.ml-footer p{color:#5c6b73;font-style:italic}
@media(max-width:600px){.ml-category-directory{grid-template-columns:1fr}.ml-library-nav label{width:100%}.ml-library-nav select{flex-basis:100%}.ml-card{padding:1rem}.ml-dont-miss{padding:.9rem}.ml-table-scroll table{font-size:.85rem}.ml-card-heading h1{font-size:1.7rem}.ml-index-card{padding:.9rem}}
@media print{.medication-library .ml-card{border:0;box-shadow:none;padding:0}.medication-library .ml-fields{gap:.6rem}.medication-library .ml-field{break-inside:avoid;padding-bottom:.6rem}.medication-library h1{font-size:20pt}.medication-library h2{font-size:12pt}.medication-library p,.medication-library li{line-height:1.4}.ml-sources{font-size:9pt}.ml-table-scroll{overflow:visible}.ml-rare-entry{break-inside:avoid}}
