/* IWWB Study Library 0.2 - same wide editorial presentation as current Studies page */
body.iwwb-library-wide-page .main-area.wrap { width:min(1660px,calc(100% - 44px)); max-width:none; }
body.iwwb-library-wide-page .main-area .layout { display:block; }
body.iwwb-library-wide-page .main-area .layout > :first-child { width:100%;min-width:0;max-width:none; }
body.iwwb-library-wide-page .main-area .layout > aside,
body.iwwb-library-wide-page .main-area .layout > .sidebar { display:none; }
body.iwwb-library-wide-page .main-area article.entry { max-width:none;width:100%; }
body.iwwb-library-wide-page .main-area .entry-content { max-width:none;width:100%; }
.iwwb-library-intro { margin:2rem 0 1.5rem; }
.iwwb-library-intro h2 { font-family:Georgia,serif;font-size:clamp(1.6rem,2.6vw,2.3rem);line-height:1.2;margin:0 0 .55rem; }
.iwwb-library-intro p { color:#58707c;font:400 15px/1.6 system-ui,-apple-system,Segoe UI,sans-serif;margin:0; }
.iwwb-library-catalog { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2vw,26px);margin:0 0 3rem;align-items:start;font-family:system-ui,-apple-system,Segoe UI,sans-serif; }
.iwwb-library-panel { background:#fff;border:1px solid #dfe6e7;border-radius:12px;padding:clamp(17px,1.5vw,24px);min-width:0;box-shadow:0 6px 24px rgba(20,54,70,.045); }
.iwwb-library-panel-head { display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.7rem;margin:0 0 1rem; }
.iwwb-library-panel-head h2 { font:700 clamp(1.3rem,2vw,1.75rem)/1.2 Georgia,serif;margin:0; }
.iwwb-library-panel-head span { color:#647b87;font-size:.8rem; }
.iwwb-library-search { display:block;box-sizing:border-box;width:100%;max-width:none!important;border:1px solid #cdd8db;border-radius:8px;padding:.75rem .85rem;margin:0 0 1.5rem;font:400 14px/1.4 system-ui,-apple-system,Segoe UI,sans-serif; }
.iwwb-library-letter-group { margin:0 0 .9rem; }
.iwwb-library-letter { background:#edf5f6;border-bottom:1px solid #dce9ec;border-radius:4px;color:#27738b;font:bold 17px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;padding:.27rem .65rem;margin:0 0 .18rem; }
.iwwb-library-item { padding:.36rem .5rem;border-bottom:1px solid #eef1f2;font:400 14px/1.55 system-ui,-apple-system,Segoe UI,sans-serif;overflow-wrap:anywhere; }
.iwwb-library-item a { color:#116482;text-decoration:underline;text-underline-offset:2px; }
.iwwb-library-item a:hover { color:#073b52; }
.iwwb-library-empty { color:#687d86;font-style:italic; }
.iwwb-library-series { max-width:960px;margin:1.5rem auto; }
.iwwb-library-series h2 { font-family:Georgia,serif; }
.iwwb-library-count { color:#637681;font-size:.9rem; }
.iwwb-library-posts {display:block!important;columns:1!important;}
.iwwb-library-posts>div { padding:.45rem 0;border-bottom:1px solid #edf0f1;line-height:1.5; }
@media (max-width:760px) { .iwwb-library-catalog {grid-template-columns:1fr;} body.iwwb-library-wide-page .main-area.wrap {width:calc(100% - 24px);} }

/* v0.3: original long-form study directories beneath the database-driven index */
.iwwb-library-original-intro {margin:0 0 2rem;}
.iwwb-library-original-intro p[style*="text-align: center"] {text-align:center;}
.iwwb-library-legacy-sections {margin-top:2.5rem; font:400 15px/1.65 system-ui,-apple-system,Segoe UI,sans-serif; overflow-wrap:anywhere;}
.iwwb-library-legacy-sections h4 {font:700 clamp(1.15rem,2vw,1.55rem)/1.35 Georgia,serif;margin:2rem 0 1rem;}
.iwwb-library-legacy-sections h5 {font-size:1rem;line-height:1.55;}
.iwwb-library-legacy-sections hr {border:0;border-top:1px solid #dfe6e7;margin:2.5rem 0;}
.iwwb-library-legacy-sections p {margin:.35rem 0;}
.iwwb-library-legacy-sections a {color:#116482;text-decoration:underline;text-underline-offset:2px;}
.iwwb-library-legacy-sections a:hover {color:#073b52;}
.iwwb-library-legacy-sections [id] {scroll-margin-top:110px;}
.iwwb-library-legacy-sections .iwwb-library-series {max-width:none;}
