/* Scoped to pair details; source data and statistical gates are unchanged. */
.association-detail-page,.v2-entity-page { min-width:0; }
.association-detail-page .association-detail-metrics { display:flex; flex-wrap:wrap; gap:5px 16px; border:0; border-radius:0; overflow:visible; color:#58718a; font-size:13px; margin:12px 0; }
.association-detail-metrics .detail-summary-item { white-space:nowrap; }
.association-detail-page .association-detail-table { min-width:0; width:100%; table-layout:auto; }
.association-detail-page .association-detail-table td,.association-detail-page .association-detail-table th { padding:9px 10px; font-size:13px; white-space:normal; line-height:1.45; }
.association-detail-page .association-detail-table td { overflow-wrap:anywhere; }
.association-detail-page .association-detail-table .result-number { white-space:nowrap; font-variant-numeric:tabular-nums; }
.association-detail-page .association-detail-table th { font-weight:600; }
.association-detail-page .association-detail-table td:nth-child(1) { min-width:110px; }
.association-detail-page .association-detail-section p { font-size:13px; }
.association-detail-page .section-title-row { margin-bottom:10px; }
.association-detail-page .scale-source-card { padding:12px; }
.association-detail-page .scale-source-panels { grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:12px; }
.association-detail-page .scale-source-card h4 { font-size:15px; margin-bottom:8px; }
.association-detail-page .scale-source-card label { font-size:12px; color:#58718a; }
.association-detail-page .scale-source-caption p { margin:5px 0; font-size:12px; }
.association-detail-page .scale-source-caption .result-estimate { font-size:15px; color:#087f7b; font-weight:600; }
.association-detail-page .scale-source-chart svg { min-width:0; }
.detail-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:12px 0; font-size:12px; color:#58718a; }
.detail-toolbar button { cursor:pointer; padding:6px 10px; border:1px solid #b9dbe1; border-radius:5px; color:#176a73; background:white; font-size:12px; }
.result-details { font-size:12px; max-width:100%; }
.result-details summary { cursor:pointer; color:#176a73; white-space:nowrap; }
.result-details dl { display:grid; grid-template-columns:minmax(90px,.7fr) minmax(120px,1fr); gap:5px 10px; margin:9px 0; min-width:240px; }
.result-details dt { color:#58718a; font-weight:500; overflow-wrap:anywhere; }
.result-details dd { margin:0; overflow-wrap:anywhere; white-space:normal; }
.result-badge { display:inline-block; padding:2px 6px; margin:2px; background:#eff7f7; color:#176a73; border-radius:4px; font-size:11px; }
.result-secondary { display:block; color:#687f93; font-size:11px; margin-top:3px; }
#v2-pair-drilldown-card .v2-pair-table { width:100%; min-width:0; table-layout:auto; }
#v2-pair-drilldown-card .v2-pair-table td,#v2-pair-drilldown-card .v2-pair-table th { font-size:13px; padding:9px 10px; white-space:normal; overflow-wrap:anywhere; }
#v2-pair-drilldown-card .v2-pair-table td:first-child { min-width:110px; width:auto; max-width:none; }
#v2-pair-drilldown-card .v2-pair-table td:last-child { text-align:left; }
#v2-pair-drilldown-card .v2-pair-page-note { margin:0; font-size:12px; color:#687f93; }
.detail-interpretation { margin:12px 0; font-size:12px; color:#58718a; }
.detail-interpretation summary { cursor:pointer; color:#176a73; }
@media(max-width:760px) {
 .association-detail-page .association-detail-table,#v2-pair-drilldown-card .v2-pair-table { min-width:850px; }
 .association-detail-page .association-detail-hero h1 { font-size:23px; }
 .association-detail-page .association-detail-metrics { gap:5px 10px; }
 .result-details dl { min-width:220px; }
}

#v2-pair-drilldown-card .v2-pair-table { border-collapse:collapse; border-spacing:0; }
#v2-pair-drilldown-card .v2-pair-table td { border:0; border-bottom:1px solid #e3edf3; border-radius:0; box-shadow:none; background:transparent; }
#v2-pair-drilldown-card .v2-pair-table td:first-child { font-weight:500; }
.association-detail-page .scale-source-chart svg g text { display:none; }
.association-detail-page .scale-source-chart svg > text { font-size:16px; fill:#687f93; }

.v2-entity-page { grid-template-columns:minmax(0,1fr); }
.v2-entity-page > *,#v2-pair-drilldown-table,#v2-pair-drilldown-table > * { min-width:0; max-width:100%; box-sizing:border-box; }
#v2-pair-drilldown-card .v2-pair-table-wrap { width:100%; overflow-x:auto; }
