/* =========================================================================
   LAVACASCADE — css/components/table.css
   Data tables (the pricing table). On narrow screens the table scrolls
   sideways inside its own frame instead of breaking the page width.
   ========================================================================= */

/* =========================================
   FRAME (scrolls on small screens; focusable so keyboards can scroll it)
   ========================================= */
.table-frame {
    overflow-x: auto;
    background: var(--night-700);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.table-frame:focus-visible {
    outline-offset: 2px;
}

/* =========================================
   TABLE
   ========================================= */
.table {
    width: 100%;
    min-width: 680px;
    font-size: var(--fs-sm);
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.table caption {
    padding: var(--space-4) var(--space-5) 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-align: left;
}

.table th,
.table td {
    padding: 0.95rem var(--space-5);
    text-align: left;
    /* one line per cell: rows stay compact, and the frame scrolls sideways
       on small screens instead of stacking "12 / GB" */
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

.table thead th {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
}

.table tbody th {
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr {
    transition: background-color var(--dur-fast) var(--ease);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

/* the cheapest column per row */
.table .is-best {
    font-weight: 600;
    color: var(--lava-300);
}

.table .save-tag {
    margin-left: var(--space-1);
    font-weight: 600;
    color: var(--ember-400);
}

.table .is-soldout td,
.table .is-soldout th {
    color: var(--text-muted);
}
