/* =========================================================
   WEATHER ALERTS PAGE
   GahannaWeather.com
   ========================================================= */

.wx-alerts-container {

    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 30px auto 40px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    color: #d5d9de;

}


/* =========================================================
   WEATHER ALERT CARDS
   ========================================================= */

.wx-local-alerts,
.wx-national-alerts {

    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #242a31,
        #191d23
    );

    border: 1px solid #3c444c;
    border-radius: 12px;

    overflow: hidden;

}


.wx-alerts-container .card-header {

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 15px 20px;

    color: #d6b56c;

    border-bottom: 1px solid #3c444c;

}


.wx-alerts-content,
.wx-national-content {

    padding: 20px;
    box-sizing: border-box;

}

/* =========================================================
   LOCAL NWS WEATHER ALERTS
   ========================================================= */

.wx-local-alerts table {

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    background: transparent !important;
    color: #d5d9de !important;

    border-collapse: collapse;

}


.wx-local-alerts td,
.wx-local-alerts th {

    background-color: transparent !important;
    color: #d5d9de !important;

    padding: 8px;

}


.wx-local-alerts h2,
.wx-local-alerts h3,
.wx-local-alerts h4 {

    color: #d6b56c !important;

    letter-spacing: 1px;

}


.wx-local-alerts a {

    color: #e8c77e !important;

    text-decoration: none;

}


.wx-local-alerts a:hover {

    color: #ffffff !important;

    text-decoration: underline;

}


.wx-local-alerts hr {

    border: 0;
    border-top: 1px solid #3c444c;

    margin: 12px 0;

}

/* =========================================================
   NATIONAL WEATHER ADVISORY MAP
   ========================================================= */

.wx-national-content {

    text-align: center;

    overflow-x: auto;

}


.wx-national-content h1,
.wx-national-content h2,
.wx-national-content h3 {

    color: #d6b56c !important;

    letter-spacing: 1px;

    margin: 10px 0 16px;

}


.wx-national-content p {

    color: #d5d9de;

    line-height: 1.6;

}


.wx-national-content table {

    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    color: #d5d9de;

}


.wx-national-content td,
.wx-national-content th,
.wx-national-content font {

    color: #d5d9de !important;

}


.wx-national-content a {

    color: #d6b56c !important;

    text-decoration: none;

}


.wx-national-content a:hover {

    color: #ffffff !important;

    text-decoration: underline;

}


.wx-national-content hr {

    border: 0;
    border-top: 1px solid #3c444c;

    margin: 12px auto;

}

/* =========================================================
   NATIONAL MAP IMAGE
   ========================================================= */

.wx-national-content img[usemap] {

    display: block;

    margin: 15px auto;

    max-width: none;

    border: 1px solid #3c444c;
    border-radius: 6px;

}


.wx-national-content img:not([usemap]) {

    max-width: 100%;
    height: auto;

}

/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media screen and (max-width: 768px) {

    .wx-alerts-container {

        width: calc(100% - 20px);
        margin: 20px auto;
        gap: 16px;

    }

    .wx-alerts-content,
    .wx-national-content {

        padding: 12px;

    }

    .wx-alerts-container .card-header {

        padding: 12px 15px;

    }

    .wx-national-content h2,
    .wx-national-content h3 {

        font-size: 18px;

    }

}
/* =========================================================
   NWS LOCAL WEATHER ALERT SUMMARY
   ========================================================= */

.nws-summary {

    width: 100%;
    max-width: 900px;
    margin: 0 auto;

}


/* NOAA HEADER */

.nws-summary-header {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    padding: 15px 20px 20px;

}


.nws-logo {

    width: 65px;
    height: auto;

    opacity: 1;
    filter: none;

}

.nws-summary-heading h3 {

    margin: 0 0 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #d6b56c;

}


.nws-summary-heading span {

    font-size: 13px;
    color: #a5adb6;

}


/* LAST UPDATE */

.nws-summary-updated {

    text-align: center;
    font-size: 12px;
    color: #a5adb6;

    padding: 12px;
    margin-bottom: 18px;

    border-top: 1px solid #3c444c;
    border-bottom: 1px solid #3c444c;

}


.nws-summary-updated i {

    color: #d6b56c;
    margin-right: 5px;

}


/* ALERT LOCATIONS */

.nws-alert-location {

    margin-bottom: 18px;

}


.nws-alert-location:last-child {

    margin-bottom: 0;

}


.nws-location-name {

    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #d6b56c;

    margin-bottom: 10px;

}


/* INDIVIDUAL ALERT */

.nws-alert-item {

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid #3c444c;
    border-left: 4px solid #d6b56c;
    border-radius: 8px;

    padding: 14px 18px;
    margin-bottom: 10px;

}


.nws-alert-title {

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 16px;
    font-weight: 500;

}


.nws-alert-title img {

    width: 14px;
    height: 14px;
    flex-shrink: 0;

}


.nws-alert-title a {

    color: #e8c77e !important;
    text-decoration: none;

}


.nws-alert-title a:hover {

    color: #ffffff !important;
    text-decoration: underline;

}


.nws-alert-expires {

    margin-top: 7px;
    padding-left: 24px;

    color: #a5adb6;
    font-size: 13px;

}


/* ALERT SEVERITY INDICATORS */

.nws-severity-extreme {
    border-left-color: #ff3b30;
}

.nws-severity-severe {
    border-left-color: #ff6666;
}

.nws-severity-moderate {
    border-left-color: #eb9a49;
}

.nws-severity-minor {
    border-left-color: #d6b56c;
}

.nws-severity-unknown {
    border-left-color: #858585;
}


/* NO ACTIVE ALERTS */

.nws-no-alerts {

    border-left-color: #70a9a1;
    background: rgba(112, 169, 161, 0.06);

}


.wx-local-alerts .nws-no-alerts a,
.nws-no-alerts i {

    color: #70a9a1 !important;

}


/* MOBILE */

@media screen and (max-width: 600px) {

    .nws-summary-header {
        gap: 12px;
        padding: 10px 0 15px;
    }

    .nws-logo {
        width: 48px;
    }

    .nws-summary-heading h3 {
        font-size: 18px;
    }

    .nws-summary-heading span {
        font-size: 11px;
    }

    .nws-alert-item {
        padding: 12px;
    }

}
/* =========================================================
   NATIONAL WEATHER ADVISORY MAP
   ========================================================= */

.nws-national-map {

    width: 100%;
    max-width: 1050px;
    margin: 0 auto;

}


.nws-map-heading {

    text-align: center;
    margin-bottom: 20px;

}


.nws-map-heading h3 {

    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;

    color: #d6b56c;

    margin: 0 0 12px;

}


.nws-map-update {

    font-size: 13px;
    color: #70a9a1;

    margin-bottom: 6px;

}


.nws-map-update i {

    margin-right: 5px;

}


.nws-map-subtitle {

    font-size: 12px;
    color: #a5adb6;

}

/* =========================================================
   RESPONSIVE NATIONAL MAP CONTAINER
   ========================================================= */

.nws-map-scroll {

    width: 100%;
    overflow: hidden;

    padding-bottom: 5px;

}


.nws-national-map .USMap {

    position: relative;

    width: 100%;
    max-width: 800px;

    aspect-ratio: 800 / 500;

    height: auto;

    margin: 0 auto;
    padding: 0;

    line-height: 0;

}


/* =========================================================
   CONTINENTAL UNITED STATES
   ========================================================= */

.nws-national-map #us {

    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 6px;

}


/* =========================================================
   ALASKA AND HAWAII INSETS
   ========================================================= */

.nws-national-map #alaska,
.nws-national-map #hawaii {

    position: absolute;

    top: 76%;
    bottom: auto;
    right: auto;

    float: none;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    height: auto;
    max-width: none;

    z-index: 2;

}

/* ALASKA */

.nws-national-map #alaska {

    left: 0;

    width: 16.25%;

    aspect-ratio: 130 / 110;

}


/* HAWAII */

.nws-national-map #hawaii {

    left: 16.5%;

    width: 13.625%;

    aspect-ratio: 109 / 110;

}
/* =========================================================
   US TERRITORY LINKS
   ========================================================= */

.nws-national-map #territorylinks {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    padding: 18px 0;
    margin-bottom: 20px;

    border-bottom: 1px solid #3c444c;

}


.nws-national-map #territorylinks a {

    display: inline-block;

    background: rgba(214, 181, 108, 0.06);

    border: 1px solid #4b4940;
    border-radius: 6px;

    padding: 8px 15px;

    font-size: 13px;
    color: #d6b56c !important;

    text-decoration: none;

    transition: background 0.2s ease,
                border-color 0.2s ease;

}


.nws-national-map #territorylinks a:hover {

    background: rgba(214, 181, 108, 0.15);
    border-color: #d6b56c;

}

/* =========================================================
   NATIONAL WEATHER ADVISORY LEGEND
   ========================================================= */

.nws-map-legend {

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid #3c444c;
    border-radius: 8px;

    padding: 18px;
    margin: 20px auto;

}


.nws-map-legend h3 {

    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;

    color: #d6b56c;

    margin: 0 0 18px;

    text-align: left;

}


.nws-map-legend h3 i {

    margin-right: 7px;

}


/* FOUR COLUMN LEGEND GRID */

.nws-map-legend #wwa {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px 18px;

    width: 100%;
    margin: 0;
    padding: 0;

    overflow: visible;

    box-sizing: border-box;

}


/* RESET ORIGINAL FLOATING COLUMNS */

.nws-map-legend #wwaleft,
.nws-map-legend #wwacenter_l,
.nws-map-legend #wwacenter_r,
.nws-map-legend #wwaright {

    float: none;

    width: auto;
    min-width: 0;

    margin: 0;
    padding: 0;

}


.nws-map-legend ul {

    list-style: none;

    margin: 0;
    padding: 0;

}


.nws-map-legend #wwa li {

    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0;
    padding: 5px 0;

    font-size: 12px;
    line-height: 1.4;

    color: #d5d9de;

    text-align: left;

}


/* LEGEND COLOR SWATCH */

.nws-map-legend .wwabox {

    display: inline-block;

    width: 13px;
    height: 13px;

    flex-shrink: 0;
    float: none;

    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;

}


/* LEGEND LINKS */

.nws-map-legend #wwa a {

    color: #d5d9de !important;

    text-decoration: none;

}


.nws-map-legend #wwa a:hover {

    color: #d6b56c !important;

    text-decoration: underline;

}


.nws-legend-unavailable {

    color: #a5adb6;
    font-size: 13px;

}

/* =========================================================
   MAP INFORMATION AND ATTRIBUTION
   ========================================================= */

.nws-map-information {

    text-align: center;

    padding: 15px 10px 5px;

    border-top: 1px solid #3c444c;

}


.nws-map-information p {

    color: #a5adb6;

    font-size: 12px;
    line-height: 1.7;

    margin: 6px 0;

}


.nws-map-information i {

    color: #d6b56c;
    margin-right: 5px;

}


.nws-map-information a {

    color: #d6b56c !important;

    text-decoration: none;

}


.nws-map-information a:hover {

    text-decoration: underline;

}

/* =========================================================
   RESPONSIVE NATIONAL MAP LAYOUT
   ========================================================= */

@media screen and (max-width: 900px) {

    .nws-map-legend #wwa {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}


@media screen and (max-width: 500px) {

    .nws-map-heading h3 {

        font-size: 19px;

    }

    .nws-map-legend {

        padding: 12px;

    }

    .nws-map-legend #wwa {

        grid-template-columns: 1fr;

        gap: 0;

    }

    .nws-map-legend #wwa li {

        font-size: 12px;

    }

    .nws-national-map #territorylinks a {

        font-size: 12px;
        padding: 7px 10px;

    }

}

/* =========================================================
   WEATHER ALERT TEST MODE
   ========================================================= */

.nws-test-banner {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0 0 20px;
    padding: 12px 15px;

    background: rgba(255, 149, 0, 0.12);

    border: 1px solid #ff9500;
    border-radius: 8px;

    color: #ffb347;

    font-family: 'Oswald', sans-serif;
    font-size: 16px;

    letter-spacing: 1px;

    text-align: center;

}


.nws-detail-title i {

    color: var(--alert-color, #d6b56c);

    font-size: 22px;

}

