/* Darex Homepage 1.4.76 — canonical needs category cards.
   Layout is scoped to box 05 so other Darex cards and archive grids are unaffected. */
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
  align-items:stretch;direction:rtl;
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-group {
  display:flex;flex-direction:column;justify-content:flex-start;min-width:0;width:100%;
  min-height:0;height:100%;box-sizing:border-box;overflow:hidden;position:relative;
  padding:10px 10px 12px;margin:0;border:1px solid #e9e8ee;border-radius:18px;
  background:#fff;color:#273041;text-decoration:none!important;
  box-shadow:0 3px 15px rgba(32,37,54,.045);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-group:hover {
  transform:translateY(-2px);border-color:var(--dxh-group-color,#9b6aa5);
  box-shadow:0 12px 26px rgba(32,37,54,.1);
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-group:focus-visible {
  outline:3px solid var(--dxh-group-color,#9b6aa5);outline-offset:2px;
}
/* Every image sits in a full-width SQUARE frame, clipped to the card's padding box.
   No fixed 196px cap: that was making some image areas look noticeably smaller. */
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-cover {
  display:block!important;box-sizing:border-box!important;position:relative!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;aspect-ratio:1 / 1!important;flex:0 0 auto!important;
  overflow:hidden!important;isolation:isolate;
  padding:0!important;margin:0 0 9px!important;
  border:0!important;border-radius:13px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--dxh-group-color,#9b6aa5) 12%,white),#f5f7f8);
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-cover > img.dxh-need-image {
  display:block!important;box-sizing:border-box!important;position:absolute!important;
  inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:100%!important;max-height:100%!important;min-height:0!important;
  aspect-ratio:1 / 1!important;object-fit:cover!important;object-position:center center!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;transform:none!important;float:none!important;
  opacity:1!important;visibility:visible!important;z-index:2;
}
/* An accessible decorative fallback always exists behind images; broken URLs reveal it. */
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-cover .dxh-need-cover-fallback {
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  display:flex!important;align-items:center;justify-content:center;flex-direction:column;
  color:var(--dxh-group-color,#9b6aa5);font-size:0;line-height:1;
  z-index:0;pointer-events:none;
  background:
   radial-gradient(circle at 78% 22%,rgba(255,255,255,.75),transparent 45%),
   radial-gradient(circle at 18% 85%,color-mix(in srgb,var(--dxh-group-color,#9b6aa5) 18%,transparent),transparent 50%);
}
/* v1.4.105: when no photo is available the star sits in a soft circle tinted with the group colour. */
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-cover .dxh-need-cover-fallback::before {
  content:"✦";display:flex;align-items:center;justify-content:center;
  width:34%;aspect-ratio:1 / 1;border-radius:50%;font-size:clamp(22px,4vw,44px);line-height:1;
  color:var(--dxh-group-color,#9b6aa5);background:rgba(255,255,255,.78);
  box-shadow:0 0 0 9px rgba(255,255,255,.45),0 8px 22px rgba(40,30,50,.08);
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-cover .dxbg-placeholder,
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-cover .dxh-need-cover-empty {display:none!important;}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-number {display:none!important;}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-title-row {
  display:flex;align-items:center;justify-content:space-between;gap:6px;direction:rtl;
  width:100%;min-width:0;margin:0 0 4px;padding:0 2px;
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-title-row h3 {
  flex:1 1 auto;min-width:0;overflow-wrap:anywhere;margin:0!important;
  font-size:15px;line-height:1.55;font-weight:800;color:#262d3b;
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-count {
  flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;
  border-radius:999px;background:#f2f3f6;color:#5c6675;
  padding:3px 8px;font-size:11px;line-height:1.5;font-weight:700;
}
html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-link {
  display:block;width:100%;margin:auto 0 0;padding:7px 2px 0;
  border-top:1px solid #f0f0f3;font-size:11px;line-height:1.5;font-weight:700;
  color:var(--dxh-group-color,#9b6aa5);
}
@media(max-width:960px){
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups {grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;}
}
@media(max-width:640px){
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-group {padding:7px 7px 9px;border-radius:14px;}
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-cover {margin-bottom:7px!important;border-radius:10px!important;}
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-title-row {gap:4px;}
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-title-row h3 {font-size:12px;}
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-count {font-size:9px;padding:2px 5px;}
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-link {font-size:10px;}
}
@media(prefers-reduced-motion:reduce){
 html body .dxh-home:not(.dxh-archive) .dxh-box-05 .dxh-need-groups .dxh-need-group {transition:none;}
}


/* v1.4.78 — Calm pharmaceutical / molecular backdrop exclusively for needs categories.
   The existing white cards, square photos, heights and grid are deliberately unchanged. */
html body .dxh-home:not(.dxh-archive) > .dxh-box.dxh-box-05 {
  isolation:isolate;
  background:
    radial-gradient(ellipse at 95% 0%,rgba(191,228,227,.52),transparent 47%),
    radial-gradient(ellipse at 5% 100%,rgba(220,208,244,.38),transparent 48%),
    linear-gradient(120deg,#f5fbfc 0%,#f8fbff 56%,#fcf9ff 100%) !important;
  border-color:#dfeaf0 !important;
  box-shadow:0 6px 28px rgba(63,106,129,.065);
}
html body .dxh-home:not(.dxh-archive) > .dxh-box.dxh-box-05::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:url("needs-molecules.svg") repeat 0 0 / 360px 360px;
  opacity:.50;
  pointer-events:none;
  z-index:0;
}
html body .dxh-home:not(.dxh-archive) > .dxh-box.dxh-box-05 > * {
  position:relative;
  z-index:1;
}
@media (max-width:640px) {
  html body .dxh-home:not(.dxh-archive) > .dxh-box.dxh-box-05::before {
    opacity:.32;
    background-size:290px 290px;
  }
}
