/*
 * weather-c - phone-friendly companion to the weather viewer.
 *
 * Mobile-first single-column layout. ES5-friendly: no CSS Grid, no custom
 * properties; flexbox is used with -ms-flex- prefixes for older browsers.
 */

html,
body {
    margin: 0;
    padding: 0;
    background-color: #0b1a2a;
    color: #eef2f8;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    min-height: 100vh;
}

body {
    padding: 0 16px 90px 16px;
    box-sizing: border-box;
    max-width: 560px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------
 * Comms / nav strip
 * --------------------------------------------------------------------- */

#commsInfoDiv {
    text-align: center;
    color: #cfd6e4;
    font-size: 13px;
    padding: 12px 0 6px 0;
}

.commsPill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cfd6e4;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
    vertical-align: middle;
}

.commsPill .statusDot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6cf;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(102, 204, 255, 0.6);
}

.commsPill #commsInfo,
.commsPill #commsClientCounts {
    color: #cfd6e4;
    vertical-align: middle;
    text-decoration: none;
}

.commsPill #commsClientCounts {
    color: #8a93a8;
    margin-left: 8px;
}

.backToAppsButton {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cfd6e4;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
    vertical-align: middle;
    text-decoration: none;
}

.backToAppsButton:active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* -------------------------------------------------------------------------
 * Header
 * --------------------------------------------------------------------- */

.wxcHeader {
    text-align: center;
    padding: 14px 0 12px 0;
    border-bottom: 1px solid #1c2336;
}

.wxcHeaderTitle {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 5px;
    color: #6cf;
    text-transform: uppercase;
}

.wxcHeaderSub {
    font-size: 13px;
    color: #8a93a8;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* -------------------------------------------------------------------------
 * Preview pill
 * --------------------------------------------------------------------- */

.wxcPreview {
    margin: 14px 0 18px 0;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.wxcPreviewLeft {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.wxcPreviewIcon {
    width: 56px;
    height: 56px;
    margin-right: 14px;
}

.wxcPreviewIcon svg {
    width: 100%;
    height: 100%;
}

.wxcPreviewTemp {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.wxcPreviewCond {
    font-size: 13px;
    color: #cfd6e4;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}

.wxcPreviewPage {
    background-color: rgba(108, 184, 255, 0.16);
    color: #6cb8ff;
    border: 1px solid rgba(108, 184, 255, 0.45);
    border-radius: 999px;
    font-size: 11px;
    padding: 6px 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * Sections
 * --------------------------------------------------------------------- */

.wxcSection {
    margin-bottom: 22px;
    padding-bottom: 4px;
}

.wxcSectionTitle {
    font-size: 12px;
    color: #8a93a8;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 4px 0 12px 0;
    font-weight: 600;
}

.wxcLabel {
    font-size: 13px;
    color: #cfd6e4;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.wxcOption {
    margin-bottom: 16px;
}

/* -------------------------------------------------------------------------
 * Search
 * --------------------------------------------------------------------- */

.wxcSearchRow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 6px;
}

.wxcInput {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    background-color: #1c2336;
    color: #ffffff;
    border: 1px solid #2a334d;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.wxcInput:focus {
    border-color: #6cb8ff;
    box-shadow: 0 0 0 2px rgba(108, 184, 255, 0.25);
}

.wxcSearchResults {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 6px;
}

.wxcSearchResultRow {
    padding: 10px 12px;
    border-bottom: 1px solid #1c2336;
    background-color: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: background-color 100ms;
    -moz-transition: background-color 100ms;
    -o-transition: background-color 100ms;
    transition: background-color 100ms;
}

.wxcSearchResultRow:last-child {
    border-bottom: none;
}

.wxcSearchResultRow:active {
    background-color: rgba(108, 184, 255, 0.16);
}

.wxcSearchResultName {
    color: #fff;
    font-weight: 600;
}

.wxcSearchResultMeta {
    color: #8a93a8;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: uppercase;
}

.wxcQuickList {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.wxcQuickItem {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cfd6e4;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    margin: 4px 6px 4px 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wxcQuickItem.wxcQuickActive {
    background-color: rgba(108, 184, 255, 0.18);
    border-color: rgba(108, 184, 255, 0.55);
    color: #fff;
}

/* -------------------------------------------------------------------------
 * Segmented control
 * --------------------------------------------------------------------- */

.wxcSegmented {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background-color: #1c2336;
    border: 1px solid #2a334d;
    border-radius: 8px;
    overflow: hidden;
}

.wxcSegmented button {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    background-color: transparent;
    color: #cfd6e4;
    border: none;
    padding: 12px 6px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-right: 1px solid #2a334d;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    -webkit-transition: background-color 100ms;
    -moz-transition: background-color 100ms;
    -o-transition: background-color 100ms;
    transition: background-color 100ms;
}

.wxcSegmented button:last-child {
    border-right: none;
}

.wxcSegmented button.wxcSegActive {
    background-color: #2563eb;
    color: #fff;
    font-weight: 600;
}

.wxcSegmented button:active {
    background-color: #2a334d;
}

.wxcSegmented button.wxcSegActive:active {
    background-color: #1d4ed8;
}

/* -------------------------------------------------------------------------
 * Page checkboxes
 * --------------------------------------------------------------------- */

.wxcPagesList {
    background-color: #1c2336;
    border: 1px solid #2a334d;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.wxcPageRow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #2a334d;
    font-size: 15px;
    color: #eef2f8;
    cursor: pointer;
}

.wxcPageRow:last-child {
    border-bottom: none;
}

.wxcPageRow input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #6cb8ff;
    cursor: pointer;
}

/* -------------------------------------------------------------------------
 * Slider
 * --------------------------------------------------------------------- */

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #1c2336;
    border-radius: 3px;
    border: 1px solid #2a334d;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6cb8ff;
    border: 2px solid #1c2336;
    margin-top: -9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: #1c2336;
    border-radius: 3px;
    border: 1px solid #2a334d;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6cb8ff;
    border: 2px solid #1c2336;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.wxcSliderVal {
    color: #6cb8ff;
    margin-left: 8px;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Buttons
 * --------------------------------------------------------------------- */

.wxcControls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 4px 0 8px 0;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.wxcBtn {
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 12px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    -webkit-transition: background-color 100ms, -webkit-transform 100ms;
    -moz-transition: background-color 100ms, transform 100ms;
    -o-transition: background-color 100ms, transform 100ms;
    transition: background-color 100ms, transform 100ms;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    font-family: inherit;
}

.wxcBtn:active {
    -webkit-transform: translateY(2px);
    -ms-transform: translateY(2px);
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.wxcBtnPrimary {
    background-color: #2563eb;
    color: #fff;
    width: 100%;
    margin-top: 10px;
}

.wxcBtnPrimary:active {
    background-color: #1d4ed8;
}

.wxcBtnSecondary {
    background-color: #1c2336;
    color: #cfd6e4;
    border: 1px solid #2a334d;
    width: 48%;
}

.wxcBtnSecondary:active {
    background-color: #2a334d;
}

.wxcBtnGhost {
    background-color: transparent;
    color: #6cb8ff;
    border: 1px solid #2a334d;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 400;
    margin-left: 8px;
    box-shadow: none;
}

.wxcBtnGhost:active {
    background-color: #1c2336;
}

#wxcStatus {
    text-align: center;
    color: #ff7676;
    font-size: 12px;
    min-height: 16px;
    margin-top: 6px;
}

/* -------------------------------------------------------------------------
 * Tweaks for very small phones
 * --------------------------------------------------------------------- */

@media (max-width: 360px) {
    .wxcSegmented button {
        padding: 10px 4px;
        font-size: 13px;
    }

    .wxcBtnSecondary {
        font-size: 14px;
        padding: 12px 8px;
    }

    .wxcInput {
        font-size: 15px;
        padding: 10px 12px;
    }
}