/* =====================================================================
   Aastha transparent semantic visual cues

   Every cue sits inside an icon slot that already exists in the retained
   layout. Artwork is transparent and theme-neutral; this layer never inserts
   cards, equalises card heights or moves calls to action.
   ===================================================================== */

:root {
  --visual-cue-shadow:
    drop-shadow(0 3px 4px rgba(73, 29, 47, .12))
    drop-shadow(0 7px 9px rgba(73, 29, 47, .10));
  --visual-cue-shadow-hover:
    drop-shadow(0 4px 5px rgba(73, 29, 47, .15))
    drop-shadow(0 9px 12px rgba(73, 29, 47, .13));
}

.message-visual,
.release-v24 .message-visual {
  box-sizing: border-box;
  flex: 0 0 auto;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible;
  isolation: isolate;
}

.message-visual::before,
.message-visual::after,
.release-v24 .message-visual::before,
.release-v24 .message-visual::after {
  content: none !important;
  display: none !important;
}

.message-visual__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  filter: var(--visual-cue-shadow);
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
  transition: transform .2s ease, filter .2s ease;
}

/* Preserve the original static icon slots. */
.release-v24 .concern-card .icon-bubble.message-visual {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  padding: 1px !important;
}

.release-v24 .trust-item .trust-icon.message-visual {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
}

.release-v24 .hub-icon.message-visual {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  padding: 1px !important;
}

.release-v24 :where(
  .feature-icon,
  .benefit-icon,
  .process-icon,
  .step-icon,
  .care-icon,
  .location-icon,
  .plan-icon,
  .why-icon,
  .info-icon,
  .mini-icon,
  .card-icon,
  [data-visual-cue]
).message-visual {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  display: grid;
  place-items: center;
  padding: 1px;
}

.concern-card:hover .message-visual__img,
.trust-item:hover .message-visual__img,
.hub-category:hover .message-visual__img,
.feature-card:hover .message-visual__img,
.benefit-card:hover .message-visual__img,
.process-step:hover .message-visual__img {
  transform: translateY(-1px) scale(1.025);
  filter: var(--visual-cue-shadow-hover);
}

/* Older icon CSS applies brightness to the whole icon slot in dark mode.
   Reset the container itself and shadow only the transparent image. */
html[data-theme="dark"] .release-v24 .message-visual,
html[data-theme="dark"] .release-v24 .trust-icon.message-visual,
html[data-theme="dark"] .release-v24 .icon-bubble.message-visual,
html[data-theme="dark"] .release-v24 .hub-icon.message-visual {
  color: transparent !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .message-visual__img {
  filter:
    drop-shadow(0 4px 5px rgba(0, 0, 0, .30))
    drop-shadow(0 9px 11px rgba(0, 0, 0, .28));
}

/* The mobile ribbon should read like five compact credentials, not five
   oversized centred banners. */
.release-v24 .trust-item {
  height: auto;
}

@media (max-width: 700px) {
  .release-v24 .hub-icon.message-visual {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    padding: 0 !important;
  }

  .release-v24 .trust-ribbon,
  .release-v24 .trust-item,
  .release-v24 .trust-item > div,
  .release-v24 .concern-card,
  .release-v24 .hub-category,
  .release-v24 .hub-category-heading,
  .release-v24 .hub-category-heading > div,
  .release-v24 .hub-link-grid,
  .release-v24 .hub-link {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .release-v24 .trust-ribbon {
    width: 100%;
    overflow: hidden;
  }

  .release-v24 .trust-item,
  .release-v24 .trust-item:nth-child(3),
  .release-v24 .trust-item:nth-child(even),
  .release-v24 .trust-item:last-child {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    justify-content: initial;
    padding: 15px 17px;
    text-align: left;
  }

  .release-v24 .trust-item .trust-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: start;
  }

  .release-v24 .trust-item > div,
  .release-v24 .trust-item > :not(.trust-icon) {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .release-v24 .trust-item > div {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .release-v24 .trust-item > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .release-v24 .trust-item > span:not(.trust-icon) {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .release-v24 .trust-item strong {
    margin: 0;
    font-size: clamp(.9rem, 4.3vw, 1rem);
    line-height: 1.24;
    text-align: left;
  }

  .release-v24 .trust-item span:not(.trust-icon) {
    margin: 2px 0 0;
    font-size: clamp(.76rem, 3.6vw, .86rem);
    line-height: 1.34;
    text-align: left;
  }

  .release-v24 .trust-item :where(strong, span:not(.trust-icon)),
  .release-v24 .concern-card :where(h3, p, .card-link),
  .release-v24 .hub-category-heading :where(h2, p),
  .release-v24 .hub-link :where(strong, span) {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .release-v24 .concern-card {
    width: 100%;
    overflow: hidden;
  }

  .release-v24 .hub-category {
    width: 100%;
    overflow: hidden;
  }

  .release-v24 .hub-category-heading {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
  }

  .release-v24 .hub-category-heading h2 {
    font-size: clamp(1.34rem, 6.2vw, 1.72rem);
  }

  .release-v24 .hub-category-heading p {
    font-size: .94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-visual__img {
    transition: none;
    transform: none !important;
  }
}