/*
 * Connectivity status banner — offline / back-online.
 * Top, full-width, prominent. Warm amber for offline (reads as a warning and stands
 * out, and sits within the warm end of the TQQR palette); green for "back online".
 * The page is pushed down beneath it by net-status.js so nothing is covered.
 */
.net-status {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    /* clear the notch / status bar when launched as an installed app */
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: #9a3f1c;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.30);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.net-status.is-visible { transform: translateY(0); }
.net-status[data-state="online"] { background: #2f7d52; }

@media (prefers-reduced-motion: reduce) {
    .net-status { transition: none; }
}

.net-status__msg { font-weight: 600; }
