/* jsd.html -- clade deviation from the domain. Builds on style.css's ra-* shell
   and compare.css's cmp-* cards, tiles and table. */

.jsd-positions { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.jsd-shell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 10px;
    background: #fafbfc;
}
.jsd-shell[hidden] { display: none; }
.jsd-shell-row { display: flex; align-items: center; gap: 8px; }
.jsd-shell-row .ra-label { flex: none; }
.jsd-shell-row .ra-input { width: 64px; height: 30px; }
.jsd-fill { align-self: flex-start; white-space: nowrap; }
.jsd-adv-num { width: 64px; flex: none; }
.jsd-filter { height: 28px; width: 180px; font-size: 12px; }

.jsd-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.jsd-headline h3 { font-size: 16px; }
.jsd-headline .cmp-note { font-size: 12px; }
.jsd-top-name { overflow-wrap: anywhere; }
.jsd-top-name i { font-style: italic; }
.jsd-domain-dist { margin-top: 12px; font-size: 12px; color: #3d4450; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jsd-domain-dist svg { flex: none; }
.jsd-positions-used {
    margin: 12px 0 0;
    font-size: 12px;
    color: #5b6470;
    line-height: 1.5;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    word-break: break-word;
}

.cmp-table td.jsd-name { white-space: normal; min-width: 160px; }
.cmp-table td.jsd-name i { font-style: italic; }
.cmp-table tr.jsd-hit td { background: #fff8e6; }
.jsd-bar-cell { display: inline-flex; align-items: center; gap: 8px; }
.jsd-bar { display: inline-block; width: 120px; height: 8px; background: #eef0f3; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.jsd-bar > span { display: block; height: 100%; background: #6d4bc4; border-radius: 4px; }
.jsd-link { color: #1a56db; text-decoration: none; font-size: 11px; }
.jsd-link:hover { text-decoration: underline; }
.jsd-foot { margin: 10px 0 0; max-width: 90ch; }
.ra-advanced-body .cmp-advanced-row { padding-top: 0; }
