/* Container */
#nws-alerts-ajax-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 20px 0;
    /* Force height to auto to prevent clipping */
    height: auto !important; 
    overflow: visible !important;
}

/* Alert Card */
.nws-alert-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 25px;
    background: #fff;
    border-left: 10px solid #ccc; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Severity Colors */
.severity-extreme { border-left-color: #d9534f; background-color: #fff9f9; }
.severity-severe  { border-left-color: #f0ad4e; background-color: #fffaf4; }
.severity-moderate{ border-left-color: #5bc0de; background-color: #f7fcfe; }
.severity-minor   { border-left-color: #5cb85c; background-color: #f9fff9; }

/* Headline & Icon */
.nws-headline {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.nws-icon {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Metadata Grid */
.nws-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0,0,0,0.04);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #50575e;
}

/* Text & Toggles */
.nws-description-wrap { font-size: 1rem; line-height: 1.6; color: #3c434a; }

.nws-read-more-btn {
    display: inline-block;
    margin: 15px 0;
    padding: 8px 16px;
    background-color: #2271b1; 
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s;
}
.nws-read-more-btn:hover { background-color: #135e96; }

.nws-desc-hidden {
    border-top: 1px dashed #dcdcde;
    padding-top: 15px;
    margin-top: 5px;
}

/* Instructions & Footer */
.nws-instruction-box {
    margin-top: 25px;
    padding: 18px;
    background: #fcf9e8;
    border: 1px solid #f5e6ab;
    border-radius: 6px;
    color: #514105;
}

.nws-card-footer {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    font-style: italic;
}

/* Messages */
.nws-no-alerts {
    padding: 30px;
    background: #f0f6fb;
    border: 1px solid #c8d7e1;
    color: #2c3338;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
}
.nws-error-message {
    padding: 20px;
    background: #fff5f5;
    border: 1px solid #e1c8c8;
    color: #cc0000;
    border-radius: 8px;
    text-align: center;
}