/* Vendor detail and compare */
.vendor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.vendor-name { font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.vendor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.differs { margin-top: 6px; color: var(--gray); }

.tabs { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 10px; border-bottom: 1px solid var(--rule); }
.tabs a { text-decoration: none; color: var(--soft); padding: 6px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; }
.tabs a:hover { color: var(--white); }
.tabs a.active { color: var(--white); border-bottom-color: var(--yellow); }

.table.lines td { padding: 8px 14px; }
.table.lines .col-chip { width: 44px; }
.table.lines .col-tags { text-align: right; white-space: nowrap; }
.more-lines { background: var(--panel); border-top: 1px solid var(--rule); }
.more-lines > summary { padding: 10px 14px; color: var(--soft); font-size: 13px; }
.more-lines > summary:hover { color: var(--yellow); }
.more-lines[open] > summary { border-bottom: 1px solid var(--rule); }

.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-role { font-size: 12px; font-weight: normal; color: var(--gray); margin-bottom: 8px; }
.contact { margin-bottom: 12px; }
.contact:last-child { margin-bottom: 0; }
.contact .tags { margin-left: 6px; }

.history .row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 10px 16px; }
.history .h-date { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 13px; }
.history .h-text { overflow-wrap: anywhere; }

/* Compare */
.cmp-tools { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.lookup { position: relative; flex: 1 1 320px; max-width: 480px; }
.lookup input { width: 100%; }
.lookup-results {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 10; margin: 0; padding: 0; list-style: none;
  background: var(--panel); border: 1px solid var(--gray); border-top: 0; max-height: 340px; overflow-y: auto;
}
.lookup-results li { border-bottom: 1px solid var(--rule); }
.lookup-results li:last-child { border-bottom: 0; }
.lookup-results a { display: block; padding: 9px 12px; text-decoration: none; }
.lookup-results a:hover, .lookup-results a:focus { background: #222; color: var(--white); }
.lookup-results .meta { display: block; }
.lookup-results .none { padding: 9px 12px; color: var(--gray); }

.cmp { background: var(--panel); min-width: calc(180px + var(--n) * 190px); }
.cmp-row {
  display: grid; grid-template-columns: 180px repeat(var(--n), minmax(180px, 1fr));
  border-bottom: 1px solid var(--rule);
}
.cmp > :last-child, .cmp > :last-child > .cmp-row:last-child { border-bottom: 0; }
.cmp-label, .cmp-cell { padding: 12px 14px; min-width: 0; }
.cmp-label { font-size: 13px; color: var(--soft); }
.cmp-span { grid-column: 1 / -1; }
.cmp-head .cmp-cell { padding-bottom: 14px; }
.cmp-name { font-weight: bold; text-decoration: none; overflow-wrap: anywhere; }
.cmp-remove { font-size: 12px; color: var(--gray); }
.cmp-note { font-size: 11px; color: var(--soft); margin-left: 6px; }
.cmp-domain > summary { list-style: none; }
.cmp-domain > summary::-webkit-details-marker { display: none; }
.cmp-domain > summary .cmp-label::before { content: "+"; display: inline-block; width: 14px; color: var(--gray); }
.cmp-domain[open] > summary .cmp-label::before { content: "-"; }
.cmp-domain > summary:hover .cmp-label { color: var(--white); }
.cmp-lines { background: #101010; }
.line-list { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.line-list li { padding: 3px 0; overflow-wrap: anywhere; }
.line-list li.only { color: var(--yellow); }
.line-list li.shared { color: var(--gray); }
.cmp-key { margin: 14px 0 0; font-size: 12px; color: var(--soft); }
.key-only { color: var(--yellow); }
.key-shared { color: var(--gray); }

@media (max-width: 760px) {
  .vendor-name { font-size: 22px; }
  .contacts { grid-template-columns: 1fr; }
  .history .row { grid-template-columns: 1fr; gap: 2px; }
  .table.lines .col-tags { white-space: normal; }
}
