/* Library presentation only. Search and download handlers remain unchanged. */
/* rc12: decorative metadata icons; visible and accessible labels stay intact. */
#cpds-document-search .cpds-meta__item{min-width:0;max-width:100%}
#cpds-document-search .cpds-meta__item:first-child dd::before,
#cpds-document-search .cpds-meta__item:nth-child(2) dt::before,
#cpds-document-search .cpds-meta__item:last-child dd::before{content:"";display:inline-block;width:14px;height:14px;margin-right:5px;vertical-align:-2px;background-position:center;background-repeat:no-repeat;background-size:14px 14px}
#cpds-document-search .cpds-meta__item:first-child dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232874c6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E")}
#cpds-document-search .cpds-meta__item:nth-child(2) dt::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c28013' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18M8 15h2M14 15h2'/%3E%3C/svg%3E")}
#cpds-document-search .cpds-meta__item:last-child dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315975a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 17v4h16v-4'/%3E%3C/svg%3E")}
/* rc16: PDF and PowerPoint labels and decorative icons use their format colors. */
#cpds-document-search .cpds-file--pdf ~ .cpds-meta .cpds-meta__item:first-child dd{color:#c93432}
#cpds-document-search .cpds-file--powerpoint ~ .cpds-meta .cpds-meta__item:first-child dd{color:#c14f16}
#cpds-document-search .cpds-file--pdf ~ .cpds-meta .cpds-meta__item:first-child dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c93432' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E")}
#cpds-document-search .cpds-file--powerpoint ~ .cpds-meta .cpds-meta__item:first-child dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c14f16' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E")}
/* rc15: format labels match their icons; other metadata keeps its original color. */
#cpds-document-search .cpds-file--excel ~ .cpds-meta .cpds-meta__item:first-child dd{color:#128545}
#cpds-document-search .cpds-file--word ~ .cpds-meta .cpds-meta__item:first-child dd{color:#2874c6}
/* rc14: Excel's metadata icon is green; Word keeps the blue document icon. */
#cpds-document-search .cpds-file--excel ~ .cpds-meta .cpds-meta__item:first-child dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128545' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E")}
/* rc11: reviewed local SVGs, without the old colored letter tile. */
#cpds-document-search .cpds-file.cpds-file--asset{background:transparent;border:0;border-radius:0;box-shadow:none}
#cpds-document-search .cpds-file--asset img{display:block;width:100%!important;height:100%!important;max-width:100%;margin:0!important;padding:0;border:0;border-radius:0;object-fit:contain}
@media(max-width:840px){section#cpds-document-search .cpds-grid{grid-template-columns:minmax(0,1fr)!important;column-gap:0}}
#cpds-document-search{--cpds-green:#087b47;--cpds-ink:#293c31;--cpds-muted:#6b796f;background:#fff}
#cpds-document-search .cpds-hero{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;padding:20px 28px 16px!important;background:#fff;border-radius:0;box-shadow:none;color:var(--cpds-ink)!important;overflow:visible}
#cpds-document-search .cpds-hero h1{margin:0!important;color:var(--cpds-ink)!important;font-size:29px!important;font-weight:600;line-height:1.25;letter-spacing:-.5px}
#cpds-document-search .cpds-hero .cpds-hero-description{margin:8px 0 0!important;max-width:none;color:var(--cpds-muted)!important;font-size:14px!important}
#cpds-document-search .cpds-search-form{grid-template-columns:22px minmax(0,1fr) auto!important;padding:5px;border:1px solid #b9c9bf;border-radius:6px;box-shadow:none;gap:10px}
#cpds-document-search .cpds-search-form input{border:0!important;box-shadow:none!important;min-height:42px;font-size:16px!important}
#cpds-document-search .cpds-search-form button{grid-column:auto!important;width:auto!important;min-height:44px;border-radius:5px;font-size:14px;font-weight:500}
#cpds-document-search .cpds-search-arrow{display:none}
#cpds-document-search .cpds-search-form:focus-within{box-shadow:0 0 0 2px #087b4730!important}
#cpds-document-search .cpds-search-form button:focus-visible,#cpds-document-search .cpds-popular a:focus-visible{outline:2px solid #2589c7!important}
#cpds-document-search .cpds-popular{gap:6px 16px;margin-top:9px;font-size:12px}
#cpds-document-search .cpds-popular span{color:var(--cpds-muted)!important}
#cpds-document-search .cpds-popular a{padding:4px 0;background:none;border:0;border-radius:0;color:#426452!important;text-decoration:underline;text-underline-offset:3px}
#cpds-document-search .cpds-layout{grid-template-columns:minmax(0,1fr)!important;width:100%;gap:24px;padding:0 28px 30px}
#cpds-document-search .cpds-filters{position:relative;padding:14px 18px 18px;border:1px solid #e0e8e2;border-radius:6px;background:#f2f6f3}
#cpds-document-search .cpds-filter-heading{justify-content:flex-end;font-size:12px;margin:0 0 8px}
#cpds-document-search .cpds-filter-heading a{color:#647269;text-decoration:underline}
#cpds-document-search .cpds-filters form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:7px 16px;margin:0;align-items:end}
#cpds-document-search .cpds-filters form>input[type=hidden]{display:none!important}
#cpds-document-search .cpds-filters label{grid-row:1;margin:0;font-size:12px;font-weight:400;color:#647269}
#cpds-document-search label[for=cpds-format],#cpds-document-search #cpds-format{grid-column:1}
#cpds-document-search label[for=cpds-category],#cpds-document-search #cpds-category{grid-column:2}
#cpds-document-search label[for=cpds-year],#cpds-document-search #cpds-year{grid-column:3}
#cpds-document-search .cpds-filters select{grid-row:2;min-width:0;height:40px;border-radius:5px;font-size:13px}
#cpds-document-search .cpds-filters form>button{grid-row:2;grid-column:4;margin:0;min-height:40px;padding:10px 14px;border-radius:5px;font-size:12px;font-weight:500;background:#eef5f0!important;color:#266443!important}
#cpds-document-search .cpds-results-summary h2{font-size:17px!important;font-weight:500}
#cpds-document-search .cpds-results-summary h2 strong{font-size:1em;font-weight:600}
#cpds-document-search .cpds-results-heading{border-bottom:0}
#cpds-document-search .cpds-results-query{font-size:12px}
#cpds-document-search .cpds-sort-form select{border:0;border-radius:5px;font-size:13px}
#cpds-document-search .cpds-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:18px;row-gap:16px;margin-top:6px!important}
#cpds-document-search .cpds-card{grid-template-columns:32px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:14px 12px;padding:20px;min-height:0;border:1px solid #d8e3db;border-radius:7px;box-shadow:none;background:#fff;align-content:start}
#cpds-document-search .cpds-card h3{grid-column:2 / -1;grid-row:1}
#cpds-document-search .cpds-card:hover,#cpds-document-search .cpds-card:focus-within{background:#f2f7f3}
#cpds-document-search .cpds-card h3,#cpds-document-search .cpds-card h3 a{font-size:15px!important;font-weight:500!important;line-height:1.5!important;text-transform:none!important}
#cpds-document-search .cpds-card h3 a:hover{text-decoration:underline}
#cpds-document-search .cpds-file{grid-row:1;width:32px;height:39px;border-radius:4px}
#cpds-document-search .cpds-meta{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;border:0}
#cpds-document-search .cpds-meta__item{display:flex;flex-wrap:wrap;gap:4px;align-items:baseline}
#cpds-document-search .cpds-meta dt,#cpds-document-search .cpds-meta dd{margin:0;font-size:12px;font-weight:400;color:#53665a;line-height:1.55}
#cpds-document-search .cpds-meta dt:after{content:':' }
#cpds-document-search .cpds-meta__item:first-child dt{display:none}
#cpds-document-search .cpds-meta__item:last-child dt{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#cpds-document-search .cpds-card footer{grid-column:3;grid-row:2;margin:0;padding:0;border:0;align-self:center;justify-content:flex-end;white-space:normal;min-width:0}
#cpds-document-search .cpds-meta{align-self:center;gap:4px 12px}
#cpds-document-search .cpds-download{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 13px!important;border:1px solid #087b47!important;border-radius:9px!important;background:#087b47!important;color:#fff!important;font-size:13px!important;font-weight:600!important;line-height:1.3;text-decoration:none!important;box-shadow:0 3px 8px #087b471a;white-space:nowrap;transition:background-color .15s ease,box-shadow .15s ease}
#cpds-document-search .cpds-download::before{content:"";display:inline-block;flex:0 0 16px;width:16px;height:16px;background:center/16px 16px no-repeat;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 17v4h16v-4'/%3E%3C/svg%3E")}
#cpds-document-search .cpds-download:hover{background:#056039!important;border-color:#056039!important;box-shadow:0 4px 10px #087b4729}
#cpds-document-search .cpds-download:focus-visible{outline:3px solid #2589c7;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#cpds-document-search .cpds-download{transition:none}}
@media(max-width:840px){#cpds-document-search.cpds--enhanced>.cpds-filter-toggle{margin:0 18px 14px!important;border-radius:5px}#cpds-document-search .cpds-filters form{grid-template-columns:minmax(0,1fr)}#cpds-document-search .cpds-filters form>label,#cpds-document-search .cpds-filters form>select,#cpds-document-search .cpds-filters form>button{grid-column:auto;grid-row:auto}#cpds-document-search .cpds-filters select{font-size:16px}#cpds-document-search .cpds-layout{gap:18px}}
@media(max-width:600px){#cpds-document-search .cpds-hero{padding:20px 18px 18px!important}#cpds-document-search .cpds-hero h1{font-size:25px!important}#cpds-document-search .cpds-layout{padding:0 18px 24px}#cpds-document-search .cpds-card{grid-template-columns:28px minmax(0,1fr) auto;gap:12px 10px;padding:16px}#cpds-document-search .cpds-file{width:28px;height:35px}#cpds-document-search .cpds-card footer{grid-column:3;grid-row:2;justify-content:flex-end}#cpds-document-search .cpds-meta{grid-column:1 / 3;grid-row:2}#cpds-document-search .cpds-search-form button{padding:10px 12px}}
/* rc13: metadata has its own row; the mobile action spans the card below it. */
@media(max-width:600px){#cpds-document-search .cpds-card{grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto auto}#cpds-document-search .cpds-meta{grid-column:1 / -1;grid-row:2;gap:6px 14px}#cpds-document-search .cpds-card footer{grid-column:1 / -1;grid-row:3;justify-self:stretch;width:100%}#cpds-document-search .cpds-card .cpds-download{width:100%;box-sizing:border-box;min-height:46px;font-size:14px!important}}
/* rc18: larger main icons, with a tighter column gap and unchanged card padding. */
#cpds-document-search .cpds-card{grid-template-columns:40px minmax(0,1fr) auto;column-gap:10px}
#cpds-document-search .cpds-file{width:40px;height:40px}
@media(max-width:600px){#cpds-document-search .cpds-card{grid-template-columns:36px minmax(0,1fr);column-gap:8px}#cpds-document-search .cpds-file{width:36px;height:36px}}
/* rc19: keep the theme's mobile back-to-top control inside the empty right gutter. */
@media(max-width:600px){body.page-id-58302 .penci-go-to-top-floating{right:2px!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;width:32px!important;min-width:0!important;height:44px!important;line-height:44px!important;border-radius:8px!important;box-shadow:0 2px 7px #163d2426}body.page-id-58302 .penci-go-to-top-floating i{font-size:16px!important;line-height:44px!important}}
