/* Philanthropy — public editorial section */
.philanthropy-section{
  position:relative;
  overflow:hidden;
  background:#f5f5f7;
  color:#111318;
}
.philanthropy-section::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(17,19,24,.16),transparent);
}
.philanthropy-shell{position:relative}
.philanthropy-heading{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);
  align-items:end;
  gap:clamp(36px,7vw,112px);
  margin-bottom:clamp(58px,8vw,112px);
}
.philanthropy-heading h2{
  max-width:980px;
  margin:14px 0 0;
  font-size:clamp(50px,7.8vw,118px);
  line-height:.9;
  letter-spacing:-.068em;
}
.philanthropy-heading>p{
  max-width:560px;
  margin:0 0 8px;
  color:#666a73;
  font-size:clamp(16px,1.45vw,21px);
  line-height:1.75;
}
.philanthropy-rich-copy{
  max-width:920px;
  margin:0 auto clamp(64px,8vw,118px);
  padding:clamp(28px,4vw,52px) 0;
  border-top:1px solid rgba(17,19,24,.13);
  border-bottom:1px solid rgba(17,19,24,.13);
  color:#30333a;
  font-size:clamp(18px,1.65vw,24px);
  line-height:1.75;
}
.philanthropy-rich-copy>*:first-child{margin-top:0}
.philanthropy-rich-copy>*:last-child{margin-bottom:0}
.philanthropy-rich-copy h3,.philanthropy-rich-copy h4{color:#111318;letter-spacing:-.045em;line-height:1.05}
.philanthropy-rich-copy h3{font-size:clamp(34px,4.4vw,66px)}
.philanthropy-rich-copy h4{font-size:clamp(26px,3vw,42px)}
.philanthropy-rich-copy blockquote{margin:32px 0;padding-left:24px;border-left:2px solid #111318;color:#111318;font-size:1.12em}
.philanthropy-rich-copy a{color:inherit;text-decoration-thickness:1px;text-underline-offset:4px}
.philanthropy-list{display:grid;gap:clamp(34px,5vw,76px)}
.philanthropy-entry{
  display:grid;
  grid-template-columns:minmax(300px,.92fr) minmax(0,1.08fr);
  min-height:520px;
  overflow:hidden;
  border-radius:28px;
  background:#fff;
  box-shadow:0 26px 90px rgba(17,19,24,.07);
  border:1px solid rgba(17,19,24,.07);
}
.philanthropy-entry:not(.has-media){grid-template-columns:1fr;min-height:0}
.philanthropy-entry:not(.has-media) .philanthropy-entry-copy{max-width:980px}
.philanthropy-entry-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:clamp(34px,5vw,76px);
}
.philanthropy-entry-index{display:flex;align-items:center;width:100%;gap:16px;margin-bottom:clamp(42px,5vw,72px);color:#8b8e96;font-size:11px;letter-spacing:.16em}
.philanthropy-entry-index i{height:1px;flex:1;background:rgba(17,19,24,.12)}
.philanthropy-entry-meta{display:flex;flex-wrap:wrap;gap:10px 18px;margin-bottom:18px;color:#777b84;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.philanthropy-entry-meta time{color:#9a9da4}
.philanthropy-entry h3{max-width:780px;margin:0;font-size:clamp(38px,4.8vw,72px);line-height:.96;letter-spacing:-.06em}
.philanthropy-organization{margin:18px 0 0;color:#4b4f57;font-size:15px;font-weight:650}
.philanthropy-summary{max-width:730px;margin:28px 0 0;color:#555a63;font-size:clamp(17px,1.45vw,21px);line-height:1.7}
.philanthropy-contribution-label{display:grid;gap:4px;margin:30px 0 0;padding:14px 18px;border-radius:12px;background:#f1f2f4}
.philanthropy-contribution-label small{color:#848892;font-size:9px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
.philanthropy-contribution-label b{font-size:15px}
.philanthropy-story{display:grid;gap:16px;max-width:760px;margin:36px 0 0;color:#62666f;line-height:1.75}
.philanthropy-story p,.philanthropy-impact p{margin:0}
.philanthropy-impact{display:grid;gap:12px;width:100%;max-width:760px;margin:36px 0 0;padding-top:26px;border-top:1px solid rgba(17,19,24,.11);color:#555a63;line-height:1.7}
.philanthropy-impact small{color:#16181d;font-size:10px;font-weight:750;letter-spacing:.14em;text-transform:uppercase}
.philanthropy-link{display:inline-flex;align-items:center;gap:8px;margin-top:34px;color:#111318;font-size:13px;font-weight:750;text-decoration:none}
.philanthropy-link span{transition:transform .2s ease}
.philanthropy-link:hover span{transform:translate(2px,-2px)}
.philanthropy-media{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  min-height:520px;
  background:#dadce1;
}
.philanthropy-media--1{display:block}
.philanthropy-media--2{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
.philanthropy-media--3 .philanthropy-photo--cover{grid-row:1/3}
.philanthropy-media--4 .philanthropy-photo--cover{grid-row:1/3}
.philanthropy-photo{
  position:relative;
  min-width:0;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  overflow:hidden;
  background:#dfe1e5;
  cursor:zoom-in;
}
.philanthropy-photo img{width:100%;height:100%;min-height:250px;display:block;object-fit:cover;transition:transform .7s cubic-bezier(.2,.75,.2,1)}
.philanthropy-media--1 .philanthropy-photo,.philanthropy-media--1 .philanthropy-photo img{width:100%;height:100%;min-height:520px}
.philanthropy-photo:hover img{transform:scale(1.025)}
.philanthropy-photo>span{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;min-width:44px;height:34px;padding:0 10px;border-radius:999px;background:rgba(8,9,11,.72);color:#fff;font-size:12px;font-weight:750;backdrop-filter:blur(12px)}
.philanthropy-empty{padding:80px 24px;border:1px solid rgba(17,19,24,.11);border-radius:24px;text-align:center;background:rgba(255,255,255,.5)}
.philanthropy-empty span{font-size:10px;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:#838791}
.philanthropy-empty p{margin:12px 0 0;color:#5f636c;font-size:18px}

.philanthropy-gallery-dialog{
  width:min(1120px,calc(100vw - 32px));
  max-width:none;
  height:min(820px,calc(100dvh - 32px));
  max-height:none;
  padding:0;
  border:0;
  border-radius:24px;
  overflow:hidden;
  background:#08090b;
  color:#fff;
  box-shadow:0 40px 160px rgba(0,0,0,.45);
}
.philanthropy-gallery-dialog::backdrop{background:rgba(2,3,5,.82);backdrop-filter:blur(18px)}
.philanthropy-gallery-dialog figure{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;margin:0;padding:28px}
.philanthropy-gallery-dialog img{width:100%;height:100%;min-height:0;object-fit:contain}
.philanthropy-gallery-dialog figcaption{padding:18px 64px 4px;color:#b9bcc4;text-align:center;font-size:13px}
.philanthropy-gallery-close,.philanthropy-gallery-prev,.philanthropy-gallery-next{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);background:rgba(17,19,24,.68);color:#fff;backdrop-filter:blur(14px)}
.philanthropy-gallery-close{top:18px;right:18px;width:42px;height:42px;border-radius:50%;font-size:24px}
.philanthropy-gallery-prev,.philanthropy-gallery-next{top:50%;width:48px;height:64px;border-radius:16px;transform:translateY(-50%);font-size:32px}
.philanthropy-gallery-prev{left:18px}.philanthropy-gallery-next{right:18px}
.philanthropy-gallery-count{position:absolute;left:22px;bottom:20px;color:#aeb1b9;font-size:11px;letter-spacing:.14em}

/* Philanthropy settings */
.philanthropy-admin-panel{--philanthropy-admin-border:rgba(17,19,24,.1)}
.philanthropy-admin-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;background:linear-gradient(135deg,#101216,#242832);color:#fff}
.philanthropy-admin-hero h2{max-width:720px;margin:8px 0 14px;font-size:clamp(34px,4vw,58px);line-height:.98;letter-spacing:-.055em}
.philanthropy-admin-hero p{max-width:720px;color:#c1c4cb;line-height:1.65}
.philanthropy-admin-hero .eyebrow{color:#8f949f}
.philanthropy-admin-hero-actions{flex:0 0 auto}
.philanthropy-switch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.philanthropy-rich-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.34fr);gap:14px;align-items:end}
.philanthropy-rich-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 10px;padding:8px;border-radius:14px;background:#f1f2f4}
.philanthropy-rich-toolbar button{min-width:42px;height:38px;padding:0 12px;border:1px solid rgba(17,19,24,.1);border-radius:9px;background:#fff;color:#17191e;font-size:12px}
.philanthropy-rich-editor{min-height:240px;padding:24px;border:1px solid rgba(17,19,24,.12);border-radius:16px;background:#fff;color:#20232a;font-size:17px;line-height:1.7;outline:none}
.philanthropy-rich-editor:focus{border-color:rgba(17,19,24,.35);box-shadow:0 0 0 4px rgba(17,19,24,.06)}
.philanthropy-rich-editor:empty::before{content:attr(data-placeholder);color:#9699a1;pointer-events:none}
.philanthropy-rich-editor.is-disabled{opacity:.55;background:#f4f4f6}
.philanthropy-order-card .field-grid{max-width:720px}
.philanthropy-order-card .is-muted{opacity:.48}
.philanthropy-order-note{margin:14px 0 0;color:#777b84;font-size:13px}
.philanthropy-editor-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:34px 0 18px}
.philanthropy-editor-title h2{margin:4px 0 7px;font-size:34px;letter-spacing:-.045em}
.philanthropy-editor-title p{margin:0;color:#777b84}
.philanthropy-editor-list{display:grid;gap:18px}
.philanthropy-editor-card{padding:20px;border:1px solid var(--philanthropy-admin-border);border-radius:20px;background:#fff;box-shadow:0 14px 44px rgba(17,19,24,.045);transition:border-color .2s ease,box-shadow .2s ease,opacity .2s ease,transform .2s ease}
.philanthropy-editor-card.is-draft{border-left:4px solid #c9a15a}
.philanthropy-editor-card.is-published{border-left:4px solid #4f8a67}
.philanthropy-editor-card.is-dragging{opacity:.48;transform:scale(.992)}
.philanthropy-editor-card.is-drag-target{border-color:#111318;box-shadow:0 0 0 3px rgba(17,19,24,.08)}
.philanthropy-editor-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid rgba(17,19,24,.09)}
.philanthropy-drag-title{display:flex;align-items:center;gap:12px;min-width:0}
.philanthropy-drag-title small{color:#858992;font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
.philanthropy-drag-title h3{margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;font-size:22px;letter-spacing:-.035em;white-space:nowrap}
.philanthropy-drag-handle{width:38px;height:42px;padding:0;border:1px solid rgba(17,19,24,.1);border-radius:10px;background:#f4f4f6;color:#777b84;cursor:grab;letter-spacing:-3px}
.philanthropy-editor-actions{display:flex;gap:8px;flex-wrap:wrap}
.philanthropy-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.philanthropy-editor-grid .wide{grid-column:1/-1}
.philanthropy-editor-grid label,.philanthropy-photo-field>div{display:grid;gap:7px;color:#30333a;font-size:12px;font-weight:700}
.philanthropy-editor-grid input,.philanthropy-editor-grid textarea,.philanthropy-editor-grid select{width:100%}
.philanthropy-photo-field{display:grid;gap:12px;padding:16px;border-radius:15px;background:#f5f5f7}
.philanthropy-photo-field small{font-weight:450;color:#777b84}
.philanthropy-photo-picker{overflow:hidden;border:1px solid rgba(17,19,24,.1);border-radius:12px;background:#fff}
.philanthropy-photo-picker summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;cursor:pointer;font-size:12px;font-weight:750}
.philanthropy-photo-picker summary span{color:#858992;font-weight:550}
.philanthropy-photo-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 12px 12px}
.philanthropy-photo-picker-grid label{position:relative;display:grid;gap:7px;min-width:0;padding:8px;border:1px solid rgba(17,19,24,.1);border-radius:10px;background:#f7f7f8;cursor:pointer}
.philanthropy-photo-picker-grid label.is-selected{border-color:#111318;box-shadow:0 0 0 2px rgba(17,19,24,.08)}
.philanthropy-photo-picker-grid input{position:absolute;top:12px;right:12px;z-index:2;width:18px;height:18px;margin:0}
.philanthropy-photo-picker-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:7px;background:#e6e7ea}
.philanthropy-photo-picker-grid label>span{overflow:hidden;color:#555963;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.philanthropy-photo-empty{padding:16px;border:1px dashed rgba(17,19,24,.18);border-radius:12px;background:#fff;color:#777b84;font-size:12px}

@media(max-width:900px){
  .philanthropy-heading{grid-template-columns:1fr;align-items:start}
  .philanthropy-heading>p{max-width:760px}
  .philanthropy-entry{grid-template-columns:1fr;min-height:0}
  .philanthropy-media{min-height:430px;order:0}
  .philanthropy-entry-copy{order:1}
  .philanthropy-switch-grid{grid-template-columns:1fr}
  .philanthropy-photo-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:700px){
  .philanthropy-section{padding-top:84px;padding-bottom:84px}
  .philanthropy-heading{gap:24px;margin-bottom:48px}
  .philanthropy-heading h2{font-size:clamp(46px,15vw,74px)}
  .philanthropy-rich-copy{margin-bottom:48px;padding:28px 0;font-size:17px}
  .philanthropy-list{gap:24px}
  .philanthropy-entry{border-radius:20px}
  .philanthropy-entry-copy{padding:28px 22px 32px}
  .philanthropy-entry-index{margin-bottom:34px}
  .philanthropy-entry h3{font-size:clamp(36px,12vw,54px)}
  .philanthropy-summary{font-size:17px}
  .philanthropy-media{min-height:340px}
  .philanthropy-photo img{min-height:165px}
  .philanthropy-media--1 .philanthropy-photo,.philanthropy-media--1 .philanthropy-photo img{min-height:340px}
  .philanthropy-gallery-dialog{width:100vw;height:100dvh;border-radius:0}
  .philanthropy-gallery-dialog figure{padding:18px 10px 50px}
  .philanthropy-gallery-prev{left:8px}.philanthropy-gallery-next{right:8px}
  .philanthropy-admin-hero,.philanthropy-editor-title,.philanthropy-editor-head{align-items:stretch;flex-direction:column}
  .philanthropy-admin-hero-actions button,.philanthropy-editor-title>button{width:100%}
  .philanthropy-rich-options,.philanthropy-editor-grid{grid-template-columns:1fr}
  .philanthropy-editor-grid .wide{grid-column:auto}
  .philanthropy-editor-actions{width:100%}
  .philanthropy-editor-actions button{flex:1}
  .philanthropy-drag-title h3{white-space:normal}
  .philanthropy-photo-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
