.seedco-elnino-browser {
    margin-top: 2rem;
}

.seedco-elnino-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
}

.seedco-elnino-tabs .tab-btn {
    flex: 0 0 auto;
    border-color: #dce5df;
    color: #526158;
    background: #fff;
    cursor: pointer;
}

.seedco-elnino-tabs .tab-btn:hover,
.seedco-elnino-tabs .tab-btn:focus-visible,
.seedco-elnino-tabs .tab-btn.active {
    border-color: #009f4f;
    color: #007a3d !important;
    background: #f0faf4;
}

.seedco-elnino-tabs .tab-btn:focus-visible {
    outline: 3px solid rgba(0, 159, 79, 0.2);
    outline-offset: 2px;
}

.seedco-elnino-results-shell {
    position: relative;
    min-height: 180px;
    margin-top: 1.5rem;
}

.seedco-elnino-results {
    transition: opacity 160ms ease;
}

.seedco-elnino-results.is-loading {
    opacity: 0.35;
    pointer-events: none;
}

.seedco-elnino-table-card--spaced {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #dfe5e0;
}

.seedco-elnino-table-card__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.seedco-elnino-table-card__heading h3 {
    margin: 0.3rem 0 0;
    color: #12241a;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 750;
    line-height: 1.2;
}

.seedco-elnino-download {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border: 1px solid #cfdad3;
    border-radius: 0.5rem;
    color: #007a3d;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.seedco-elnino-download:hover,
.seedco-elnino-download:focus-visible {
    border-color: #009f4f;
    color: #fff;
    background: #009f4f;
}

.seedco-elnino-table-intro {
    max-width: 850px;
    margin: 0 0 1.25rem;
    color: #607067;
    font-size: 0.9rem;
    line-height: 1.7;
}

.seedco-elnino-table-intro > :first-child {
    margin-top: 0;
}

.seedco-elnino-table-intro > :last-child {
    margin-bottom: 0;
}

.seedco-elnino-table-wrap {
    overflow-x: auto;
    border: 1px solid #dfe5e0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 49, 27, 0.055);
    scrollbar-width: thin;
}

.seedco-elnino-table {
    width: 100%;
    border-collapse: collapse;
}

.seedco-elnino-table th {
    padding: 0.9rem 1rem;
    border-right: 1px solid #dfe5e0;
    border-bottom: 1px solid #dfe5e0;
    color: #526158;
    text-align: left;
    vertical-align: middle;
    background: #f0f5f1;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    line-height: 1.4;
    text-transform: uppercase;
}

.seedco-elnino-table td {
    padding: 0.9rem 1rem;
    border-right: 1px solid #edf0ee;
    border-bottom: 1px solid #edf0ee;
    color: #415047;
    font-size: 0.82rem;
    line-height: 1.55;
    vertical-align: top;
}

.seedco-elnino-table th:last-child,
.seedco-elnino-table td:last-child {
    border-right: 0;
}

.seedco-elnino-table tbody tr:nth-child(even) {
    background: #f8fbf9;
}

.seedco-elnino-table tbody tr:hover {
    background: #f0faf4;
}

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

.seedco-elnino-table tbody td:first-child {
    color: #173d29;
    font-weight: 700;
}

.seedco-elnino-table-note {
    margin: 1rem 0 0;
    color: #65736a;
    font-size: 0.78rem;
    line-height: 1.65;
}

.seedco-elnino-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
    padding-top: 4rem;
    color: #5f6d64;
    font-size: 0.875rem;
}

.seedco-elnino-loading[hidden] {
    display: none;
}

.seedco-elnino-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 159, 79, 0.2);
    border-top-color: #009f4f;
    border-radius: 50%;
    animation: seedco-elnino-spin 700ms linear infinite;
}

@keyframes seedco-elnino-spin {
    to {
        transform: rotate(360deg);
    }
}

.seedco-elnino-table-empty,
.seedco-elnino-table-error {
    padding: 2rem;
    border: 1px dashed #cbd6ce;
    border-radius: 1rem;
    color: #65736a;
    text-align: center;
    background: #fff;
    font-size: 0.9rem;
}

.seedco-elnino-table-error {
    border-color: #e8b7bc;
    color: #9f2634;
    background: #fff7f8;
}

@media (max-width: 639px) {
    .seedco-elnino-tabs {
        flex-wrap: nowrap;
        padding-bottom: 0.75rem;
    }

    .seedco-elnino-table-card__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .seedco-elnino-download {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seedco-elnino-results,
    .seedco-elnino-download {
        transition: none;
    }

    .seedco-elnino-spinner {
        animation: none;
    }
}
