/* WebsDocs AIG market sections v12.0.0
   Load after /aig/css/aig.css. */

.market-results-section {
  scroll-margin-top: 78px;
}

.market-results-section[hidden] {
  display: none !important;
}

[data-market-view] {
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

[data-market-view]:focus-visible {
  outline: 3px solid rgba(21, 92, 255, 0.32);
  outline-offset: 3px;
}

.intro-btn.market-view-active,
.intro-btn[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.top nav [data-market-view][aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--blue-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* The hosted lane is deliberately distinct from both the dark live-assistance
   lane and the neutral public Directory lane. */
.hosted-market {
  position: relative;
  width: 100dvw;
  max-width: none;
  margin-inline: calc(50% - 50dvw);
  padding: clamp(48px, 5vw, 92px) clamp(22px, 4vw, 92px);
  overflow: hidden;
  border-block: 1px solid rgba(43, 117, 213, 0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(28, 199, 183, 0.17), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(21, 92, 255, 0.18), transparent 38rem),
    linear-gradient(135deg, #f7fffe 0%, #f4f8ff 48%, #eef3ff 100%);
  color: var(--ink);
}

.hosted-market::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 92, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 92, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

.hosted-heading,
.hosted-trust-row,
.hosted-grid {
  position: relative;
  z-index: 1;
}

.hosted-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 64px);
  width: 100%;
  max-width: none;
  margin: 0;
}

.hosted-heading > div {
  max-width: 1120px;
}

.hosted-heading > div > span {
  color: #087f78;
}

.hosted-heading h2 {
  max-width: 1100px;
}

.hosted-canonical-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(21, 92, 255, 0.28);
  border-radius: 12px;
  background: #fff;
  color: #103f9d;
  box-shadow: 0 12px 30px rgba(7, 22, 50, 0.08);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.hosted-canonical-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.hosted-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
}

.hosted-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(8, 127, 120, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #24566a;
  font-size: 10px;
  font-weight: 850;
}

.hosted-trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: #07886c;
  font-weight: 950;
}

.hosted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
}

.hosted-grid .hosted-business-entry {
  min-height: 310px;
  border: 1px solid rgba(21, 92, 255, 0.19);
  border-top: 5px solid #0c9a88;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(7, 22, 50, 0.09);
}

.hosted-grid .hosted-business-entry .status {
  background: #e7faf5;
  color: #08735f;
}

.hosted-grid .hosted-business-entry .link.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.market-section-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
}

.premium-grid > .market-section-empty {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.premium-grid > .market-section-empty p {
  color: rgba(255, 255, 255, 0.75);
}

.premium-grid > .market-section-empty a {
  color: #fff;
}

@media (min-width: 1800px) {
  .hosted-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 3000px) {
  .hosted-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .market-results-section {
    scroll-margin-top: 18px;
  }

  .hosted-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .hosted-market {
    padding: 38px 16px;
  }

  .hosted-canonical-link {
    width: 100%;
  }

  .hosted-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-market-view] {
    transition: none;
  }
}
