/**
 * Compact mobile footer — reference rebuild.
 * Removes Explore / Hospitals / Specialists / Legal shortcut cards.
 * Sticky CTA bar remains the separate .mobile-action-bar partial.
 */
.ilj-footer.ilj-footer--compact {
  --ft-navy: #062a4a;
  --ft-navy-mid: #083556;
  --ft-navy-deep: #041e38;
  --ft-line: rgba(255, 255, 255, 0.16);
  --ft-muted: rgba(220, 235, 250, 0.78);
  --ft-cyan: #7ec8e8;
  --ft-radius: 26px;
  color: #fff;
  background: transparent;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.ilj-footer.ilj-footer--compact .ilj-footer__shell {
  position: relative;
  background: linear-gradient(180deg, #0a3a5c 0%, var(--ft-navy-mid) 32%, var(--ft-navy) 68%, var(--ft-navy-deep) 100%);
  border-radius: var(--ft-radius) var(--ft-radius) 0 0;
  box-shadow: 0 -10px 28px rgba(4, 30, 56, 0.2);
  padding: 20px 0 14px;
  overflow: hidden;
}

/* Dotted world-map atmosphere */
.ilj-footer.ilj-footer--compact .ilj-footer__map {
  position: absolute;
  inset: 0 0 40% 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 18% 35%, rgba(126, 200, 232, 0.55) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 28% 28%, rgba(126, 200, 232, 0.45) 0 1px, transparent 1.4px),
    radial-gradient(circle at 38% 42%, rgba(126, 200, 232, 0.5) 0 1.1px, transparent 1.5px),
    radial-gradient(circle at 48% 30%, rgba(126, 200, 232, 0.4) 0 1px, transparent 1.4px),
    radial-gradient(circle at 58% 38%, rgba(126, 200, 232, 0.5) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 68% 26%, rgba(126, 200, 232, 0.45) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 40%, rgba(126, 200, 232, 0.5) 0 1.1px, transparent 1.5px),
    radial-gradient(circle at 88% 32%, rgba(126, 200, 232, 0.4) 0 1px, transparent 1.4px),
    radial-gradient(circle at 22% 55%, rgba(126, 200, 232, 0.35) 0 1px, transparent 1.4px),
    radial-gradient(circle at 42% 58%, rgba(126, 200, 232, 0.4) 0 1.1px, transparent 1.5px),
    radial-gradient(circle at 62% 52%, rgba(126, 200, 232, 0.35) 0 1px, transparent 1.4px),
    radial-gradient(circle at 82% 56%, rgba(126, 200, 232, 0.4) 0 1.1px, transparent 1.5px);
  background-size: 100% 100%;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.ilj-footer.ilj-footer--compact .ilj-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: min(100% - 28px, 1240px);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* Hide legacy link-group blocks; contact + social stay visible (Prompt 4) */
.ilj-footer.ilj-footer--compact .ilj-footer__nav,
.ilj-footer.ilj-footer--compact .ilj-footer__group,
.ilj-footer.ilj-footer--compact .ilj-footer__accs,
.ilj-footer.ilj-footer--compact .ilj-footer__top,
.ilj-footer.ilj-footer--compact .ilj-footer__trust {
  display: none !important;
}

@media (max-width: 767px) {
  body.page-home .ilj-footer.ilj-footer--compact.pub-p3,
  .ilj-footer.ilj-footer--compact {
    padding: 0 !important;
    margin: 0 !important;
  }

  body.page-home .ilj-footer.ilj-footer--compact .ilj-footer__shell,
  .ilj-footer.ilj-footer--compact .ilj-footer__shell {
    padding: 18px 0 12px !important;
    border-radius: 26px 26px 0 0 !important;
  }

  body.page-home .ilj-footer.ilj-footer--compact .ilj-footer__inner,
  .ilj-footer.ilj-footer--compact .ilj-footer__inner {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 16px !important;
    gap: 12px !important;
  }

  /* Brand */
  .ilj-footer.ilj-footer--compact .ilj-footer__brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--ft-line) !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__logo {
    display: inline-flex !important;
    text-decoration: none !important;
  }

  body.page-home .ilj-footer.ilj-footer--compact .ilj-footer__logo img,
  .ilj-footer.ilj-footer--compact .ilj-footer__logo img {
    display: block !important;
    width: auto !important;
    height: 48px !important;
    max-width: 190px !important;
    object-fit: contain !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__tagline {
    margin: 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 28ch !important;
  }

  /* Trust badges removed from compact footer markup (Prompt 4) */
  body.page-home .ilj-footer.ilj-footer--compact .ilj-footer__trust,
  .ilj-footer.ilj-footer--compact .ilj-footer__trust {
    display: none !important;
  }

  /* Legal links */
  .ilj-footer.ilj-footer--compact .ilj-footer__legal {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 4px 0 0 !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__legal a {
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__legal a:hover,
  .ilj-footer.ilj-footer--compact .ilj-footer__legal a:focus-visible {
    opacity: 0.85 !important;
    outline: none !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__sep {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.7rem !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__copy {
    margin: 0 !important;
    text-align: center !important;
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
    color: rgba(220, 235, 250, 0.65) !important;
    padding-bottom: 2px !important;
  }

  /* Clearance for sticky mobile action bar */
  body.pb-mobile-bar .ilj-footer.ilj-footer--compact .ilj-footer__shell {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  .ilj-footer.ilj-footer--compact .ilj-footer__trust-label {
    font-size: 0.56rem !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__trust-ico,
  .ilj-footer.ilj-footer--compact .ilj-footer__trust-ico svg {
    width: 20px !important;
    height: 20px !important;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__logo img {
    height: 52px !important;
    max-width: 200px !important;
  }
}

@media (min-width: 768px) {
  .ilj-footer.ilj-footer--compact .ilj-footer__shell {
    padding: 28px 0 24px;
    border-radius: 28px 28px 0 0;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__inner {
    gap: 18px;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ft-line);
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__logo img {
    height: 56px;
    max-width: 220px;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__tagline {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 720px;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__trust-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__trust-item:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__trust-ico {
    width: 28px;
    height: 28px;
    color: #dbeafe;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__trust-ico svg {
    width: 28px;
    height: 28px;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__trust-label {
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 650;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__legal a {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
  }

  .ilj-footer.ilj-footer--compact .ilj-footer__copy {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(220, 235, 250, 0.65);
  }
}
