/* =========================
   HEADER IP WEATHER
========================= */

.header-weather-mount {
  flex: 0 0 auto;
  margin-left: auto;
}

.header-weather {
  min-width: 152px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 7px 0 7px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.header-weather__location {
  display: block;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-weather__status {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.header-weather__status strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
}

.header-weather__status span {
  overflow: hidden;
  max-width: 112px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-weather__updated {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.035em;
}

.header-weather.is-loading {
  opacity: 0.72;
}

/* =========================
   DESKTOP HEADER POSITION
========================= */

@media (min-width: 761px) {
  .header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .main-nav {
    margin-left: auto;
  }

  .header-weather-mount {
    margin-left: 6px;
  }
}

/* =========================
   SMARTPHONE
========================= */

@media (max-width: 760px) {
  .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .header-weather-mount {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
  }

  .header-weather {
    min-width: 112px;
    max-width: 126px;
    gap: 3px;
    padding: 4px 0 4px 9px;
  }

  .header-weather__location {
    overflow: hidden;
    max-width: 116px;
    font-size: 8.5px;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
  }

  .header-weather__status {
    gap: 3px;
  }

  .header-weather__status strong {
    font-size: 14px;
  }

  .header-weather__status span {
    max-width: 75px;
    font-size: 9px;
  }

  .header-weather__updated {
    font-size: 8px;
  }
}

/* =========================
   VERY SMALL SMARTPHONES
========================= */

@media (max-width: 390px) {
  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-main--two-line {
    font-size: 20px;
  }

  .header-weather {
    min-width: 101px;
    max-width: 109px;
    padding-left: 7px;
  }

  .header-weather__location {
    max-width: 100px;
    font-size: 8px;
  }

  .header-weather__status strong {
    font-size: 13px;
  }

  .header-weather__status span {
    max-width: 63px;
    font-size: 8.5px;
  }
}