/* --- 1. The Section Container --- */
#current {
    width: 90%;            /* Limit to 90% width as requested */
    max-width: 80em;       /* Cap it so it doesn't get absurdly wide */
    margin: 20px auto;     /* Center the whole section */
}

/* --- 2. The Table Wrapper (Surface) --- */
#current table {
    display: block;        /* Nuke display: table */
    width: 100%;
    background: #1e293b;   /* Dark slate background */
    border-radius: 12px;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* --- 3. The Responsive Grid Logic --- */
#current tbody {
    display: grid;
    /* This creates the 'side-by-side' columns when space allows */
    grid-template-columns: repeat(auto-fit, minmax(30em, 1fr));
    gap: 0 20px;           /* Horizontal gap between columns */
    padding: 10px;
}

/* --- 4. The Row as a Data Card --- */
#current tr {
    display: flex;         /* Use Flex to align the 4 items in a row */
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #334155;
    background: transparent;
    transition: background 0.2s ease;
}

#current tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* --- 5. Internal Column Alignment (The 4 Cells) --- */

#current th, #current td {
    white-space: nowrap; 
}

/* Label (Seeing, Wind, etc) */

#current th {
    font-weight: 700;
    color: #97a7ae;
    min-width: 11em;
    width: 10em;
    text-align: left;
}

/* Value (The Data) */
#current td:nth-child(2) {
    flex: 1;
    text-align: right;
    color: #38bdf8;        /* Bright Astro Blue */
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    min-width: 10em; 
    display: flex;
    justify-content: flex-end;
    overflow: visible;
}

/* Unit (%, m/s) */
#current td:nth-child(3) {
    width: 6.5em;
    min-width: 6.5em;
    color: #75859c;
    font-size: 0.9rem;
    padding-left: 8px;
    text-align: left;
}

/* Trend (Arrow) */
#current td:nth-child(4) {
    width: 2em;
    min-width: 2em;
    text-align: center;
    font-size: 1.1rem;
    color: #75859c;
}

#current tr:first-child td:nth-child(1) {
    color: #e2e8f0;        /* Brighter text for the timestamp label */
}

/* Remove bottom border from last items in columns */
#current tr:last-child {
    border-bottom: none;
}
