/* Calorie hub tables. Uses the variables in styles.css. */

.article-body h3 {
    margin: 1.35rem 0 0.55rem;
    font-size: 1.12rem;
}

.meal-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0.35rem 0 1.35rem;
    border: 1px solid var(--line);
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}

.meal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.meal-table caption {
    caption-side: bottom;
    padding: 0.7rem 0.8rem 0.8rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.5;
}

.meal-table th,
.meal-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    color: var(--muted);
}

.meal-table th {
    color: var(--ink);
    font-weight: 600;
    background: var(--bg-elevated);
}

.meal-table td:first-child,
.meal-table th:first-child {
    min-width: 8.5rem;
}

.meal-table td:not(:first-child),
.meal-table th:not(:first-child) {
    text-align: right;
    white-space: nowrap;
}

.meal-table a {
    color: var(--accent);
    font-weight: 600;
}

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