/**
 * Public-facing styles
 */

.weather-data {
    display: inline-block;
    font-family: inherit;
}

/* Climate Table Styles */
.weather-climate-table-wrapper {
    max-width: 680px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.weather-climate-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.weather-climate-table thead {
    background: #4a2c2a;
    color: #fff;
}

.weather-climate-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.weather-climate-table tbody tr {
    border-bottom: 1px solid #e5e5e5;
}

.weather-climate-table tbody tr:last-child {
    border-bottom: none;
}

.weather-climate-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.weather-climate-table td {
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.weather-climate-table td.month-name {
    font-weight: 600;
    color: #4a2c2a;
}

.weather-climate-error {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .weather-climate-table-wrapper {
        margin: 20px -15px;
        padding: 0 15px;
        box-shadow: inset -20px 0 20px -20px rgba(0, 0, 0, 0.1);
    }

    .weather-climate-table {
        min-width: 550px;
        font-size: 13px;
    }

    .weather-climate-table th,
    .weather-climate-table td {
        padding: 10px 12px;
    }

    .weather-climate-table th:first-child,
    .weather-climate-table td:first-child {
        position: sticky;
        left: 0;
        background: #4a2c2a;
        color: #fff;
        z-index: 1;
    }

    .weather-climate-table tbody tr:nth-child(even) td:first-child {
        background: #5a3c3a;
    }

    .weather-climate-table tbody tr:nth-child(odd) td:first-child {
        background: #4a2c2a;
    }
}