/* Extend the existing Library layout for the Philanthropy content. */
.philanthropy-page .purpose-note{max-width:850px;margin:-8px 0 28px;padding:0 0 20px;border-bottom:1px solid var(--border-med);font-size:15px;color:#555e4e}
.philanthropy-page .purpose-note summary{width:fit-content;cursor:pointer;font-weight:700;color:var(--brand-primary);padding:8px 0;min-height:44px}
.philanthropy-page .purpose-note p{margin:12px 0 0;line-height:1.7}
.philanthropy-page .library-hero{background-position:center 55%}
.philanthropy-page .library-resource-grid .resource-card:has(.resource-format){min-height:236px}
.philanthropy-page .library-resource-grid .resource-description{line-height:1.6}
.philanthropy-page .library-pete button,.philanthropy-page .share-button,.philanthropy-page .dialog-close{min-height:44px;min-width:44px}
@media(max-width:680px){.philanthropy-page .purpose-note{font-size:14px;margin-bottom:24px}.philanthropy-page .library-searchbar input{font-size:16px}.philanthropy-page .library-resource-grid .resource-card{min-height:225px}.philanthropy-page .library-intro-mark{display:none}}

/* Ken-approved Philanthropy tile design, November 5, 2026. */
/* Rich feature tiles: Forest, Deep ocean, Mulberry, Fired clay. */
.philanthropy-tiles-page .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.philanthropy-tiles-page .collection-card{min-height:0;padding:15px 14px;border-radius:11px;color:#fff}
.philanthropy-tiles-page .collection-card:nth-child(1){background:#315c3b;border-color:#315c3b}
.philanthropy-tiles-page .collection-card:nth-child(2){background:#24556c;border-color:#24556c}
.philanthropy-tiles-page .collection-card:nth-child(3){background:#743953;border-color:#743953}
.philanthropy-tiles-page .collection-card:nth-child(4){background:#944831;border-color:#944831}
.philanthropy-tiles-page .collection-card :is(.collection-top,.collection-top small,h4,p,a){color:#fff}
.philanthropy-tiles-page .collection-card:hover{border-color:var(--brand-charcoal)}
.philanthropy-tiles-page .collection-card a:focus-visible{outline-color:#fff}
.philanthropy-tiles-page .collection-top{margin-bottom:9px;gap:8px}
.philanthropy-tiles-page .collection-top .icon{width:22px;height:22px}
.philanthropy-tiles-page .collection-top small{font-size:9px;letter-spacing:.04em;text-align:right}
.philanthropy-tiles-page .collection-card h4{font-size:14px;line-height:1.4;letter-spacing:-.25px;margin-bottom:6px}
.philanthropy-tiles-page .collection-card p{font-size:13px;line-height:1.4;margin-bottom:12px}
.philanthropy-tiles-page .collection-card a{font-size:12px;min-height:32px;gap:8px}
@media(max-width:1100px){.philanthropy-tiles-page .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
.philanthropy-tiles-page .collection-card{padding:16px 14px;min-height:0}
.philanthropy-tiles-page .collection-card h4{font-size:15px}
.philanthropy-tiles-page .collection-card p{font-size:13px;line-height:1.45}
.philanthropy-tiles-page .collection-card a{font-size:12px;min-height:44px}
}

/* Compact white resource tiles. Format labels supplement color identification. */
.philanthropy-tiles-page .library-resource-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.philanthropy-tiles-page .resource-card{--file-accent:#4e7f33;--file-ink:#385a27;--file-tint:#edf1e8;background:#fff;border-top:1px solid var(--border-soft);padding:14px;min-height:170px;border-radius:10px}
.philanthropy-tiles-page .resource-card[data-format="PDF"]{--file-accent:#c9323c;--file-ink:#a1232c;--file-tint:#fff0f0}
.philanthropy-tiles-page .resource-card[data-format="PNG"]{--file-accent:#e2b020;--file-ink:#715400;--file-tint:#fff4bf}
.philanthropy-tiles-page .resource-card:is([data-format="DOCX"],[data-format="DOC"]){--file-accent:#2474c7;--file-ink:#1e5c9d;--file-tint:#edf4ff}
.philanthropy-tiles-page .resource-card[data-format="PPTX"]{--file-accent:#d76a17;--file-ink:#a1460a;--file-tint:#fff0e4}
.philanthropy-tiles-page .resource-card[data-format="LINK"]{--file-accent:#8553bb;--file-ink:#71409f;--file-tint:#f5efff}
.philanthropy-tiles-page .resource-card .resource-topline{gap:6px;margin-bottom:10px;min-height:21px}
.philanthropy-tiles-page .resource-card .resource-format{background:var(--file-tint);color:var(--file-ink);font-size:10px;letter-spacing:.04em;padding:3px 6px;white-space:nowrap;flex-shrink:0}
.philanthropy-tiles-page .resource-card .resource-group{font-size:10px;min-width:0}
.philanthropy-tiles-page .resource-card h4{font-size:14px;line-height:1.4;letter-spacing:-.2px;margin-bottom:8px;min-height:2.8em}
.philanthropy-tiles-page .resource-card .resource-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;width:100%;line-height:1.4}
.philanthropy-tiles-page .resource-card .resource-description{font-size:12px;line-height:1.4;margin-bottom:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.philanthropy-tiles-page .resource-card .resource-bottom{gap:5px;padding-top:9px}
.philanthropy-tiles-page .resource-card .resource-meta{font-size:10px;line-height:1.3;max-width:60px;min-width:0;flex-shrink:1}
.philanthropy-tiles-page .resource-card .resource-actions{gap:4px;flex-shrink:0}
.philanthropy-tiles-page .resource-card .resource-download{display:inline-flex;align-items:center;font-size:11px;gap:4px;min-height:32px;white-space:nowrap;flex-shrink:0}
.philanthropy-tiles-page .resource-card .resource-download .icon{width:14px;height:14px}
.philanthropy-tiles-page .resource-card .share-button{width:28px;height:32px;flex-shrink:0}
@media(max-width:1100px) and (min-width:681px){.philanthropy-tiles-page .library-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
.philanthropy-tiles-page .library-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.philanthropy-tiles-page .resource-card{padding:12px;min-height:174px}
.philanthropy-tiles-page .resource-card .resource-group{display:none}
.philanthropy-tiles-page .resource-card h4{font-size:14px}
.philanthropy-tiles-page .resource-card .resource-bottom{flex-wrap:wrap;gap:3px}
.philanthropy-tiles-page .resource-card .resource-meta{max-width:none;font-size:10px;width:100%}
.philanthropy-tiles-page .resource-card .resource-actions{width:100%;justify-content:space-between;gap:4px}
.philanthropy-tiles-page .resource-card .resource-download{font-size:12px;min-height:40px}
.philanthropy-tiles-page .resource-card .share-button{height:40px;width:32px}
}
@media(max-width:350px){.philanthropy-tiles-page .library-resource-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep the native select control and give its chevron a consistent right inset. */
.philanthropy-tiles-page select.library-select{
 appearance:none;-webkit-appearance:none;padding-right:42px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 14px center;background-size:14px 14px;
}
@media(forced-colors:active){.philanthropy-tiles-page select.library-select{appearance:auto;-webkit-appearance:auto;background-image:none}}

/* Ken selected rich red for videos: Deep crimson, distinct solid badge from tinted PDF red. */
.philanthropy-tiles-page .resource-card[data-format="VIDEO"]{--file-ink:#fff;--file-tint:#9f1735}
/* Replace Philanthropy's large-card minimum without touching its shared base. */
.philanthropy-tiles-page .library-resource-grid .resource-card:has(.resource-format){min-height:170px}
.philanthropy-tiles-page .resource-card .share-button{min-width:28px;min-height:32px}
@media(max-width:680px){
.philanthropy-tiles-page .library-resource-grid .resource-card:has(.resource-format){min-height:174px}
.philanthropy-tiles-page .resource-card .share-button{width:44px;height:44px;min-width:44px;min-height:44px}
}
