.nutrients-tables {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-left: 0;   /* left-align the table */
    max-width: 500px;      /* adjust width */
}

.nutrients-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    color: #fff;
}
.nutrients-table th, .nutrients-table td {
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    text-align: left;
}
.nutrients-table th { background: #222; }

.field-with-help {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.help-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: help;
    position: relative;
}

.help-tooltip::after {
    content: attr(title);
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.help-tooltip:hover::after {
    visibility: visible;
    opacity: 1;
}
