/* AgentReady SEO, GEO and AI-first discovery surfaces. */

.ar-discovery-answer {
  background: rgba(2, 6, 23, .28);
  border: 1px solid rgba(125, 211, 252, .2);
  border-radius: 8px;
  letter-spacing: 0;
  margin: clamp(20px, 4vw, 40px) auto 16px;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  width: min(1120px, calc(100% - 32px));
}

.ar-discovery-answer h2 {
  color: #e6fbff;
  font-size: 1rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.ar-discovery-answer p {
  color: #d6e2ea;
  font-size: .94rem;
  line-height: 1.55;
  margin: 0;
  max-width: 920px;
}

.ar-discovery-answer p + p {
  margin-top: 10px;
}

.ar-discovery-answer dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 0;
}

.ar-discovery-answer div {
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 8px;
}

.ar-discovery-answer dt {
  color: #9bdcf1;
  font-size: .76rem;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.ar-discovery-answer dd {
  color: #e2e8f0;
  font-size: .9rem;
  margin: 0;
}

.ar-discovery-source-details {
  margin-top: 12px;
}

.ar-discovery-source-details summary {
  color: #9bdcf1;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 900;
}

.ar-discovery-source-details summary:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

.ar-discovery-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ar-discovery-sources a {
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 999px;
  color: #bae6fd;
  font-size: .78rem;
  padding: 4px 7px;
}

.ar-discovery-sources a:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .agp-hero-grid > *,
  .agp-report,
  .agp-report-top,
  .agp-actions,
  .agp-strip {
    min-width: 0;
  }

  .agp-title {
    font-size: clamp(1.75rem, 8.5vw, 2.1rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .agp-actions {
    align-items: stretch;
  }

  .agp-button {
    flex: 1 1 100%;
    min-width: 0;
    text-align: center;
  }

  .agp-report-top {
    flex-wrap: wrap;
  }

  .agp-report-top span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ar-discovery-answer {
    margin: 18px auto 12px;
    padding: 12px;
    width: min(100% - 24px, 1120px);
  }

  .ar-discovery-answer dl {
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .ar-discovery-answer h2 {
    font-size: .95rem;
  }

  .ar-discovery-answer p,
  .ar-discovery-answer dd {
    font-size: .86rem;
  }
}
