/* Lightweight stock lists on /market (kursliste) and /companies (A–Å). Shared --ak-* theme tokens. */

.dir-section {
    margin-top: clamp(2rem, 5vw, 3rem);
}

.dir-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-bottom: 1rem;
}

.dir-head h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--ak-text);
}

.dir-head p,
.dir-intro {
    margin: 0.4rem 0 0;
    max-width: 72ch;
    color: var(--ak-text-soft);
    line-height: 1.6;
}

.dir-intro + .dir-intro {
    margin-top: 0.6rem;
}

.dir-table-wrap {
    background: var(--ak-surface-solid);
    border: 1px solid var(--ak-border);
    border-radius: 12px;
    overflow: hidden;
}

.dir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dir-table th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ak-text-muted);
    border-bottom: 1px solid var(--ak-border);
    background: var(--ak-surface-muted);
    white-space: nowrap;
}

.dir-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--ak-border);
    color: var(--ak-text);
    vertical-align: middle;
}

.dir-table tbody tr:last-child td {
    border-bottom: 0;
}

.dir-table tbody tr:hover td {
    background: var(--ak-surface-soft);
}

.dir-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dir-name a {
    display: flex;
    flex-direction: column;
    color: var(--ak-text);
    text-decoration: none;
    line-height: 1.3;
}

.dir-name a strong {
    font-weight: 700;
}

.dir-name a span {
    font-size: 0.78rem;
    color: var(--ak-text-muted);
}

.dir-name a:hover strong {
    color: var(--ak-brand);
}

.dir-muted {
    color: var(--ak-text-muted);
}

.dir-up { color: var(--ak-positive); }
.dir-down { color: var(--ak-negative); }

.dir-letter-row td {
    padding: 0.9rem 1rem 0.4rem;
    font-family: 'Sora', 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ak-text-muted);
    background: transparent !important;
}

/* Suggestions dropdown for the /market and /companies filter fields. */
.dir-suggest-root {
    position: relative;
}

.dir-suggest-root .search-suggestions {
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
}

@media (max-width: 760px) {
    .dir-table .dir-hide-sm {
        display: none;
    }

    .dir-table th,
    .dir-table td {
        padding-inline: 0.7rem;
    }
}

/* Follow the directory header's own alignment (centred on /companies). */
.directory-header .dir-intro {
    margin-inline: auto;
    text-align: inherit;
}
