/* table-sort.css — shared sortable-table header affordance for <table data-sortable>.
   Clickable headers with a direction arrow on the active column; a faint arrow
   appears on hover to signal sortability. Neutral, token-driven, no colour. */
table[data-sortable] thead th {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
table[data-sortable] thead th[data-nosort] { cursor: default; }
table[data-sortable] thead th:not([data-nosort])::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0;
    transition: opacity 0.1s;
}
table[data-sortable] thead th:not([data-nosort]):hover { color: var(--ink); }
table[data-sortable] thead th:not([data-nosort]):hover::after { opacity: 0.3; }
table[data-sortable] thead th.sort-asc::after {
    border-top: none;
    border-bottom: 4px solid currentColor;
    opacity: 0.9;
}
table[data-sortable] thead th.sort-desc::after { opacity: 0.9; }
