/* Chilly PDF Library — scoped to /documents/; no theme files modified. */
.chillylib-section{padding:54px 0 100px;background:#f3f8fb;color:#21394b}
.chillylib-section .chillylib-grid{margin-top:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.chillylib-section .chillylib-card{display:flex;flex-direction:column;gap:0;padding:0;min-height:0;overflow:hidden;border:1px solid #d3e4ec;border-radius:17px;background:#fff;box-shadow:0 14px 28px rgba(5,40,64,.05)}
.chillylib-section .chillylib-card:hover{box-shadow:0 20px 38px rgba(5,40,64,.12);transform:translateY(-2px);transition:box-shadow .2s,transform .2s}
.chillylib-section .chillylib-cover{display:flex;align-items:center;justify-content:center;background:#e8f2f7;padding:21px;min-height:286px;border-bottom:1px solid #d3e4ec}
.chillylib-section .chillylib-cover img{width:auto!important;height:auto!important;max-width:100%;max-height:265px;object-fit:contain!important;object-position:center!important;box-shadow:0 6px 20px rgba(0,25,40,.13);background:#fff}
.chillylib-section .chillylib-info{padding:24px 27px 28px;display:flex;flex-direction:column;flex:1;align-items:flex-start;min-width:0}
.chillylib-section .chillylib-number{font-size:11px;letter-spacing:.12em;font-weight:800;color:#007fae}
.chillylib-section h2.chillylib-title{font-size:clamp(20px,2vw,25px);line-height:1.25;margin:9px 0 13px;color:#123d56;overflow-wrap:anywhere}
.chillylib-section p.chillylib-description{font-size:14px;line-height:1.65;color:#587487;margin:0 0 24px;max-width:68ch}
.chillylib-section .chillylib-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;align-items:center}
.chillylib-section a.chillylib-action,.chillylib-section a.chillylib-download{display:inline-block;font-size:12px;font-weight:800;line-height:1.35;padding:11px 15px;border-radius:8px;text-decoration:none;white-space:nowrap}
.chillylib-section a.chillylib-action{background:#007fae;color:white}
.chillylib-section a.chillylib-download{color:#007fae;border:1px solid #95ccde;background:white}
.chillylib-section a.chillylib-action:hover{background:#006c96}
.chillylib-section a.chillylib-download:hover{background:#e2f3fa}
.chillylib-section .chillylib-featured{grid-column:span 2;display:grid;grid-template-columns:minmax(160px,39%) minmax(0,1fr);background:#e0edf3}
.chillylib-section .chillylib-featured .chillylib-cover{border-bottom:0;border-right:1px solid #d3e4ec;min-height:350px;background:#d8e9f2}
.chillylib-section .chillylib-featured .chillylib-cover img{max-height:318px}
.chillylib-section .chillylib-featured .chillylib-info{padding:34px 28px}
.chillylib-pdf-icon{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;width:156px;height:215px;background:#fff;border:1px solid #d4e3ea;box-shadow:0 6px 16px #00243821;color:#007fae}
.chillylib-pdf-icon span{font-size:42px;font-weight:900;letter-spacing:.02em}.chillylib-pdf-icon small{font-size:10px;letter-spacing:.14em}
@media(max-width:940px){.chillylib-section .chillylib-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chillylib-section .chillylib-featured{grid-column:span 2}}
@media(max-width:620px){.chillylib-section{padding:28px 0 70px}.chillylib-section .chillylib-grid{grid-template-columns:1fr;gap:18px}.chillylib-section .chillylib-featured{grid-column:span 1;display:flex;flex-direction:column}.chillylib-section .chillylib-featured .chillylib-cover{min-height:286px;border-right:0;border-bottom:1px solid #d3e4ec}.chillylib-section .chillylib-info,.chillylib-section .chillylib-featured .chillylib-info{padding:22px}}

.chillylib-section .chillylib-only{grid-column:1/-1}

/* v1.0.1: PDF preview overlay; leaves the native Download link untouched. */
.chillylib-modal[hidden]{display:none!important}
.chillylib-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(4,19,31,.90);padding:clamp(8px,1.8vw,24px);box-sizing:border-box}
.chillylib-modal *{box-sizing:border-box}
.chillylib-modal-panel{position:relative;display:flex;flex-direction:column;width:min(1100px,100%);height:100%;max-height:980px;background:#f2f5f7;border-radius:12px;box-shadow:0 26px 90px rgba(0,0,0,.5);overflow:hidden}
.chillylib-modal-frame{display:block;flex:1;min-width:0;min-height:0;width:100%;height:100%;border:0;background:#fff}
.chillylib-modal-close{position:absolute;z-index:2;top:12px;right:12px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:27px;line-height:1;font-family:Arial,sans-serif;font-weight:400;color:#fff;background:#113c57;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 12px rgba(0,0,0,.3)}
.chillylib-modal-close:hover,.chillylib-modal-close:focus-visible{background:#007fae;color:#fff}
.chillylib-modal-close:focus-visible{outline:3px solid #49c8f4;outline-offset:3px}
body.chillylib-modal-open{overflow:hidden!important}
@media(max-width:620px){.chillylib-modal{padding:0}.chillylib-modal-panel{height:100%;max-height:none;border-radius:0}.chillylib-modal-close{top:10px;right:10px}}

/* v1.0.2: one page per viewport; controls do not sit inside the PDF content. */
.chillylib-modal{background:rgba(3,18,31,.94)}
.chillylib-modal-panel{width:min(1120px,100%);height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:1000px;background:#222b32;border-radius:12px}
.chillylib-modal-stage{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;grid-template-rows:minmax(0,1fr);align-items:stretch;flex:1;min-height:0;overflow:hidden}
.chillylib-modal-page{display:flex;height:100%;align-items:center;justify-content:center;min-height:0;min-width:0;overflow:hidden;padding:8px 0;position:relative}
.chillylib-modal-image{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;box-shadow:0 2px 16px rgba(0,0,0,.28);background:#fff}
.chillylib-modal-image[hidden]{display:none!important}
.chillylib-modal-status{max-width:45ch;text-align:center;line-height:1.5;color:#f5faff;font-size:14px;padding:12px}
.chillylib-modal-status[hidden]{display:none!important}
.chillylib-modal-arrow{border:0;background:transparent;color:white;font-size:50px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:.94;padding:0 4px;transition:background .15s;line-height:1}
.chillylib-modal-arrow:hover:not(:disabled),.chillylib-modal-arrow:focus-visible{background:rgba(0,139,191,.28);color:white}
.chillylib-modal-arrow:disabled{opacity:.2;cursor:default}
.chillylib-modal-footer{display:flex;align-items:center;justify-content:center;gap:22px;min-height:40px;padding:8px 62px;color:#f2fbff;background:#102b3e;font-size:13px;font-weight:700}
.chillylib-modal-counter{font-variant-numeric:tabular-nums;letter-spacing:.03em}
.chillylib-modal-direct{color:#8ce2ff;text-decoration:underline}
.chillylib-modal-direct[hidden]{display:none!important}
.chillylib-modal-close{top:10px;right:10px;width:40px;height:40px}
@media(max-width:620px){.chillylib-modal-panel{height:100vh;height:100dvh;border-radius:0}.chillylib-modal-stage{grid-template-columns:38px minmax(0,1fr) 38px}.chillylib-modal-arrow{font-size:40px}.chillylib-modal-page{padding:4px 0}.chillylib-modal-footer{padding:8px 46px}.chillylib-modal-close{top:8px;right:8px;width:36px;height:36px}}
