/* Bermuda Weather Horizontal — light banner */
.bwh {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--bwh-gap, 24px);
    padding: 12px 20px;
    background: #f5f6f8;
    border-radius: 8px;
    font-family: var(--bwh-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif);
    font-size: var(--bwh-font-size, 16px);
    color: #1a1a1a;
    line-height: 1.3;
    box-sizing: border-box;
}

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

.bwh-error {
    padding: 12px 16px;
    background: #fde8e8;
    color: #8a0c0c;
    border-radius: 6px;
    font-family: inherit;
}

.bwh-current,
.bwh-future {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
}

.bwh-section-main {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.bwh-wind {
    font-size: 0.75em;
    color: #555;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.bwh-current {
    font-weight: 600;
}

.bwh-current-label {
    font-weight: 700;
}

.bwh-time {
    font-weight: 600;
    min-width: 2.4em;
}

.bwh-icon {
    width: 2.25em;
    height: 2.25em;
    display: block;
}

.bwh-temp {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bwh-sep {
    opacity: 0.5;
    margin: 0 -2px;
}

.bwh-phrase {
    font-weight: 500;
}

.bwh-credit {
    margin-left: auto;
    font-size: 0.8125em;
    color: #555;
    text-decoration: none;
    flex: 0 0 auto;
}

.bwh-credit:hover {
    text-decoration: underline;
}

.bwh-credit-brand {
    text-decoration: underline;
}

/* Tablet / narrow desktop — let the credit drop below */
@media (max-width: 900px) {
    .bwh {
        padding: 10px 16px;
    }
    .bwh-icon {
        width: 2em;
        height: 2em;
    }
    .bwh-credit {
        margin-left: 0;
        flex-basis: 100%;
        text-align: right;
    }
}

/* Mobile — vertical stack */
@media (max-width: 540px) {
    .bwh {
        padding: 12px;
    }
    .bwh-current,
    .bwh-future {
        flex-basis: 100%;
        justify-content: flex-start;
    }
    .bwh-current {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-bottom: 10px;
    }
    .bwh-icon {
        width: 1.875em;
        height: 1.875em;
    }
    .bwh-credit {
        font-size: 0.75em;
        text-align: center;
        flex-basis: 100%;
    }
}
