/* Scoped server-rendered directory; the interactive Library UI is unchanged. */
#published-reference-directory{background:#F2F8FF!important;color:#0B2D6B!important;scroll-margin-top:110px}
#published-reference-directory :is(h2,p,summary,a,span){color:#0B2D6B!important;-webkit-text-fill-color:currentColor!important}
#published-reference-directory h2{font-size:clamp(1.55rem,2.4vw,2.15rem)!important;line-height:1.25!important;max-width:38ch}
#published-reference-directory .library-reference-intro{max-width:85ch;line-height:1.75}
#published-reference-directory .library-reference-count{font-size:.9rem;font-weight:600;margin:1rem 0}
#published-reference-directory .library-reference-group{border:1px solid #A7D3FF;border-radius:12px;margin:.75rem 0;background:#fff!important;overflow:hidden}
#published-reference-directory summary{cursor:pointer;padding:1rem 1.2rem;min-height:48px;box-sizing:border-box;font-weight:650;line-height:1.5}
#published-reference-directory summary span{float:right;font-size:.82rem;font-weight:400;margin-left:1rem}
#published-reference-directory .library-reference-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;padding:.2rem 1rem 1rem}
#published-reference-directory .library-reference-link{display:block;background:#F2F8FF!important;border:1px solid #A7D3FF;border-radius:8px;padding:.85rem 1rem;min-height:44px;font-size:.92rem;line-height:1.6;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
#published-reference-directory a:hover{background:#F2F8FF!important}
#published-reference-directory :is(a,summary):focus-visible{outline:3px solid #0B2D6B;outline-offset:2px}
@media(max-width:950px){#published-reference-directory .library-reference-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#published-reference-directory .library-reference-links{grid-template-columns:minmax(0,1fr);padding:.2rem .7rem .8rem}#published-reference-directory summary{padding:.9rem .8rem}#published-reference-directory summary span{float:none;display:block;margin-left:0;margin-top:.1rem}}
