/* ENC Weather Site Data - Eastern NC Winds
   ========================================================================== */

.encsd-winds-page .enc-entry-header {
    display: none;
}

.encsd-winds-page .enc-content-shell {
    padding-top: 26px;
}

.encsd-winds {
    --winds-navy: #071f34;
    --winds-blue: #009cda;
    --winds-cyan: #55d5ff;
    --winds-line: #d7e3e9;
    --winds-text: #10283b;
    --winds-muted: #647c8d;
    --winds-shadow: 0 15px 34px rgba(14, 43, 64, 0.075);

    color: var(--winds-text);
}

.encsd-winds *,
.encsd-winds *::before,
.encsd-winds *::after {
    box-sizing: border-box;
}

.encsd-winds-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
    gap: 25px;
    align-items: end;
    padding: clamp(28px, 4vw, 43px);
    background:
        radial-gradient(
            circle at 84% -15%,
            rgba(74, 214, 255, 0.24),
            transparent 36%
        ),
        linear-gradient(
            130deg,
            #061a2b,
            #092e4b 58%,
            #0b4569
        );
    color: #fff;
    border-radius: 18px;
    box-shadow: var(--winds-shadow);
}

.encsd-winds-eyebrow {
    display: block;
    color: #55d5ff;
    font-size: 10px;
    font-weight: 860;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.encsd-winds-hero h1 {
    margin: 6px 0 0;
    color: #fff;
    font-size: clamp(40px, 6vw, 61px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.encsd-winds-hero p {
    max-width: 760px;
    margin: 13px 0 0;
    color: #bdd0dd;
    font-size: 14px;
    line-height: 1.55;
}

.encsd-winds-hero-note {
    padding: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
}

.encsd-winds-hero-note span,
.encsd-winds-hero-note strong,
.encsd-winds-hero-note small {
    display: block;
}

.encsd-winds-hero-note span {
    color: #91b2c6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.encsd-winds-hero-note strong {
    margin-top: 5px;
    color: #fff;
    font-size: 14px;
}

.encsd-winds-hero-note small {
    margin-top: 4px;
    color: #a9c3d2;
    font-size: 9px;
    line-height: 1.35;
}

.encsd-winds-warning {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff7e5;
    color: #654b13;
    border: 1px solid #ecd18e;
    border-radius: 9px;
}

.encsd-winds-warning strong,
.encsd-winds-warning span {
    display: block;
}

.encsd-winds-warning strong {
    font-size: 11px;
}

.encsd-winds-warning span {
    margin-top: 3px;
    font-size: 9px;
}

.encsd-winds-map-section,
.encsd-winds-legend-section,
.encsd-winds-guide,
.encsd-winds-direction,
.encsd-winds-related {
    margin-top: 25px;
}

.encsd-winds-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.encsd-winds-section-heading h2,
.encsd-winds-guide h2,
.encsd-winds-direction h2 {
    margin: 3px 0 0;
    color: var(--winds-text);
    font-size: clamp(25px, 3.4vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.027em;
}

.encsd-winds-section-heading > p {
    max-width: 420px;
    margin: 0;
    color: var(--winds-muted);
    font-size: 9px;
    line-height: 1.45;
    text-align: right;
}

.encsd-winds-map-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--winds-line);
    border-radius: 13px;
    box-shadow: var(--winds-shadow);
}

.encsd-winds-map-button {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 560px;
    place-items: center;
    padding: 9px;
    background: #e8eef2;
    border: 0;
    cursor: zoom-in;
}

.encsd-winds-map-button img {
    display: block;
    width: min(100%, 900px);
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 5px 20px rgba(8, 34, 52, 0.10);
}

.encsd-winds-map-button > span {
    position: absolute;
    right: 13px;
    bottom: 13px;
    padding: 5px 7px;
    background: rgba(7, 31, 52, 0.88);
    color: #fff;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.encsd-winds-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: #f7fafc;
    border-top: 1px solid var(--winds-line);
}

.encsd-winds-map-footer strong,
.encsd-winds-map-footer span {
    display: block;
}

.encsd-winds-map-footer strong {
    color: var(--winds-text);
    font-size: 10px;
}

.encsd-winds-map-footer span {
    margin-top: 2px;
    color: var(--winds-muted);
    font-size: 8px;
}

.encsd-winds-map-footer a {
    flex: 0 0 auto;
    color: #007da9 !important;
    font-size: 8px;
    font-weight: 780;
    text-decoration: none !important;
}

.encsd-winds-legend-card {
    display: grid;
    place-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--winds-line);
    border-radius: 11px;
    box-shadow: 0 8px 21px rgba(14, 43, 64, 0.05);
}

.encsd-winds-legend-card img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
}

.encsd-winds-guide {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--winds-line);
    border-radius: 12px;
    box-shadow: var(--winds-shadow);
}

.encsd-winds-guide > div:first-child p,
.encsd-winds-direction-copy p {
    max-width: 550px;
    margin: 9px 0 0;
    color: var(--winds-muted);
    font-size: 10px;
    line-height: 1.55;
}

.encsd-winds-speed-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.encsd-winds-speed-grid article {
    min-width: 0;
    padding: 11px;
    background: #f4f8fa;
    border: 1px solid #dbe5ea;
    border-radius: 9px;
}

.encsd-winds-speed-grid article > span {
    display: inline-grid;
    min-width: 48px;
    height: 27px;
    place-items: center;
    padding-inline: 6px;
    background: #e7f6fc;
    color: #007da9;
    border: 1px solid #bce1ef;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 900;
}

.encsd-winds-speed-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--winds-text);
    font-size: 10px;
}

.encsd-winds-speed-grid p {
    margin: 4px 0 0;
    color: var(--winds-muted);
    font-size: 8px;
    line-height: 1.4;
}

.encsd-winds-direction {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--winds-line);
    border-radius: 12px;
    box-shadow: var(--winds-shadow);
}

.encsd-winds-compass {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.encsd-winds-compass > div {
    padding: 10px;
    background: #f4f8fa;
    border: 1px solid #dbe5ea;
    border-radius: 8px;
    text-align: center;
}

.encsd-winds-compass strong,
.encsd-winds-compass span {
    display: block;
}

.encsd-winds-compass strong {
    color: #007da9;
    font-size: 12px;
}

.encsd-winds-compass span {
    margin-top: 3px;
    color: var(--winds-muted);
    font-size: 8px;
}

.encsd-winds-related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.encsd-winds-related-grid > a {
    min-width: 0;
    padding: 12px;
    background: #fff;
    color: var(--winds-text) !important;
    border: 1px solid var(--winds-line);
    border-top: 3px solid #159ed1;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(14, 43, 64, 0.045);
    text-decoration: none !important;
}

.encsd-winds-related-grid span,
.encsd-winds-related-grid strong,
.encsd-winds-related-grid small {
    display: block;
}

.encsd-winds-related-grid span {
    color: #0084b8;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.encsd-winds-related-grid strong {
    margin-top: 4px;
    color: var(--winds-text);
    font-size: 10px;
}

.encsd-winds-related-grid p {
    min-height: 47px;
    margin: 5px 0 0;
    color: var(--winds-muted);
    font-size: 8px;
    line-height: 1.4;
}

.encsd-winds-related-grid small {
    margin-top: 7px;
    color: #007da9;
    font-size: 8px;
    font-weight: 780;
}

.encsd-winds-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 13px 15px;
    background: var(--winds-navy);
    color: #a8c0cf;
    border-radius: 10px;
}

.encsd-winds-source strong,
.encsd-winds-source span {
    display: block;
}

.encsd-winds-source strong {
    color: #fff;
    font-size: 10px;
}

.encsd-winds-source span {
    margin-top: 2px;
    font-size: 8px;
}

.encsd-winds-source a {
    color: #65d7ff !important;
    font-size: 9px;
    font-weight: 780;
    text-decoration: none !important;
}

/* Lightbox
   ========================================================================== */

body.encsd-winds-lightbox-open {
    overflow: hidden;
}

.encsd-winds-lightbox[hidden] {
    display: none !important;
}

.encsd-winds-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.encsd-winds-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 13, 23, 0.88);
    backdrop-filter: blur(4px);
}

.encsd-winds-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1120px, 97vw);
    max-height: 96vh;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    outline: none;
}

.encsd-winds-lightbox-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    background: var(--winds-navy);
    color: #fff;
}

.encsd-winds-lightbox-copy strong,
.encsd-winds-lightbox-copy span {
    display: block;
}

.encsd-winds-lightbox-copy strong {
    color: #fff;
    font-size: 15px;
}

.encsd-winds-lightbox-copy span {
    margin-top: 3px;
    color: #a9c1d0;
    font-size: 9px;
}

.encsd-winds-lightbox-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.encsd-winds-lightbox-image-wrap {
    min-height: 0;
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    overflow: auto;
    padding: 10px;
    background: #dfe7eb;
}

.encsd-winds-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(96vh - 82px);
    width: auto;
    height: auto;
    background: #fff;
}

@media (max-width: 1050px) {
    .encsd-winds-speed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .encsd-winds-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .encsd-winds-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 19px;
    }

    .encsd-winds-section-heading,
    .encsd-winds-map-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .encsd-winds-section-heading > p {
        text-align: left;
    }

    .encsd-winds-map-button {
        min-height: 430px;
    }

    .encsd-winds-guide,
    .encsd-winds-direction {
        grid-template-columns: 1fr;
    }

    .encsd-winds-source {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .encsd-winds-page .enc-content-shell {
        padding-top: 18px;
    }

    .encsd-winds-hero {
        border-radius: 14px;
    }

    .encsd-winds-hero h1 {
        font-size: 40px;
    }

    .encsd-winds-map-button {
        min-height: 0;
        padding: 3px;
    }

    .encsd-winds-speed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .encsd-winds-compass {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .encsd-winds-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .encsd-winds-related-grid > a {
        padding: 10px;
    }

    .encsd-winds-related-grid p {
        min-height: 0;
    }

    .encsd-winds-lightbox {
        padding: 7px;
    }

    .encsd-winds-lightbox-dialog {
        width: 100%;
        max-height: 97vh;
        border-radius: 10px;
    }

    .encsd-winds-lightbox-image {
        max-height: calc(97vh - 82px);
    }
}
