/* Company Comparisons. Prefix cmp-. */
.cmp-top { align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 32px; margin-bottom: 12px; }
.cmp-line { margin-left: auto; font-size: 11.5px; color: var(--mut); }
.cmp-add { display: flex; align-items: center; gap: 8px; }
.cmp-in { width: 240px; max-width: 100%; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-hover); background: transparent; color: var(--tx); font-size: 12.5px; }
.cmp-in:focus { outline: 0; border-style: solid; border-color: rgba(59, 130, 246, 0.6); }
.cmp-in::placeholder { color: var(--mut); }
.cmp-note { margin-bottom: 10px; }
.cmp-wrap { max-width: 100%; }
.cmp-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: calc(190px + var(--n) * 150px); }
.cmp-tbl th, .cmp-tbl td { border-top: 1px solid var(--line-3); padding: 0 14px; text-align: right; white-space: nowrap; }
.cmp-tbl thead th { border-top: 0; border-bottom: 1px solid var(--line); vertical-align: bottom; padding-top: 9px; padding-bottom: 9px; position: relative; }
.cmp-tbl tbody th[scope="row"], .cmp-corner { position: sticky; left: 0; z-index: 2; background: var(--panel); text-align: left; font-weight: 400; color: var(--tx-2); min-width: 190px; width: 190px; border-right: 1px solid var(--line-3); }
.cmp-corner { font-size: 11.5px; color: var(--mut); font-weight: 400; vertical-align: bottom; }
.cmp-h a { display: block; color: var(--tx); }
.cmp-h b { display: block; font-size: 13px; }
.cmp-h .cut { display: block; max-width: 150px; margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--mut); }
.cmp-h:hover b { text-decoration: underline; }
.cmp-x { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 14px; line-height: 1; color: var(--dim); }
.cmp-x:hover { color: var(--tx); background: var(--line-2); }
.cmp-tbl td { height: 31px; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--tx-2); }
.cmp-tbl td.cmp-t { font-family: var(--sans); font-size: 12px; }
.cmp-g th { height: 32px; padding-top: 8px; border-top: 1px solid var(--line); background: var(--panel); text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); position: sticky; left: 0; }
.cmp-tbl tbody tr:first-child.cmp-g th { border-top: 0; }
.cmp-gc { background: rgba(20, 184, 166, var(--h, 0)); }
.cmp-key td { font-weight: 600; color: var(--tx); font-size: 13px; }
.cmp-fig td { height: 44px; line-height: 1.25; }
.cmp-v { display: block; color: var(--tx); }
.cmp-d { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--mut); }
.cmp-y { margin-left: 6px; font-style: normal; font-family: var(--sans); font-size: 10px; color: var(--mut); }
.cmp-tbl .est { margin-left: 6px; }
.cmp-tbl tbody tr:not(.cmp-g):hover td, .cmp-tbl tbody tr:not(.cmp-g):hover th { background-color: rgba(148, 163, 184, 0.04); }
.cmp-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; flex-wrap: wrap; }
.cmp-foot .note { max-width: 78ch; flex: 1 1 320px; }
.cmp-est { padding: 0 14px; margin-bottom: 12px; }
.cmp-est summary { height: 40px; display: flex; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.cmp-est ul { list-style: none; margin: 0; padding: 0 0 8px; }
.cmp-est li { padding: 10px 0; border-top: 1px solid var(--line-3); font-size: 12.5px; }
.cmp-est li p { margin: 4px 0 0; max-width: 90ch; color: var(--mut); line-height: 1.5; }
.cmp-one { padding: 16px 18px; }
.cmp-one p { margin: 6px 0 0; max-width: 70ch; color: var(--tx-3); line-height: 1.55; }
.cmp-chips, .cmp-sets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--tx-3); font-size: 12px; }
.cmp-chip:hover { border-color: var(--line-hover); color: var(--tx); }
.cmp-chip b { color: var(--tx); }
.cmp-chip i { font-style: normal; font-size: 10.5px; color: var(--si-tx); }
.cmp-set { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--tx-3); font-size: 12px; }
.cmp-set:hover { border-color: var(--line-hover); }
.cmp-set b { color: var(--tx); font-size: 14px; }
@media (max-width: 560px) { .cmp-line { margin-left: 0; flex-basis: 100%; } .cmp-tbl { min-width: calc(130px + var(--n) * 130px); } .cmp-tbl tbody th[scope="row"], .cmp-corner { min-width: 130px; width: 130px; padding: 0 8px; white-space: normal; font-size: 11.5px; } }
/* ruling 178: the line wraps (.h-sec span holds its words on one line, which cut it off at 390 px) */
.h-sec .cmp-line { white-space: normal; }
/* ruling 178: the page's bar lists the companies on file under it, a pick adds the column (ruling 157) */
.cmp-add { position: relative; }
.cmp-hits { position: absolute; z-index: 30; top: 36px; right: 0; width: min(440px, calc(100vw - 32px)); max-height: min(60vh, 420px); overflow: hidden auto; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.cmp-hits .empty { padding: 12px 14px; }
.cmp-hit { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border-top: 1px solid var(--line-3); color: var(--tx); font-size: 13px; }
.cmp-hit:first-child { border-top: 0; }
.cmp-hit:hover, .cmp-hit[aria-selected="true"] { background: rgba(148, 163, 184, 0.08); }
.cmp-hit b { flex: none; width: 58px; font-size: 12.5px; font-weight: 600; }
.cmp-hit .n { flex: 1; min-width: 0; }
.cmp-hit .sub { flex: 0 1 34%; min-width: 0; text-align: right; font-size: 11.5px; color: var(--mut); }
.cmp-hit .to { flex: none; font-size: 11.5px; color: var(--si-tx); white-space: nowrap; }
.cmp-hit.ask .n { color: var(--tx-3); }
/* while a comparison is read the page as it was dims, so a tap is seen to have been taken */
#view[aria-busy="true"] > :not(.cmp-top) { opacity: 0.45; transition: opacity 0.15s; }
@media (max-width: 560px) { .cmp-add { flex: 1 1 100%; } .cmp-in { flex: 1; width: auto; min-width: 0; height: 36px; font-size: 16px; } .cmp-hits { left: 0; width: auto; top: 42px; } .cmp-hit .sub { display: none; } }
