/* tech_stack styles */

/* ==========================================================================
m-ts — Tech stack table
Built on theme: l-section, c-section-head, c-badge, c-h2, c-lead,
c-table-wrap, c-table (incl. its row-cascade reveal). Only the soft
section wash, row-header column, zebra tint and dot separators live here.
========================================================================== */
.m-ts {
    background:
        radial-gradient(55% 60% at 0% 0%, rgba(254, 239, 234, .9) 0%, transparent 70%),
        radial-gradient(55% 60% at 100% 100%, rgba(231, 242, 253, .9) 0%, transparent 70%),
        #f6f5f7;
}

.m-ts__badge-ico {
    color: var(--c-primary);
    flex: none;
}

/* Table shell: white card, soft border, larger radius */
.m-ts .m-ts__wrap {
    margin-top: 8px;
    background: #fff;
    border-color: var(--c-border-cool);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-card-sm);
}

.m-ts .m-ts__table {
    min-width: 0;
    font-size: var(--fs-md);
}

.m-ts .m-ts__table th,
.m-ts .m-ts__table td {
    padding: 26px 28px;
    vertical-align: middle;
    border-bottom-color: var(--c-border-cool);
}

.m-ts .m-ts__table th {
    width: 20%;
    min-width: 220px;
    font-weight: var(--fw-semibold);
    color: var(--c-ink);
    text-align: left;
}

.m-ts .m-ts__table td {
    color: var(--c-ink-2);
}

.m-ts .m-ts__table tbody tr:last-child>* {
    border-bottom: 0;
}

/* Zebra: tint the th as well as the td */
.m-ts .m-ts__table tbody tr:nth-child(even)>* {
    background: rgba(231, 242, 253, .65);
}

.m-ts .m-ts__table tbody tr:hover>* {
    background: #f3f8fe;
}

/* Inline list with middot separators */
.m-ts .m-ts__list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-ts__list li:not(:last-child)::after {
    /* trailing dot: wrapped lines never start with one */
    content: "·";
    margin: 0 6px;
    color: var(--c-muted);
}

.m-ts__link {
    color: var(--c-primary-ui);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.m-ts__link:hover {
    color: var(--c-primary);
}

/* Tablet: tighter cells */
@container wrap (max-width: 900px) {

    .m-ts .m-ts__table th,
    .m-ts .m-ts__table td {
        padding: 20px;
    }

    .m-ts .m-ts__table th {
        min-width: 170px;
    }
}

/* Mobile: stack category above its items (no sideways scroll) */
@container wrap (max-width: 600px) {

    .m-ts .m-ts__table,
    .m-ts .m-ts__table tbody,
    .m-ts .m-ts__table tr,
    .m-ts .m-ts__table th,
    .m-ts .m-ts__table td {
        display: block;
        width: auto;
        min-width: 0;
    }

    .m-ts .m-ts__table th {
        padding: 18px 18px 6px;
        border-bottom: 0;
        font-size: var(--fs-base);
    }

    .m-ts .m-ts__table td {
        padding: 0 18px 18px;
        font-size: var(--fs-base);
    }
}
