/* Attaya V52 — account icon, global search and dark-green urgent cards */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.attaya-header-tools{display:flex;align-items:center;gap:8px;flex:none}
.attaya-header-icon-button{position:relative;width:43px;height:43px;border:1px solid #dbe8df;border-radius:13px;background:#fff;color:#0d513d;display:grid;place-items:center;cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease;box-shadow:0 7px 18px rgba(8,47,40,.06)}
.attaya-header-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.attaya-header-icon-button:hover,.attaya-header-icon-button:focus-visible,.attaya-header-icon-button.is-active{background:#0d513d;color:#fff;border-color:#0d513d;transform:translateY(-2px);box-shadow:0 10px 24px rgba(13,81,61,.22);outline:none}
.attaya-account-status{position:absolute;width:9px;height:9px;border-radius:50%;background:#a4cf47;border:2px solid #fff;inset-inline-end:5px;bottom:5px}
.site-header .attaya-header-icon-button{border-color:#dce9e1;color:var(--green-dark,#0d513d)}
.site-header .attaya-header-icon-button:hover,.site-header .attaya-header-icon-button:focus-visible,.site-header .attaya-header-icon-button.is-active{background:var(--green-dark,#0d513d);border-color:var(--green-dark,#0d513d);color:#fff}

.attaya-search-overlay[hidden]{display:none!important}
.attaya-search-overlay{position:fixed;inset:0;z-index:5000;display:grid;place-items:start center;padding:clamp(72px,12vh,128px) 18px 32px;overflow-y:auto}
.attaya-search-backdrop{position:fixed;inset:0;border:0;background:rgba(4,28,22,.72);backdrop-filter:blur(9px);cursor:default}
.attaya-search-panel{position:relative;z-index:1;width:min(760px,100%);background:#fff;border:1px solid rgba(13,81,61,.12);border-radius:26px;padding:28px;box-shadow:0 34px 90px rgba(4,28,22,.34);animation:attayaSearchIn .24s ease-out both}
.attaya-search-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.attaya-search-panel-head span{display:block;color:#2f815e;font-size:12px;font-weight:900;margin-bottom:4px}
.attaya-search-panel-head h2{margin:0;color:#0d513d;font-size:clamp(25px,4vw,38px);line-height:1.25}
.attaya-search-close{width:42px;height:42px;border-radius:13px;border:1px solid #dce9e1;background:#f7faf8;color:#0d513d;display:grid;place-items:center;cursor:pointer;flex:none}
.attaya-search-close svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.attaya-search-form{position:relative;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.attaya-search-form input{height:58px;border:1px solid #d7e5dc;border-radius:15px;background:#f8fbf9;color:#102d23;padding:0 50px 0 16px;outline:none;font-size:15px;min-width:0}
html[dir="ltr"] .attaya-search-form input{padding:0 16px 0 50px}
.attaya-search-form input:focus{border-color:#2f815e;box-shadow:0 0 0 4px rgba(47,129,94,.11);background:#fff}
.attaya-search-form button{height:58px;border:0;border-radius:15px;padding:0 25px;background:linear-gradient(135deg,#0d513d,#237d58);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 12px 24px rgba(13,81,61,.2)}
.attaya-search-input-icon{position:absolute;z-index:1;inset-inline-start:17px;top:50%;transform:translateY(-50%);color:#6f8278;pointer-events:none}
.attaya-search-input-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.attaya-search-hint{margin:13px 2px 0;color:#6f7b76;font-size:12px;line-height:1.8}
.attaya-search-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px;padding-top:20px;border-top:1px solid #e6eee9}
.attaya-search-shortcuts a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border-radius:13px;padding:0 14px;background:#f4f8f5;color:#164c38;font-size:13px;font-weight:800;border:1px solid #e0ebe4;transition:.2s}
.attaya-search-shortcuts a:hover{background:#0d513d;color:#fff;border-color:#0d513d;transform:translateY(-2px)}
body.attaya-search-open{overflow:hidden}
@keyframes attayaSearchIn{from{opacity:0;transform:translateY(-14px) scale(.98)}to{opacity:1;transform:none}}

.attaya-search-hero{padding-bottom:38px}
.attaya-search-page-form{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:min(820px,100%);margin-top:27px;background:#fff;padding:9px;border-radius:17px;box-shadow:0 16px 42px rgba(8,47,40,.13);border:1px solid #dce8e0}
.attaya-search-page-form>span{width:42px;height:42px;border-radius:12px;background:#edf6f0;color:#0d513d;display:grid;place-items:center}
.attaya-search-page-form input{height:48px;border:0;outline:0;background:transparent;color:#15372b;font-size:15px;min-width:0}
.attaya-search-page-form .attaya-btn{height:48px;min-width:120px}
.attaya-search-summary{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:30px;padding:22px 24px;background:#eef7f1;border:1px solid #d9eadd;border-radius:18px}
.attaya-search-summary span{display:block;color:#2f815e;font-size:12px;font-weight:900}
.attaya-search-summary h2{margin:4px 0 0;color:#0d513d;font-size:25px}
.attaya-search-summary>strong{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;background:#0d513d;color:#fff;white-space:nowrap}
.attaya-search-group{margin-bottom:58px}
.attaya-search-pages-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.attaya-search-page-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:17px;border-radius:17px;border:1px solid #dfe9e3;background:#fff;box-shadow:0 10px 28px rgba(8,47,40,.06);transition:.2s}
.attaya-search-page-card:hover{transform:translateY(-3px);border-color:#8fbaa0;box-shadow:0 16px 34px rgba(8,47,40,.11)}
.attaya-search-page-icon{width:48px;height:48px;border-radius:14px;background:#edf6f0;color:#0d513d;display:grid;place-items:center;font-size:19px}
.attaya-search-page-card strong{display:block;color:#123b2c;font-size:15px;margin-bottom:3px}
.attaya-search-page-card small{display:block;color:#718078;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attaya-search-page-card>i{color:#2f815e}
.attaya-search-empty{text-align:center;padding:60px 24px}
.attaya-search-empty>i{font-size:43px;color:#2f815e;margin-bottom:17px}
.attaya-search-empty h2{margin:0 0 8px;color:#0d513d}
.attaya-search-empty p{color:#718078;margin:0 auto 22px;max-width:580px}

/* Urgent cards: identity green throughout, with the emergency badge remaining red. */
.attaya-green-home .urgent-card,.attaya-green-home .urgent-card-body,
.attaya-green-home .urgent-card .project-funding-panel{background:var(--section-surface,#0d513d)!important;border-color:var(--section-border,#1f684f)!important}
.attaya-green-home .urgent-card{box-shadow:0 22px 52px rgba(8,47,40,.22)!important}
.attaya-green-home .urgent-overlay{background:linear-gradient(180deg,color-mix(in srgb,var(--section-surface,#0d513d) 4%,transparent) 10%,color-mix(in srgb,var(--section-surface,#0d513d) 88%,#071f18) 100%)!important}
.attaya-green-home .urgent-card-body h3,.attaya-green-home .urgent-progress-meta{color:var(--section-text,#fff)!important}
.attaya-green-home .urgent-card-body>p,.attaya-green-home .urgent-countdown{color:var(--section-muted,#dce9e3)!important}
.attaya-green-home .urgent-progress{background:rgba(255,255,255,.16)!important}
.attaya-green-home .urgent-progress span{background:linear-gradient(90deg,var(--section-progress-start,#2f8c66),var(--section-progress-end,#a4cf47))!important}
.attaya-green-home .urgent-donate-button{background:linear-gradient(135deg,var(--section-button-bg,#176343),var(--section-button-hover-bg,#237d58))!important;color:var(--section-button-text,#fff)!important}
.attaya-green-home .urgent-donate-button:hover{background:var(--section-button-hover-bg,#237d58)!important}
.attaya-green-home .urgent-details-button{background:rgba(255,255,255,.04)!important;color:var(--section-text,#fff)!important;border-color:color-mix(in srgb,var(--section-text,#fff) 58%,transparent)!important}
.attaya-green-home .urgent-details-button:hover{background:var(--section-text,#fff)!important;color:var(--section-surface,#0d513d)!important;border-color:var(--section-text,#fff)!important}
.attaya-green-home .urgent-badge{background:var(--section-badge,#c81e1e)!important;color:var(--section-badge-text,#fff)!important}

@media(max-width:1180px){
  .attaya-header-tools{gap:6px}.attaya-header-icon-button{width:40px;height:40px;border-radius:12px}
}
@media(max-width:900px){
  .attaya-search-shortcuts{grid-template-columns:1fr}.attaya-search-pages-grid{grid-template-columns:1fr}
  .attaya-header-actions{gap:7px}.green-preferences{margin-inline-start:auto}
}
@media(max-width:650px){
  .attaya-search-overlay{padding:68px 10px 20px}.attaya-search-panel{padding:21px 16px;border-radius:21px}
  .attaya-search-form{grid-template-columns:1fr}.attaya-search-form button{height:50px}.attaya-search-form input{height:54px}
  .attaya-search-page-form{grid-template-columns:auto 1fr}.attaya-search-page-form .attaya-btn{grid-column:1/-1;width:100%}
  .attaya-search-summary{align-items:flex-start;flex-direction:column}.attaya-search-summary>strong{font-size:12px}
  .attaya-header-icon-button{width:39px;height:39px}.attaya-header-tools{gap:5px}
  .site-header .green-preferences .attaya-pref summary{padding-inline:7px}
}
@media(prefers-reduced-motion:reduce){.attaya-search-panel,.attaya-header-icon-button,.attaya-search-page-card{animation:none!important;transition:none!important}}

/* Keep the wider desktop header balanced after adding the two utility icons. */
.attaya-header .attaya-header-inner{grid-template-columns:minmax(190px,260px) minmax(0,1fr) auto!important}
.attaya-header .attaya-header-actions{min-width:max-content}
@media(max-width:1240px){
  .site-header .attaya-pref>summary span,.attaya-header .attaya-pref>summary span{display:none}
  .site-header .attaya-pref>summary,.attaya-header .attaya-pref>summary{min-width:40px;justify-content:center;padding-inline:8px}
  .site-header .attaya-pref>summary .fa-chevron-down,.attaya-header .attaya-pref>summary .fa-chevron-down{display:none}
}
@media(max-width:980px){
  .attaya-header .attaya-header-inner{display:flex!important;justify-content:space-between!important;grid-template-columns:none!important}
  .attaya-header .attaya-header-actions{margin-inline-start:auto}
}
