/* Historical evidence disclosures and table overflow for the AI shopping study. */
.ai-shopping-research .tarte-evidence-section {
  width: auto;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--research-border);
}

.ai-shopping-research :is(.tarte-evidence-group, .tarte-figure-data, .answer-card, .paired-reading) {
  margin-top: 1.5rem;
}

.ai-shopping-research .tarte-history :is(h4, h5) {
  margin: 1.5rem 0 0;
  color: var(--research-text);
}

.ai-shopping-research .tarte-history details {
  margin-top: 1rem;
  border-block: 1px solid var(--research-border);
  background: var(--research-surface-soft);
}

.ai-shopping-research .tarte-history summary {
  padding: 0.75rem 1rem;
  color: var(--research-text);
  font-weight: 700;
  cursor: pointer;
}

.ai-shopping-research .tarte-history summary:focus-visible {
  outline: 3px solid var(--signal-ring);
  outline-offset: 2px;
}

.ai-shopping-research .tarte-history details > div {
  padding: 0 1rem 1rem;
}

.ai-shopping-research .tarte-history details details {
  background: var(--research-surface);
}

.ai-shopping-research .tarte-history .model {
  margin-top: 0.25rem;
}

.ai-shopping-research .tarte-history .tarte-presence {
  display: block;
  margin-bottom: 0.25rem;
}

.ai-shopping-research .tarte-reach-dots {
  margin-right: 0.5em;
}

.ai-shopping-research .research-results-table {
  overflow-wrap: anywhere;
}

.ai-shopping-research .research-results-table th {
  min-width: 6.5rem;
}

.ai-shopping-research .research-table-wrap {
  container-type: inline-size;
  overscroll-behavior-inline: contain;
}

.ai-shopping-research .research-results-table caption {
  max-width: 100cqi;
}

.ai-shopping-research details .research-table-wrap {
  width: 100%;
  margin-inline: 0;
  transform: none;
}

.ai-shopping-research .research-results-table:has(thead th:nth-child(2):last-child) {
  min-width: 25rem;
}

.ai-shopping-research .research-results-table:has(thead th:nth-child(3):last-child) {
  min-width: 34rem;
}

.ai-shopping-research :is(.research-prose-section, .tarte-history [id]) {
  scroll-margin-top: 10.5rem;
}

@media (max-width: 719px) {
  .ai-shopping-research :is(.research-prose-section, .tarte-history [id]) {
    scroll-margin-top: 5.5rem;
  }
}
