/* ENC Weather Site Data - NOAA Tides & Currents 1.3
   ========================================================================== */

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

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

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

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

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

.encsd-tides-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    overflow: hidden;
    padding: clamp(28px, 4vw, 43px);
    background:
        radial-gradient(
            circle at 84% -20%,
            rgba(65, 211, 255, 0.25),
            transparent 36%
        ),
        linear-gradient(
            130deg,
            #061a2b,
            #092e4b 57%,
            #0b4569
        );
    color: #fff;
    border-radius: 18px;
    box-shadow: var(--tides-shadow);
}

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

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

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

.encsd-tides-hero-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.encsd-tides-primary-link {
    display: inline-flex;
    padding: 10px 13px;
    background: #fff;
    color: #0a4263 !important;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 820;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.encsd-tides-hero-actions span {
    color: #8fb1c4;
    font-size: 9px;
}

.encsd-tides-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
}

.encsd-tides-summary article {
    padding: 12px 13px;
    background: #fff;
    border: 1px solid var(--tides-line);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(14, 43, 64, 0.045);
}

.encsd-tides-summary strong,
.encsd-tides-summary span {
    display: block;
}

.encsd-tides-summary strong {
    color: var(--tides-text);
    font-size: 18px;
}

.encsd-tides-summary span {
    margin-top: 2px;
    color: var(--tides-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.encsd-tides-stations-section,
.encsd-tides-explainer {
    margin-top: 25px;
}

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

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

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

.encsd-tides-station-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.encsd-tides-station-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px 13px;
    background:
        linear-gradient(
            180deg,
            #fbfdfe,
            #f5f9fb
        );
    border-bottom: 1px solid var(--tides-line);
}

.encsd-tides-station-region {
    display: block;
    color: #0084b9;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.encsd-tides-station-header h2 {
    margin: 3px 0 0;
    color: var(--tides-text);
    font-size: 20px;
    line-height: 1.1;
}

.encsd-tides-station-id {
    margin-top: 3px;
    color: var(--tides-muted);
    font-size: 9px;
}

.encsd-tides-station-header > a {
    flex: 0 0 auto;
    color: #007ba9;
    font-size: 8px;
    font-weight: 780;
    text-decoration: none;
}

.encsd-tides-water-level {
    padding: 14px 16px;
    background: var(--tides-navy);
    color: #fff;
}

.encsd-tides-water-level span,
.encsd-tides-water-level strong,
.encsd-tides-water-level small {
    display: block;
}

.encsd-tides-water-level span {
    color: #82bdd7;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: 0.07em;
}

.encsd-tides-water-level strong {
    margin-top: 4px;
    color: #fff;
    font-size: 29px;
    line-height: 1;
}

.encsd-tides-water-level strong.is-unavailable {
    font-size: 14px;
}

.encsd-tides-water-level small {
    margin-top: 5px;
    color: #a9c2d2;
    font-size: 9px;
}

.encsd-tides-next-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px 7px;
}

.encsd-tides-next-heading span {
    color: #607889;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.encsd-tides-next-heading small {
    color: #8498a6;
    font-size: 8px;
}

.encsd-tides-prediction-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0 12px 13px;
}

.encsd-tides-prediction {
    min-width: 0;
    padding: 9px;
    background: #f5f9fb;
    border: 1px solid #dce6eb;
    border-top: 3px solid #249ed0;
    border-radius: 8px;
}

.encsd-tides-prediction.is-low {
    border-top-color: #7790a1;
}

.encsd-tides-prediction span,
.encsd-tides-prediction strong,
.encsd-tides-prediction small {
    display: block;
}

.encsd-tides-prediction span {
    color: #627b8c;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.encsd-tides-prediction strong {
    margin-top: 3px;
    color: var(--tides-text);
    font-size: 13px;
}

.encsd-tides-prediction small {
    margin-top: 3px;
    color: #728998;
    font-size: 8px;
    line-height: 1.25;
}

.encsd-tides-no-predictions {
    margin: 0 12px 13px;
    padding: 12px;
    background: #f5f9fb;
    color: var(--tides-muted);
    border: 1px solid #dce6eb;
    border-radius: 8px;
    font-size: 9px;
}

.encsd-tides-explainer {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    padding: 19px;
    background: #fff;
    border: 1px solid var(--tides-line);
    border-radius: 13px;
    box-shadow: var(--tides-shadow);
}

.encsd-tides-explainer > div:first-child p {
    max-width: 560px;
    margin: 9px 0 0;
    color: var(--tides-muted);
    font-size: 11px;
    line-height: 1.55;
}

.encsd-tides-explainer-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.encsd-tides-explainer-cards article {
    display: flex;
    gap: 8px;
    padding: 11px;
    background: #f5f9fb;
    border: 1px solid #dce6eb;
    border-radius: 9px;
}

.encsd-tides-explainer-cards article > span {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    background: var(--tides-navy);
    color: #fff;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 900;
}

.encsd-tides-explainer-cards strong {
    display: block;
    color: var(--tides-text);
    font-size: 10px;
}

.encsd-tides-explainer-cards p {
    margin: 3px 0 0;
    color: var(--tides-muted);
    font-size: 8px;
    line-height: 1.4;
}

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

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

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

.encsd-tides-source span {
    margin-top: 2px;
    font-size: 9px;
}

.encsd-tides-source-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

@media (max-width: 960px) {
    .encsd-tides-prediction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .encsd-tides-hero-actions {
        align-items: flex-start;
    }

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

    .encsd-tides-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

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

    .encsd-tides-station-grid,
    .encsd-tides-explainer {
        grid-template-columns: 1fr;
    }

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

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

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

    .encsd-tides-hero h1 {
        font-size: 37px;
    }

    .encsd-tides-station-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .encsd-tides-explainer-cards {
        grid-template-columns: 1fr;
    }
}
