/* List screens on a wide desktop: one row per item in a table that uses the content width (D-131).
   From 901px a table with a sticky head, hairline rows, row hover and tabular figures; at 900px and under each
   row is a stacked card (company, what and date, the plain title, the figures, the links). */

.hub .lt-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin: 0 0 var(--space-5);
}

.hub .lt-filter-note {
    font-size: var(--text-small);
    color: var(--muted);
}

.hub .lt-wrap {
    width: 100%;
    border-top: 1px solid var(--rule);
}

.hub .lt {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.hub .lt thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 20px 10px 0;
    background: var(--paper);
    box-shadow: inset 0 -1px 0 var(--line-strong);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    white-space: nowrap;
}

.hub .lt td {
    padding: 14px 20px 14px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.4;
}

.hub .lt th:first-child,
.hub .lt td:first-child {
    padding-left: 8px;
}

.hub .lt th:last-child,
.hub .lt td:last-child {
    padding-right: 8px;
}

.hub .lt tbody tr:hover td {
    background: var(--line-soft);
}

.hub .lt .lt-num {
    text-align: right;
    white-space: nowrap;
}

.hub .lt .lt-c-date {
    width: 7.5rem;
    white-space: nowrap;
    color: var(--ink-2);
}

.hub .lt .lt-c-company {
    width: 24%;
}

.hub .lt .hub-company {
    font-weight: 600;
}

.hub .lt .lt-what {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.hub .lt a.lt-what:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hub .lt .lt-sub {
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--muted);
}

.hub .lt .lt-title {
    display: none;
}

.hub .lt .lt-line {
    margin: 0;
    font-family: var(--font-sans);
    font-size: inherit;
    font-weight: 500;
    line-height: 1.4;
}

.hub .lt .lt-line a {
    color: var(--ink);
    text-decoration: none;
}

.hub .lt .lt-line a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hub .lt .lt-c-form {
    white-space: nowrap;
}

.hub .lt .screen-row-facts,
.hub .lt .screen-buyers {
    margin: 0;
    font-size: var(--text-small);
}

.hub .lt .screen-row-sector {
    display: block;
    font-size: var(--text-small);
    color: var(--muted);
}

.hub .lt--screen .lt-c-company {
    width: 22%;
}

.hub .lt--screen .lt-c-event {
    width: 40%;
}

.hub .lt--screen:has(.lt-c-details) .lt-c-event {
    width: 26%;
}

.hub .lt--screen .lt-c-details {
    width: 30%;
}

.hub .lt .screen-buyers {
    padding: 0;
    margin-top: 6px;
    list-style: none;
}

.hub .lt .screen-buyers li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    border: 0;
}

.hub .lt .lt-c-links {
    width: 1%;
    white-space: nowrap;
}

.hub .lt .lt-term {
    display: block;
    white-space: nowrap;
}

.hub .lt .lt-none {
    color: var(--faint);
}

.hub .lt .lt-linkset {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px 12px;
    font-size: var(--text-small);
    white-space: nowrap;
}

.hub .lt .lt-linkset a {
    color: var(--accent);
}

@media (max-width: 1100px) {
    .hub .lt .lt-linkset {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .hub .lt-wrap {
        border-top: 1px solid var(--rule);
    }

    .hub .lt,
    .hub .lt tbody {
        display: block;
    }

    .hub .lt thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .hub .lt tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: 'company date' 'form form' 'event event' 'details details' 'links links';
        gap: 8px 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
    }

    .hub .lt tbody tr:hover td {
        background: none;
    }

    .hub .lt tbody td[data-field] {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        text-align: left;
    }

    .hub .lt td[data-field='date'] { grid-area: date; text-align: right; }
    .hub .lt td[data-field='company'] { grid-area: company; }
    .hub .lt td[data-field='what'] { grid-area: what; }
    .hub .lt td[data-field='amount'] { grid-area: amount; }
    .hub .lt td[data-field='dilution'] { grid-area: dilution; text-align: right; }
    .hub .lt td[data-field='terms'] { grid-area: terms; }
    .hub .lt td[data-field='links'] { grid-area: links; }
    .hub .lt td[data-field='form'] { grid-area: form; }
    .hub .lt td[data-field='event'] { grid-area: event; }
    .hub .lt td[data-field='details'] { grid-area: details; }

    .hub .lt--offerings tbody tr {
        grid-template-areas: 'company date' 'what what' 'amount dilution' 'terms terms' 'links links';
    }

    .hub .lt .lt-line {
        font-family: var(--font-serif);
        font-size: var(--text-item);
        line-height: 1.25;
    }

    .hub .lt td[data-field='amount']::before,
    .hub .lt td[data-field='dilution']::before {
        content: attr(data-label) ' ';
        font-size: var(--text-small);
        color: var(--muted);
    }

    .hub .lt td[data-field='terms'] .lt-term {
        display: inline;
        white-space: normal;
    }

    .hub .lt td[data-field='terms'] .lt-term + .lt-term::before {
        content: ', ';
    }

    .hub .lt tbody td[data-field]:has(> .lt-none) {
        display: none;
    }

    .hub .lt .lt-title {
        display: block;
        margin: 6px 0 0;
        font-family: var(--font-serif);
        font-size: var(--text-item);
        font-weight: 500;
        line-height: 1.25;
    }

    .hub .lt .lt-title a {
        color: var(--ink);
        text-decoration: none;
    }

    .hub .lt .lt-linkset {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
